diff options
author | kumavis <kumavis@users.noreply.github.com> | 2017-08-24 13:41:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-24 13:41:51 +0800 |
commit | 799c4cb6903bd7395c82abe879978cc911ae0a36 (patch) | |
tree | b83bc650ce00e109a79ccc71c289bca40a3687e7 /app/scripts/controllers/transactions.js | |
parent | 4de977e63e17e7a3804cb2fbc8674212838a8571 (diff) | |
parent | 941e5ff1252f792e1572c3fd77d7fff086a647c6 (diff) | |
download | tangerine-wallet-browser-799c4cb6903bd7395c82abe879978cc911ae0a36.tar tangerine-wallet-browser-799c4cb6903bd7395c82abe879978cc911ae0a36.tar.gz tangerine-wallet-browser-799c4cb6903bd7395c82abe879978cc911ae0a36.tar.bz2 tangerine-wallet-browser-799c4cb6903bd7395c82abe879978cc911ae0a36.tar.lz tangerine-wallet-browser-799c4cb6903bd7395c82abe879978cc911ae0a36.tar.xz tangerine-wallet-browser-799c4cb6903bd7395c82abe879978cc911ae0a36.tar.zst tangerine-wallet-browser-799c4cb6903bd7395c82abe879978cc911ae0a36.zip |
Merge pull request #1971 from MetaMask/SetMaxRetryLimit
Set max retry limit
Diffstat (limited to 'app/scripts/controllers/transactions.js')
-rw-r--r-- | app/scripts/controllers/transactions.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/scripts/controllers/transactions.js b/app/scripts/controllers/transactions.js index 6f49c9633..fb3be6073 100644 --- a/app/scripts/controllers/transactions.js +++ b/app/scripts/controllers/transactions.js @@ -40,6 +40,10 @@ module.exports = class TransactionController extends EventEmitter { err: undefined, }) }, + giveUpOnTransaction: (txId) => { + const msg = `Gave up submitting after 3500 blocks un-mined.` + this.setTxStatusFailed(txId, msg) + }, }) this.query = new EthQuery(this.provider) this.txProviderUtil = new TxProviderUtil(this.provider) @@ -451,4 +455,4 @@ module.exports = class TransactionController extends EventEmitter { }) this.memStore.updateState({ unapprovedTxs, selectedAddressTxList }) } -}
\ No newline at end of file +} |