fixed txCount for older nodes

This commit is contained in:
cubedro 2015-02-18 12:02:27 +02:00
parent 2ac4a0ddf8
commit ec00505cab

View File

@ -160,7 +160,7 @@ Node.prototype.getBlock = function(number)
block.difficulty = web3.toDecimal(block.difficulty); block.difficulty = web3.toDecimal(block.difficulty);
try { try {
block.txCount = web3.eth.transactionCount(block.hash); block.txCount = web3.eth.transactionCount(block.hash) || '?';
} }
catch (err) { catch (err) {
console.log(err); console.log(err);