From 9c5b6e1a469b88b1d799c7a595713bcb0412ad94 Mon Sep 17 00:00:00 2001 From: cubedro Date: Mon, 4 May 2015 17:49:41 +0300 Subject: [PATCH] test json query lag --- lib/node.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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