aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-02-04 04:35:01 +0800
committerkumavis <aaron@kumavis.me>2017-02-04 04:35:01 +0800
commit99d6a329a2e8358b85ff8a82c7f17e2ebf71a399 (patch)
tree236494683d2c3d7726bfb1aee116361d6aa47a8a
parent66be5ff2756e611c7af6973e704d27ce9bbd0d45 (diff)
downloadtangerine-wallet-browser-99d6a329a2e8358b85ff8a82c7f17e2ebf71a399.tar
tangerine-wallet-browser-99d6a329a2e8358b85ff8a82c7f17e2ebf71a399.tar.gz
tangerine-wallet-browser-99d6a329a2e8358b85ff8a82c7f17e2ebf71a399.tar.bz2
tangerine-wallet-browser-99d6a329a2e8358b85ff8a82c7f17e2ebf71a399.tar.lz
tangerine-wallet-browser-99d6a329a2e8358b85ff8a82c7f17e2ebf71a399.tar.xz
tangerine-wallet-browser-99d6a329a2e8358b85ff8a82c7f17e2ebf71a399.tar.zst
tangerine-wallet-browser-99d6a329a2e8358b85ff8a82c7f17e2ebf71a399.zip
eths-store - eagerly set current block
-rw-r--r--app/scripts/lib/eth-store.js2
1 files changed, 2 insertions, 0 deletions
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
}
//