minor pool changes.
This commit is contained in:
parent
6ef09f39ec
commit
0139e1340c
@ -56,7 +56,7 @@ function Pool(options) {
|
|||||||
|
|
||||||
this.server = null;
|
this.server = null;
|
||||||
this.destroyed = false;
|
this.destroyed = false;
|
||||||
this.size = options.size || 32;
|
this.size = options.size || 8;
|
||||||
|
|
||||||
this.blockdb = options.blockdb;
|
this.blockdb = options.blockdb;
|
||||||
this.mempool = options.mempool;
|
this.mempool = options.mempool;
|
||||||
@ -559,6 +559,8 @@ Pool.prototype._handleBlocks = function _handleBlocks(hashes, peer) {
|
|||||||
hash = hashes[i];
|
hash = hashes[i];
|
||||||
|
|
||||||
if (this.chain.hasOrphan(hash)) {
|
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
|
// Make sure the peer doesn't send us
|
||||||
// more than 200 orphans every 3 minutes.
|
// more than 200 orphans every 3 minutes.
|
||||||
if (this.isOrphaning(peer)) {
|
if (this.isOrphaning(peer)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user