config: expose mempool max size.
This commit is contained in:
parent
d3f94dbc6a
commit
1ec49be808
@ -42,6 +42,7 @@ index-address: false
|
||||
# Mempool
|
||||
#
|
||||
|
||||
mempool-size: 100
|
||||
limit-free: true
|
||||
limit-free-relay: 15
|
||||
reject-absurd-fees: true
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user