Merge pull request #100 from cubedro/develop
fixed checkWeb3 error message
This commit is contained in:
commit
e84cfaa96c
14
lib/node.js
14
lib/node.js
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user