From fdec28938dfffe08b43a9a0fba1dec28a778605f Mon Sep 17 00:00:00 2001 From: cubedro Date: Mon, 1 Jun 2015 23:04:43 +0300 Subject: [PATCH] decreased pending debounce to 5ms --- lib/node.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/node.js b/lib/node.js index b4a3fa0..8e94806 100644 --- a/lib/node.js +++ b/lib/node.js @@ -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)