From 99d6a329a2e8358b85ff8a82c7f17e2ebf71a399 Mon Sep 17 00:00:00 2001 From: kumavis Date: Fri, 3 Feb 2017 12:35:01 -0800 Subject: eths-store - eagerly set current block --- app/scripts/lib/eth-store.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/scripts') diff --git a/app/scripts/lib/eth-store.js b/app/scripts/lib/eth-store.js index 96b4a60f2..773c81d1b 100644 --- a/app/scripts/lib/eth-store.js +++ b/app/scripts/lib/eth-store.js @@ -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 } // -- cgit v1.2.3