diff options
author | Dan <danjm.com@gmail.com> | 2017-12-07 00:51:09 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2017-12-07 00:51:09 +0800 |
commit | f58aae3f2ba3d8a129b2c09dc3b45369c488fd04 (patch) | |
tree | f21503912bb54d4671ff63a845497f0e6836a93c /app | |
parent | ea23da9e75c92cbf82d0daa19847d2035361a656 (diff) | |
download | tangerine-wallet-browser-f58aae3f2ba3d8a129b2c09dc3b45369c488fd04.tar.gz tangerine-wallet-browser-f58aae3f2ba3d8a129b2c09dc3b45369c488fd04.tar.zst tangerine-wallet-browser-f58aae3f2ba3d8a129b2c09dc3b45369c488fd04.zip |
firstRetryBlockNumber defaults to latestBlockNumber if undefined on txMeta in _resubmitTx
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/lib/pending-tx-tracker.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/lib/pending-tx-tracker.js b/app/scripts/lib/pending-tx-tracker.js index 62d621ac1..dc6e526fd 100644 --- a/app/scripts/lib/pending-tx-tracker.js +++ b/app/scripts/lib/pending-tx-tracker.js @@ -112,7 +112,7 @@ module.exports = class PendingTransactionTracker extends EventEmitter { return this.emit('tx:failed', txMeta.id, err) } - const firstRetryBlockNumber = txMeta.firstRetryBlockNumber + const firstRetryBlockNumber = txMeta.firstRetryBlockNumber || latestBlockNumber const txBlockDistance = Number.parseInt(latestBlockNumber, 16) - Number.parseInt(firstRetryBlockNumber, 16) const retryCount = txMeta.retryCount || 0 |