config: expose mempool max size.

This commit is contained in:
Christopher Jeffrey 2017-02-07 14:02:54 -08:00
parent d3f94dbc6a
commit 1ec49be808
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
3 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,7 @@ index-address: false
# Mempool
#
mempool-size: 100
limit-free: true
limit-free-relay: 15
reject-absurd-fees: true

View File

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

View File

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