fixed txCount for older nodes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user