aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-08-24 13:29:08 +0800
committerDan Finlay <dan@danfinlay.com>2017-08-24 13:29:08 +0800
commit0ad310e096fe8c13553dc40f65363d296a7e84ce (patch)
tree172099aa99ec43c93e9d86f49c073b80c1999477 /app/scripts/controllers
parent4de977e63e17e7a3804cb2fbc8674212838a8571 (diff)
downloadtangerine-wallet-browser-0ad310e096fe8c13553dc40f65363d296a7e84ce.tar.gz
tangerine-wallet-browser-0ad310e096fe8c13553dc40f65363d296a7e84ce.tar.zst
tangerine-wallet-browser-0ad310e096fe8c13553dc40f65363d296a7e84ce.zip
Fail transactions after a day of retries
Diffstat (limited to 'app/scripts/controllers')
-rw-r--r--app/scripts/controllers/transactions.js6
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
+}