Merge pull request #3506 from ethcore/jg-block-gasLimit
Keep track of block gasLimit
This commit is contained in:
commit
aa43990456
@ -48,6 +48,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);
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user