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