fixed pending debounce function

This commit is contained in:
cubedro 2015-06-24 03:23:28 +03:00
parent e87dda5e08
commit 6e045d93e4
1 changed files with 5 additions and 3 deletions

View File

@ -713,6 +713,10 @@ Node.prototype.setWatches = function()
self._latestQueue.push(hash);
}, self._chan_min_time);
this._debouncedPending = debounce(function() {
self.getPending();
}, 5);
try {
this.chainFilter = web3.eth.filter('latest');
this.chainFilter.watch( function (err, hash)
@ -792,9 +796,7 @@ Node.prototype.setWatches = function()
}
else
{
debounce(function() {
self.getPending();
}, 5);
self._debouncedPending();
}
});