mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 20:02:58 +01:00
Remove local nonce error setting.
This commit is contained in:
parent
2d1b7c0ee1
commit
d97c6533b8
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
## Current Master
|
## Current Master
|
||||||
|
|
||||||
|
- No longer validate nonce client-side in retry loop.
|
||||||
|
|
||||||
## 3.8.4 2017-7-7
|
## 3.8.4 2017-7-7
|
||||||
|
|
||||||
- Improve transaction resubmit logic to fail more eagerly when a user would expect it to.
|
- Improve transaction resubmit logic to fail more eagerly when a user would expect it to.
|
||||||
|
@ -458,14 +458,6 @@ module.exports = class TransactionController extends EventEmitter {
|
|||||||
return log.error(message)
|
return log.error(message)
|
||||||
}
|
}
|
||||||
|
|
||||||
// if the nonce of the transaction is lower then the accounts nonce, fail.
|
|
||||||
if (txNonce < nonce) {
|
|
||||||
const message = 'Invalid nonce.'
|
|
||||||
this.setTxStatusFailed(txMeta.id, { message })
|
|
||||||
cb()
|
|
||||||
return log.error(message)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Only auto-submit already-signed txs:
|
// Only auto-submit already-signed txs:
|
||||||
if (!('rawTx' in txMeta)) return cb()
|
if (!('rawTx' in txMeta)) return cb()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user