fixed txCount for older nodes

This commit is contained in:
cubedro 2015-02-18 12:02:27 +02:00
parent 2ac4a0ddf8
commit ec00505cab
1 changed files with 1 additions and 1 deletions

View File

@ -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);