pool: emit 'full' faster
This commit is contained in:
parent
7a8d6a1018
commit
2c5a622a66
@ -128,7 +128,7 @@ Pool.prototype._addLoader = function _addLoader() {
|
||||
|
||||
function destroy() {
|
||||
// Chain is full and up-to-date
|
||||
if (self.block.lastHash !== null && self.chain.isFull()) {
|
||||
if (self.chain.isFull()) {
|
||||
clearTimeout(timer);
|
||||
self._removePeer(peer);
|
||||
self.emit('full');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user