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