From 85ed59c842f2aa4c1a8154d74a9cad7696cdfee3 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 10 Aug 2018 16:28:23 -0700 Subject: [PATCH] pool: fix handleGetBlocks. --- lib/net/pool.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/net/pool.js b/lib/net/pool.js index 695b581c..a73ac121 100644 --- a/lib/net/pool.js +++ b/lib/net/pool.js @@ -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;