Skip to content

Commit

Permalink
Merge pull request goerli#15 from thereapman/patch-1
Browse files Browse the repository at this point in the history
Harden against missing transactions property
  • Loading branch information
ChainSafeSystems authored Feb 21, 2019
2 parents 6ad9c2c + 43b6c7e commit 35ccd7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 35ccd7a

Please sign in to comment.