From 0139e1340c9261749bf77b18e77ebee9eefba75d Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 17 Feb 2016 18:00:54 -0800 Subject: [PATCH] minor pool changes. --- lib/bcoin/pool.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/bcoin/pool.js b/lib/bcoin/pool.js index 1e576ca7..8065e214 100644 --- a/lib/bcoin/pool.js +++ b/lib/bcoin/pool.js @@ -56,7 +56,7 @@ function Pool(options) { this.server = null; this.destroyed = false; - this.size = options.size || 32; + this.size = options.size || 8; this.blockdb = options.blockdb; this.mempool = options.mempool; @@ -559,6 +559,8 @@ Pool.prototype._handleBlocks = function _handleBlocks(hashes, peer) { hash = hashes[i]; if (this.chain.hasOrphan(hash)) { + utils.debug('Peer sent a hash that is already a known orphan.'); + // Make sure the peer doesn't send us // more than 200 orphans every 3 minutes. if (this.isOrphaning(peer)) {