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)