aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-05-25 04:43:36 +0800
committerkumavis <aaron@kumavis.me>2018-05-25 04:43:36 +0800
commit91accee2c65e2b9c9e278451f1d6794f74b27c24 (patch)
tree757ad3b3617ed95c2f616e8f0d52c5ba1d0ca432 /app/scripts
parent49ef93b99158b9fae21d841828d7e7d105f837df (diff)
downloadtangerine-wallet-browser-91accee2c65e2b9c9e278451f1d6794f74b27c24.tar
tangerine-wallet-browser-91accee2c65e2b9c9e278451f1d6794f74b27c24.tar.gz
tangerine-wallet-browser-91accee2c65e2b9c9e278451f1d6794f74b27c24.tar.bz2
tangerine-wallet-browser-91accee2c65e2b9c9e278451f1d6794f74b27c24.tar.lz
tangerine-wallet-browser-91accee2c65e2b9c9e278451f1d6794f74b27c24.tar.xz
tangerine-wallet-browser-91accee2c65e2b9c9e278451f1d6794f74b27c24.tar.zst
tangerine-wallet-browser-91accee2c65e2b9c9e278451f1d6794f74b27c24.zip
account-tracker - guard against empty block
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/lib/account-tracker.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/lib/account-tracker.js b/app/scripts/lib/account-tracker.js
index c9db65710..1a2354463 100644
--- a/app/scripts/lib/account-tracker.js
+++ b/app/scripts/lib/account-tracker.js
@@ -130,8 +130,9 @@ class AccountTracker {
async _updateForBlock (blockNumber) {
this._currentBlockNumber = blockNumber
- // this shouldn't be here...
+ // block gasLimit polling shouldn't be in account-tracker shouldn't be here...
const currentBlock = await this._query.getBlockByNumber(blockNumber, false)
+ if (!currentBlock) return
const currentBlockGasLimit = currentBlock.gasLimit
this.store.updateState({ currentBlockGasLimit })