diff --git a/lib/node.js b/lib/node.js index 8e53ee7..2856723 100644 --- a/lib/node.js +++ b/lib/node.js @@ -160,7 +160,7 @@ Node.prototype.getBlock = function(number) block.difficulty = web3.toDecimal(block.difficulty); try { - block.txCount = web3.eth.transactionCount(block.hash); + block.txCount = web3.eth.transactionCount(block.hash) || '?'; } catch (err) { console.log(err);