diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-12-08 05:05:17 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-12-08 05:05:17 +0800 |
commit | 89e640afcbd50307fcdae13f961f4b3cf6164b5b (patch) | |
tree | 44d553c3f4865cb23d11a654700a3967edce165b /app/scripts/controllers/transactions.js | |
parent | 553d713636d317b74d819d62b5b931bdf2d112d8 (diff) | |
parent | 35be563fbdc74974f54b3e90b2eba319b0619754 (diff) | |
download | tangerine-wallet-browser-89e640afcbd50307fcdae13f961f4b3cf6164b5b.tar.gz tangerine-wallet-browser-89e640afcbd50307fcdae13f961f4b3cf6164b5b.tar.zst tangerine-wallet-browser-89e640afcbd50307fcdae13f961f4b3cf6164b5b.zip |
Merge branch 'master' into patch-2
Diffstat (limited to 'app/scripts/controllers/transactions.js')
-rw-r--r-- | app/scripts/controllers/transactions.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/scripts/controllers/transactions.js b/app/scripts/controllers/transactions.js index 6bdbd2cfc..bb408d445 100644 --- a/app/scripts/controllers/transactions.js +++ b/app/scripts/controllers/transactions.js @@ -185,6 +185,13 @@ module.exports = class TransactionController extends EventEmitter { return await this.txGasUtil.analyzeGasUsage(txMeta) } + async retryTransaction (txId) { + this.txStateManager.setTxStatusUnapproved(txId) + const txMeta = this.txStateManager.getTx(txId) + txMeta.lastGasPrice = txMeta.txParams.gasPrice + this.txStateManager.updateTx(txMeta, 'retryTransaction: manual retry') + } + async updateAndApproveTransaction (txMeta) { this.txStateManager.updateTx(txMeta, 'confTx: user approved transaction') await this.approveTransaction(txMeta.id) |