1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

eths-store - eagerly set current block

This commit is contained in:
kumavis 2017-02-03 12:35:01 -08:00
parent 66be5ff275
commit 99d6a329a2

View File

@ -25,6 +25,8 @@ class EthereumStore extends ObservableStore {
this._blockTracker = opts.blockTracker
// subscribe to latest block
this._blockTracker.on('block', this._updateForBlock.bind(this))
// blockTracker.currentBlock may be null
this._currentBlockNumber = this._blockTracker.currentBlock
}
//