commit
03557fa6a9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user