aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-12-07 00:51:09 +0800
committerDan <danjm.com@gmail.com>2017-12-07 00:51:09 +0800
commitf58aae3f2ba3d8a129b2c09dc3b45369c488fd04 (patch)
treef21503912bb54d4671ff63a845497f0e6836a93c /app
parentea23da9e75c92cbf82d0daa19847d2035361a656 (diff)
downloadtangerine-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.js2
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