account-tracker - use new block-tracker block format

This commit is contained in:
kumavis 2017-09-27 12:33:00 -07:00
parent 52976d6edc
commit 89e690fc79
1 changed files with 2 additions and 4 deletions

View File

@ -57,10 +57,8 @@ class AccountTracker extends EventEmitter {
//
_updateForBlock (block) {
const blockNumber = '0x' + block.number.toString('hex')
this._currentBlockNumber = blockNumber
this.store.updateState({ currentBlockGasLimit: `0x${block.gasLimit.toString('hex')}` })
this._currentBlockNumber = block.number
this.store.updateState({ currentBlockGasLimit: block.gasLimit })
async.parallel([
this._updateAccounts.bind(this),