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.');
|
||||
|
||||
self.getLatestBlock();
|
||||
self.getPending();
|
||||
self.getStats(true);
|
||||
})
|
||||
.on('data', function incoming(data)
|
||||
@ -594,7 +595,6 @@ Node.prototype.prepareBasic = function ()
|
||||
mining: this.stats.mining,
|
||||
hashrate: this.stats.hashrate,
|
||||
peers: this.stats.peers,
|
||||
pending: this.stats.pending,
|
||||
gasPrice: this.stats.gasPrice,
|
||||
miners: this.stats.miners,
|
||||
uptime: this.stats.uptime
|
||||
@ -671,6 +671,8 @@ Node.prototype.setWatches = function()
|
||||
|
||||
self._latestQueue.push(hash);
|
||||
});
|
||||
|
||||
console.success("Installed chain filter");
|
||||
}
|
||||
catch (err)
|
||||
{
|
||||
@ -696,8 +698,9 @@ Node.prototype.setWatches = function()
|
||||
{
|
||||
debounce(function() {
|
||||
self.getPending();
|
||||
}, 50);
|
||||
}, 5);
|
||||
}
|
||||
console.success("Installed pending filter");
|
||||
});
|
||||
}
|
||||
catch (err)
|
||||
|
Loading…
Reference in New Issue
Block a user