diff --git a/lib/bcoin/mempool.js b/lib/bcoin/mempool.js index 8aa25dce..d473535d 100644 --- a/lib/bcoin/mempool.js +++ b/lib/bcoin/mempool.js @@ -716,8 +716,10 @@ Mempool.prototype.removeUnchecked = function removeUnchecked(entry, limit) { // being removed for a block. The spenders // are still spending valid coins (which // now exist on the blockchain). - if (limit) + if (limit) { this._removeSpenders(entry); + this.logger.debug('Evicting %s from the mempool.', tx.rhash); + } this.untrackEntry(entry); diff --git a/lib/bcoin/protocol/constants.js b/lib/bcoin/protocol/constants.js index e43a7e57..50076e61 100644 --- a/lib/bcoin/protocol/constants.js +++ b/lib/bcoin/protocol/constants.js @@ -461,7 +461,7 @@ exports.mempool = { * Maximum mempool size in bytes. */ - MAX_MEMPOOL_SIZE: 300 * 1000000, + MAX_MEMPOOL_SIZE: 100 * 1000000, /** * The time at which transactions