test json query lag

This commit is contained in:
cubedro 2015-05-04 17:49:41 +03:00
parent 6d649b8b8b
commit 9c5b6e1a46
1 changed files with 5 additions and 1 deletions

View File

@ -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