Merge pull request #100 from cubedro/develop

fixed checkWeb3 error message
This commit is contained in:
Marian OANCΞA 2015-04-30 14:17:17 +03:00
commit e84cfaa96c

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