aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-12-22 05:40:04 +0800
committerDan Finlay <dan@danfinlay.com>2017-12-22 05:41:08 +0800
commit75b8baafb6f2e9a38a52d46c71c6dcca03635886 (patch)
tree616148b4b5a5772b5ed022a334eaff30592ae782 /app
parentd3f5ad874e4bf90cda4e440f9b0635c6ac416382 (diff)
downloadtangerine-wallet-browser-75b8baafb6f2e9a38a52d46c71c6dcca03635886.tar
tangerine-wallet-browser-75b8baafb6f2e9a38a52d46c71c6dcca03635886.tar.gz
tangerine-wallet-browser-75b8baafb6f2e9a38a52d46c71c6dcca03635886.tar.bz2
tangerine-wallet-browser-75b8baafb6f2e9a38a52d46c71c6dcca03635886.tar.lz
tangerine-wallet-browser-75b8baafb6f2e9a38a52d46c71c6dcca03635886.tar.xz
tangerine-wallet-browser-75b8baafb6f2e9a38a52d46c71c6dcca03635886.tar.zst
tangerine-wallet-browser-75b8baafb6f2e9a38a52d46c71c6dcca03635886.zip
Stop failing pending transactions after any period of time
Diffstat (limited to 'app')
-rw-r--r--app/scripts/lib/pending-tx-tracker.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/app/scripts/lib/pending-tx-tracker.js b/app/scripts/lib/pending-tx-tracker.js
index dc6e526fd..7956a3329 100644
--- a/app/scripts/lib/pending-tx-tracker.js
+++ b/app/scripts/lib/pending-tx-tracker.js
@@ -23,7 +23,6 @@ module.exports = class PendingTransactionTracker extends EventEmitter {
this.query = new EthQuery(config.provider)
this.nonceTracker = config.nonceTracker
// default is one day
- this.retryTimePeriod = config.retryTimePeriod || 86400000
this.getPendingTransactions = config.getPendingTransactions
this.getCompletedTransactions = config.getCompletedTransactions
this.publishTransaction = config.publishTransaction
@@ -106,12 +105,6 @@ module.exports = class PendingTransactionTracker extends EventEmitter {
this.emit('tx:block-update', txMeta, latestBlockNumber)
}
- if (Date.now() > txMeta.time + this.retryTimePeriod) {
- const hours = (this.retryTimePeriod / 3.6e+6).toFixed(1)
- const err = new Error(`Gave up submitting after ${hours} hours.`)
- return this.emit('tx:failed', txMeta.id, err)
- }
-
const firstRetryBlockNumber = txMeta.firstRetryBlockNumber || latestBlockNumber
const txBlockDistance = Number.parseInt(latestBlockNumber, 16) - Number.parseInt(firstRetryBlockNumber, 16)