aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/account-tracker.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-09-28 04:58:54 +0800
committerGitHub <noreply@github.com>2017-09-28 04:58:54 +0800
commit4404dfc5d328d57c99190dbcf034102882487177 (patch)
tree5bae6617ea10d2920983b1bb27eabf01f7da0de4 /app/scripts/lib/account-tracker.js
parentb41aad6d1ae894ab89380b1c7159da8545ad935b (diff)
parent5bbea78306f13415f85159f3d23c2b69d8f2a26c (diff)
downloadtangerine-wallet-browser-4404dfc5d328d57c99190dbcf034102882487177.tar
tangerine-wallet-browser-4404dfc5d328d57c99190dbcf034102882487177.tar.gz
tangerine-wallet-browser-4404dfc5d328d57c99190dbcf034102882487177.tar.bz2
tangerine-wallet-browser-4404dfc5d328d57c99190dbcf034102882487177.tar.lz
tangerine-wallet-browser-4404dfc5d328d57c99190dbcf034102882487177.tar.xz
tangerine-wallet-browser-4404dfc5d328d57c99190dbcf034102882487177.tar.zst
tangerine-wallet-browser-4404dfc5d328d57c99190dbcf034102882487177.zip
Merge branch 'master' into direct-block-tracker
Diffstat (limited to 'app/scripts/lib/account-tracker.js')
-rw-r--r--app/scripts/lib/account-tracker.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/scripts/lib/account-tracker.js b/app/scripts/lib/account-tracker.js
index e550c2758..a108d0d4f 100644
--- a/app/scripts/lib/account-tracker.js
+++ b/app/scripts/lib/account-tracker.js
@@ -11,6 +11,7 @@ const async = require('async')
const EthQuery = require('eth-query')
const ObservableStore = require('obs-store')
const EventEmitter = require('events').EventEmitter
+const ethUtil = require('ethereumjs-util')
function noop () {}
@@ -58,7 +59,9 @@ class AccountTracker extends EventEmitter {
_updateForBlock (block) {
this._currentBlockNumber = block.number
- this.store.updateState({ currentBlockGasLimit: block.gasLimit })
+ const currentBlockGasLimit = block.gasLimit
+
+ this.store.updateState({ currentBlockGasLimit })
async.parallel([
this._updateAccounts.bind(this),