Merge pull request #15 from thereapman/patch-1

Harden against missing transactions property
revert-15-patch-1
ChainSafe 6 years ago committed by GitHub
commit 35ccd7a656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lib/history.js

@ -606,7 +606,7 @@ History.prototype.getCharts = function()
blocktime: item.block.time / 1000,
difficulty: item.block.difficulty,
uncles: item.block.uncles.length,
transactions: item.block.transactions.length,
transactions: item.block.transactions ? item.block.transactions.length : 0,
gasSpending: item.block.gasUsed,
gasLimit: item.block.gasLimit,
miner: item.block.miner

Loading…
Cancel
Save