decreased pending debounce to 5ms
This commit is contained in:
parent
5e7c3a3040
commit
fdec28938d
@ -202,6 +202,7 @@ Node.prototype.setupSockets = function()
|
|||||||
console.success('wsc', 'The socket connection has been established.');
|
console.success('wsc', 'The socket connection has been established.');
|
||||||
|
|
||||||
self.getLatestBlock();
|
self.getLatestBlock();
|
||||||
|
self.getPending();
|
||||||
self.getStats(true);
|
self.getStats(true);
|
||||||
})
|
})
|
||||||
.on('data', function incoming(data)
|
.on('data', function incoming(data)
|
||||||
@ -594,7 +595,6 @@ Node.prototype.prepareBasic = function ()
|
|||||||
mining: this.stats.mining,
|
mining: this.stats.mining,
|
||||||
hashrate: this.stats.hashrate,
|
hashrate: this.stats.hashrate,
|
||||||
peers: this.stats.peers,
|
peers: this.stats.peers,
|
||||||
pending: this.stats.pending,
|
|
||||||
gasPrice: this.stats.gasPrice,
|
gasPrice: this.stats.gasPrice,
|
||||||
miners: this.stats.miners,
|
miners: this.stats.miners,
|
||||||
uptime: this.stats.uptime
|
uptime: this.stats.uptime
|
||||||
@ -671,6 +671,8 @@ Node.prototype.setWatches = function()
|
|||||||
|
|
||||||
self._latestQueue.push(hash);
|
self._latestQueue.push(hash);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
console.success("Installed chain filter");
|
||||||
}
|
}
|
||||||
catch (err)
|
catch (err)
|
||||||
{
|
{
|
||||||
@ -696,8 +698,9 @@ Node.prototype.setWatches = function()
|
|||||||
{
|
{
|
||||||
debounce(function() {
|
debounce(function() {
|
||||||
self.getPending();
|
self.getPending();
|
||||||
}, 50);
|
}, 5);
|
||||||
}
|
}
|
||||||
|
console.success("Installed pending filter");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
catch (err)
|
catch (err)
|
||||||
|
Loading…
Reference in New Issue
Block a user