test json query lag
This commit is contained in:
parent
6d649b8b8b
commit
9c5b6e1a46
@ -360,13 +360,17 @@ Node.prototype.getStats = function()
|
|||||||
if(this._socket)
|
if(this._socket)
|
||||||
this._lastStats = JSON.stringify(this.stats);
|
this._lastStats = JSON.stringify(this.stats);
|
||||||
|
|
||||||
if(this.isActive())
|
// if(this.isActive())
|
||||||
|
if(this._web3)
|
||||||
{
|
{
|
||||||
var block = this.getBlock();
|
var block = this.getBlock();
|
||||||
|
|
||||||
if( !_.isUndefined(block) && !_.isUndefined(block.number) && !_.isUndefined(block.hash) && block.hash !== '?' )
|
if( !_.isUndefined(block) && !_.isUndefined(block.number) && !_.isUndefined(block.hash) && block.hash !== '?' )
|
||||||
{
|
{
|
||||||
this.stats.block = block;
|
this.stats.block = block;
|
||||||
|
this.sendUpdate();
|
||||||
|
|
||||||
|
this.isActive();
|
||||||
|
|
||||||
if(PENDING_WORKS) {
|
if(PENDING_WORKS) {
|
||||||
try
|
try
|
||||||
|
Loading…
Reference in New Issue
Block a user