firstRetryBlockNumber defaults to latestBlockNumber if undefined on txMeta in _resubmitTx

feature/default_network_editable
Dan 7 years ago
parent ea23da9e75
commit f58aae3f2b
  1. 2
      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

Loading…
Cancel
Save