mempool: max size and logs.

This commit is contained in:
Christopher Jeffrey 2016-08-16 20:18:02 -07:00
parent ebcfe66638
commit 77502ca496
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 4 additions and 2 deletions

View File

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

View File

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