Merge branch 'master' into jg-transact-gas-warnings
This commit is contained in:
commit
bf58aab6a3
@ -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