Merge pull request #199 from cubedro/develop
Fixed pending debounce function
This commit is contained in:
commit
97f6a65709
@ -713,6 +713,10 @@ Node.prototype.setWatches = function()
|
|||||||
self._latestQueue.push(hash);
|
self._latestQueue.push(hash);
|
||||||
}, self._chan_min_time);
|
}, self._chan_min_time);
|
||||||
|
|
||||||
|
this._debouncedPending = debounce(function() {
|
||||||
|
self.getPending();
|
||||||
|
}, 5);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.chainFilter = web3.eth.filter('latest');
|
this.chainFilter = web3.eth.filter('latest');
|
||||||
this.chainFilter.watch( function (err, hash)
|
this.chainFilter.watch( function (err, hash)
|
||||||
@ -792,9 +796,7 @@ Node.prototype.setWatches = function()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
debounce(function() {
|
self._debouncedPending();
|
||||||
self.getPending();
|
|
||||||
}, 5);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user