1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

put event back on the "blockTracker:/provider"

This commit is contained in:
frankiebee 2017-06-16 16:43:38 -07:00
parent 3e359d6a6a
commit 9c2ead3d52

View File

@ -27,7 +27,7 @@ module.exports = class TransactionController extends EventEmitter {
this.blockTracker.on('block', this.checkForTxInBlock.bind(this))
// provider-engine only exploses the 'block' event, not 'latest' for 'sync'
this.provider._blockTracker.on('sync', this.queryPendingTxs.bind(this))
this.provider._blockTracker.on('latest', this.resubmitPendingTxs.bind(this))
this.blockTracker.on('latest', this.resubmitPendingTxs.bind(this))
this.signEthTx = opts.signTransaction
this.nonceLock = Semaphore(1)
this.ethStore = opts.ethStore