diff options
author | Alexander Tseung <alextsg@users.noreply.github.com> | 2017-12-23 03:31:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-23 03:31:07 +0800 |
commit | 5a58add797fcdbb023678af84a61f1d2bfdafaf1 (patch) | |
tree | e9a6fa414f277d3c094e7d6871ef50e3340b0fec | |
parent | 8f6c322e0121ff1dd086086e5599c2ce8eadfe05 (diff) | |
parent | ca51cab35f7123cd6e2e9feb61f2d7e7bcd42fd1 (diff) | |
download | tangerine-wallet-browser-5a58add797fcdbb023678af84a61f1d2bfdafaf1.tar tangerine-wallet-browser-5a58add797fcdbb023678af84a61f1d2bfdafaf1.tar.gz tangerine-wallet-browser-5a58add797fcdbb023678af84a61f1d2bfdafaf1.tar.bz2 tangerine-wallet-browser-5a58add797fcdbb023678af84a61f1d2bfdafaf1.tar.lz tangerine-wallet-browser-5a58add797fcdbb023678af84a61f1d2bfdafaf1.tar.xz tangerine-wallet-browser-5a58add797fcdbb023678af84a61f1d2bfdafaf1.tar.zst tangerine-wallet-browser-5a58add797fcdbb023678af84a61f1d2bfdafaf1.zip |
Merge pull request #2798 from alextsg/NewUI-flat-4.0.5
Merge master into NewUI-flat
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | app/scripts/controllers/transactions.js | 1 | ||||
-rw-r--r-- | app/scripts/lib/pending-tx-tracker.js | 7 |
3 files changed, 1 insertions, 8 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8952236d0..3c1c1dcb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Current Master - Fix bug that prevented updating custom token details. +- No longer mark long-pending transactions as failed, since we now have button to retry with higher gas. ## 3.13.3 2017-12-14 diff --git a/app/scripts/controllers/transactions.js b/app/scripts/controllers/transactions.js index 8a193849a..7f3130540 100644 --- a/app/scripts/controllers/transactions.js +++ b/app/scripts/controllers/transactions.js @@ -59,7 +59,6 @@ module.exports = class TransactionController extends EventEmitter { this.pendingTxTracker = new PendingTransactionTracker({ provider: this.provider, nonceTracker: this.nonceTracker, - retryTimePeriod: 86400000, // Retry 3500 blocks, or about 1 day. publishTransaction: (rawTx) => this.query.sendRawTransaction(rawTx), getPendingTransactions: this.txStateManager.getPendingTransactions.bind(this.txStateManager), getCompletedTransactions: this.txStateManager.getConfirmedTransactions.bind(this.txStateManager), 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) |