diff options
author | Kevin Serrano <kevin.serrano@consensys.net> | 2017-06-03 06:18:14 +0800 |
---|---|---|
committer | Kevin Serrano <kevin.serrano@consensys.net> | 2017-06-03 06:18:14 +0800 |
commit | 2b7d8424981fbbd0f6306b5ee7abf8754f9f7092 (patch) | |
tree | 3947f5acf75e8560a837d083373011c3444a6e38 /app/scripts/lib/eth-store.js | |
parent | 9eea990425f1f68eabca8b283bdfc662befcd226 (diff) | |
download | tangerine-wallet-browser-2b7d8424981fbbd0f6306b5ee7abf8754f9f7092.tar tangerine-wallet-browser-2b7d8424981fbbd0f6306b5ee7abf8754f9f7092.tar.gz tangerine-wallet-browser-2b7d8424981fbbd0f6306b5ee7abf8754f9f7092.tar.bz2 tangerine-wallet-browser-2b7d8424981fbbd0f6306b5ee7abf8754f9f7092.tar.lz tangerine-wallet-browser-2b7d8424981fbbd0f6306b5ee7abf8754f9f7092.tar.xz tangerine-wallet-browser-2b7d8424981fbbd0f6306b5ee7abf8754f9f7092.tar.zst tangerine-wallet-browser-2b7d8424981fbbd0f6306b5ee7abf8754f9f7092.zip |
Update gasblocklimit params with every block.
Diffstat (limited to 'app/scripts/lib/eth-store.js')
-rw-r--r-- | app/scripts/lib/eth-store.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/scripts/lib/eth-store.js b/app/scripts/lib/eth-store.js index 6f04a9dd6..ebba98f5c 100644 --- a/app/scripts/lib/eth-store.js +++ b/app/scripts/lib/eth-store.js @@ -21,6 +21,7 @@ class EthereumStore extends ObservableStore { transactions: {}, currentBlockNumber: '0', currentBlockHash: '', + currentBlockGasLimit: '', }) this._provider = opts.provider this._query = new EthQuery(this._provider) @@ -73,6 +74,7 @@ class EthereumStore extends ObservableStore { this._currentBlockNumber = blockNumber this.updateState({ currentBlockNumber: parseInt(blockNumber) }) this.updateState({ currentBlockHash: `0x${block.hash.toString('hex')}`}) + this.updateState({ currentBlockGasLimit: `0x${block.gasLimit.toString('hex')}` }) async.parallel([ this._updateAccounts.bind(this), this._updateTransactions.bind(this, blockNumber), |