aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-09-27 04:36:41 +0800
committerDan Finlay <dan@danfinlay.com>2017-09-27 04:36:41 +0800
commit3bedcd3582519c7afbb8164b40acca4b96eab4bf (patch)
treeab6aa7fe2a1fd81eed62494c9b7841db8438e928
parentb1daa5ae260be0aa91516bde0cbdb8820099587b (diff)
downloadtangerine-wallet-browser-3bedcd3582519c7afbb8164b40acca4b96eab4bf.tar
tangerine-wallet-browser-3bedcd3582519c7afbb8164b40acca4b96eab4bf.tar.gz
tangerine-wallet-browser-3bedcd3582519c7afbb8164b40acca4b96eab4bf.tar.bz2
tangerine-wallet-browser-3bedcd3582519c7afbb8164b40acca4b96eab4bf.tar.lz
tangerine-wallet-browser-3bedcd3582519c7afbb8164b40acca4b96eab4bf.tar.xz
tangerine-wallet-browser-3bedcd3582519c7afbb8164b40acca4b96eab4bf.tar.zst
tangerine-wallet-browser-3bedcd3582519c7afbb8164b40acca4b96eab4bf.zip
Restore blockGasLimit to account-tracker
-rw-r--r--app/scripts/lib/account-tracker.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/scripts/lib/account-tracker.js b/app/scripts/lib/account-tracker.js
index bf949597b..3df5fbc9d 100644
--- a/app/scripts/lib/account-tracker.js
+++ b/app/scripts/lib/account-tracker.js
@@ -18,6 +18,7 @@ class EthereumStore extends ObservableStore {
constructor (opts = {}) {
super({
accounts: {},
+ currentBlockGasLimit: '',
})
this._provider = opts.provider
this._query = new EthQuery(this._provider)
@@ -54,6 +55,8 @@ class EthereumStore extends ObservableStore {
const blockNumber = '0x' + block.number.toString('hex')
this._currentBlockNumber = blockNumber
+ this.updateState({ currentBlockGasLimit: `0x${block.gasLimit.toString('hex')}` })
+
async.parallel([
this._updateAccounts.bind(this),
], (err) => {