diff --git a/lib/node.js b/lib/node.js index 45bbe14..34626ca 100644 --- a/lib/node.js +++ b/lib/node.js @@ -360,13 +360,17 @@ Node.prototype.getStats = function() if(this._socket) this._lastStats = JSON.stringify(this.stats); - if(this.isActive()) + // if(this.isActive()) + if(this._web3) { var block = this.getBlock(); if( !_.isUndefined(block) && !_.isUndefined(block.number) && !_.isUndefined(block.hash) && block.hash !== '?' ) { this.stats.block = block; + this.sendUpdate(); + + this.isActive(); if(PENDING_WORKS) { try