Merge pull request #157 from cubedro/develop

Decreased pending debounce to 5ms
This commit is contained in:
Marian OANCΞA 2015-06-01 23:07:24 +03:00
commit fc370de14e
1 changed files with 5 additions and 2 deletions

View File

@ -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)