pool: fix handleGetBlocks.
This commit is contained in:
parent
92feb1be52
commit
85ed59c842
@ -1908,11 +1908,11 @@ class Pool extends EventEmitter {
|
||||
const blocks = [];
|
||||
|
||||
while (hash) {
|
||||
blocks.push(new InvItem(invTypes.BLOCK, hash));
|
||||
|
||||
if (packet.stop && hash.equals(packet.stop))
|
||||
break;
|
||||
|
||||
blocks.push(new InvItem(invTypes.BLOCK, hash));
|
||||
|
||||
if (blocks.length === 500) {
|
||||
peer.hashContinue = hash;
|
||||
break;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user