added txCount error

This commit is contained in:
cubedro 2015-02-27 01:19:55 +02:00
parent 2464ed0ad0
commit 045d8cceb2
1 changed files with 7 additions and 0 deletions

View File

@ -121,6 +121,7 @@ Node.prototype.isActive = function()
code: '1',
msg: err
});
console.log(err);
}
this.stats.active = false;
@ -154,6 +155,7 @@ Node.prototype.getBlock = function(number)
code: '3',
msg: err
});
console.log(err);
}
}
@ -170,6 +172,10 @@ Node.prototype.getBlock = function(number)
block.txCount = web3.eth.transactionCount(block.hash) || '?';
}
catch (err) {
this.stats.errors.push({
code: '4',
msg: err
});
console.log(err);
}
}
@ -179,6 +185,7 @@ Node.prototype.getBlock = function(number)
code: '2',
msg: err
});
console.log(err);
}
return block;