mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
dont stop retrying brodcasting txs
This commit is contained in:
parent
48f7cff8c0
commit
db2836a1ae
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
## Current Master
|
## Current Master
|
||||||
|
|
||||||
|
- No longer stop rebroadcasting transactions
|
||||||
- Add list of popular tokens held to the account detail view.
|
- Add list of popular tokens held to the account detail view.
|
||||||
- Add a warning to JSON file import.
|
- Add a warning to JSON file import.
|
||||||
- Fix bug where slowly mined txs would sometimes be incorrectly marked as failed.
|
- Fix bug where slowly mined txs would sometimes be incorrectly marked as failed.
|
||||||
|
@ -8,8 +8,6 @@ const TxProviderUtil = require('../lib/tx-utils')
|
|||||||
const createId = require('../lib/random-id')
|
const createId = require('../lib/random-id')
|
||||||
const denodeify = require('denodeify')
|
const denodeify = require('denodeify')
|
||||||
|
|
||||||
const RETRY_LIMIT = 200
|
|
||||||
|
|
||||||
module.exports = class TransactionController extends EventEmitter {
|
module.exports = class TransactionController extends EventEmitter {
|
||||||
constructor (opts) {
|
constructor (opts) {
|
||||||
super()
|
super()
|
||||||
@ -435,8 +433,6 @@ module.exports = class TransactionController extends EventEmitter {
|
|||||||
// Only auto-submit already-signed txs:
|
// Only auto-submit already-signed txs:
|
||||||
if (!('rawTx' in txMeta)) return cb()
|
if (!('rawTx' in txMeta)) return cb()
|
||||||
|
|
||||||
if (txMeta.retryCount > RETRY_LIMIT) return
|
|
||||||
|
|
||||||
// Increment a try counter.
|
// Increment a try counter.
|
||||||
txMeta.retryCount++
|
txMeta.retryCount++
|
||||||
const rawTx = txMeta.rawTx
|
const rawTx = txMeta.rawTx
|
||||||
|
Loading…
Reference in New Issue
Block a user