diff --git a/js/src/redux/providers/status.js b/js/src/redux/providers/status.js index 9f47517f5..cdea11bdb 100644 --- a/js/src/redux/providers/status.js +++ b/js/src/redux/providers/status.js @@ -51,6 +51,15 @@ export default class Status { } this._store.dispatch(statusBlockNumber(blockNumber)); + + this._api.eth + .getBlockByNumber(blockNumber) + .then((block) => { + this._store.dispatch(statusCollection({ gasLimit: block.gasLimit })); + }) + .catch((error) => { + console.warn('status._subscribeBlockNumber', 'getBlockByNumber', error); + }); }) .then((subscriptionId) => { console.log('status._subscribeBlockNumber', 'subscriptionId', subscriptionId); diff --git a/js/src/redux/providers/statusReducer.js b/js/src/redux/providers/statusReducer.js index 98bb536ae..c6a5558db 100644 --- a/js/src/redux/providers/statusReducer.js +++ b/js/src/redux/providers/statusReducer.js @@ -28,6 +28,7 @@ const initialState = { enode: '', extraData: '', gasFloorTarget: new BigNumber(0), + gasLimit: new BigNumber(0), hashrate: new BigNumber(0), minGasPrice: new BigNumber(0), netChain: 'morden',