ignore orphans.
This commit is contained in:
parent
080dfb3a9f
commit
f11f4091f5
@ -612,15 +612,12 @@ Mempool.prototype.addTX = function addTX(tx, callback, force) {
|
||||
return callback(err);
|
||||
|
||||
if (!tx.hasCoins()) {
|
||||
// if (tx.getSize() > 5000)
|
||||
// return callback();
|
||||
if (self.totalSize > constants.mempool.MAX_MEMPOOL_SIZE) {
|
||||
return callback(new VerifyError(tx,
|
||||
'insufficientfee',
|
||||
'mempool full',
|
||||
0));
|
||||
}
|
||||
bcoin.debug('Added orphan %s to mempool.', tx.rhash);
|
||||
return self.storeOrphan(tx, callback);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user