minor pool changes.

This commit is contained in:
Christopher Jeffrey 2016-02-17 18:00:54 -08:00
parent 6ef09f39ec
commit 0139e1340c

View File

@ -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)) {