diff --git a/etc/sample.conf b/etc/sample.conf index 5dbf4b64..7e6679f5 100644 --- a/etc/sample.conf +++ b/etc/sample.conf @@ -42,6 +42,7 @@ index-address: false # Mempool # +mempool-size: 100 limit-free: true limit-free-relay: 15 reject-absurd-fees: true diff --git a/lib/node/config.js b/lib/node/config.js index ed3e2c9a..2457ca21 100644 --- a/lib/node/config.js +++ b/lib/node/config.js @@ -250,6 +250,7 @@ config.toOptions = function toOptions(data) { options.indexAddress = bool(data.indexaddress); // Mempool + options.mempoolSize = mul(data.mempoolsize, 1000 * 1000); options.limitFree = bool(data.limitfree); options.limitFreeRelay = bool(data.limitfreerelay); options.requireStandard = bool(data.requirestandard); diff --git a/lib/node/fullnode.js b/lib/node/fullnode.js index 152d5114..3ba8b9cb 100644 --- a/lib/node/fullnode.js +++ b/lib/node/fullnode.js @@ -86,6 +86,7 @@ function FullNode(options) { logger: this.logger, chain: this.chain, fees: this.fees, + maxSize: this.options.mempoolSize, limitFree: this.options.limitFree, limitFreeRelay: this.options.limitFreeRelay, requireStandard: this.options.requireStandard,