From d4571b56bd6cd1faa9f21708f88d505b3845ddae Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 10 Jun 2016 19:06:14 -0700 Subject: [PATCH] reenable hash limit. --- lib/bcoin/pool.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/bcoin/pool.js b/lib/bcoin/pool.js index 042cd9b8..e826cff1 100644 --- a/lib/bcoin/pool.js +++ b/lib/bcoin/pool.js @@ -717,10 +717,10 @@ Pool.prototype._handleBlocks = function _handleBlocks(hashes, peer, callback) { // Normally this is 500, but with older // versions locator.GetDistanceBack() is called. - // if (hashes.length > 500) { - // peer.setMisbehavior(100); - // return; - // } + if (hashes.length > 500) { + peer.setMisbehavior(100); + return; + } this.emit('blocks', hashes);