ignore orphans.

This commit is contained in:
Christopher Jeffrey 2016-05-06 22:54:32 -07:00
parent 080dfb3a9f
commit f11f4091f5
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -612,15 +612,12 @@ Mempool.prototype.addTX = function addTX(tx, callback, force) {
return callback(err); return callback(err);
if (!tx.hasCoins()) { if (!tx.hasCoins()) {
// if (tx.getSize() > 5000)
// return callback();
if (self.totalSize > constants.mempool.MAX_MEMPOOL_SIZE) { if (self.totalSize > constants.mempool.MAX_MEMPOOL_SIZE) {
return callback(new VerifyError(tx, return callback(new VerifyError(tx,
'insufficientfee', 'insufficientfee',
'mempool full', 'mempool full',
0)); 0));
} }
bcoin.debug('Added orphan %s to mempool.', tx.rhash);
return self.storeOrphan(tx, callback); return self.storeOrphan(tx, callback);
} }