fixed checkWeb3 error message

This commit is contained in:
cubedro 2015-04-30 12:29:40 +03:00
parent 0e1d997ab5
commit 6d649b8b8b

View File

@ -137,7 +137,7 @@ Node.prototype.checkWeb3Connection = function()
}
catch(err)
{
console.error('xx> Ethereum connection attempt #' + this.called++ + ' failed; ', err);
console.error('xx> Ethereum connection attempt #' + this._called++ + ' failed;');
process.nextTick( function()
{
@ -288,18 +288,8 @@ Node.prototype.getBlock = function(number)
timestamp: 0
};
if( _.isUndefined(number) ){
if( _.isUndefined(number) )
number = "latest";
// try {
// number = web3.eth.blockNumber;
// if(number === this.stats.block.number)
// return this.stats.block;
// }
// catch (err) {
// console.error("blockNumber:", err);
// }
}
try {
block = web3.eth.getBlock(number, true);