config: expose mempool max size.
This commit is contained in:
parent
d3f94dbc6a
commit
1ec49be808
@ -42,6 +42,7 @@ index-address: false
|
|||||||
# Mempool
|
# Mempool
|
||||||
#
|
#
|
||||||
|
|
||||||
|
mempool-size: 100
|
||||||
limit-free: true
|
limit-free: true
|
||||||
limit-free-relay: 15
|
limit-free-relay: 15
|
||||||
reject-absurd-fees: true
|
reject-absurd-fees: true
|
||||||
|
|||||||
@ -250,6 +250,7 @@ config.toOptions = function toOptions(data) {
|
|||||||
options.indexAddress = bool(data.indexaddress);
|
options.indexAddress = bool(data.indexaddress);
|
||||||
|
|
||||||
// Mempool
|
// Mempool
|
||||||
|
options.mempoolSize = mul(data.mempoolsize, 1000 * 1000);
|
||||||
options.limitFree = bool(data.limitfree);
|
options.limitFree = bool(data.limitfree);
|
||||||
options.limitFreeRelay = bool(data.limitfreerelay);
|
options.limitFreeRelay = bool(data.limitfreerelay);
|
||||||
options.requireStandard = bool(data.requirestandard);
|
options.requireStandard = bool(data.requirestandard);
|
||||||
|
|||||||
@ -86,6 +86,7 @@ function FullNode(options) {
|
|||||||
logger: this.logger,
|
logger: this.logger,
|
||||||
chain: this.chain,
|
chain: this.chain,
|
||||||
fees: this.fees,
|
fees: this.fees,
|
||||||
|
maxSize: this.options.mempoolSize,
|
||||||
limitFree: this.options.limitFree,
|
limitFree: this.options.limitFree,
|
||||||
limitFreeRelay: this.options.limitFreeRelay,
|
limitFreeRelay: this.options.limitFreeRelay,
|
||||||
requireStandard: this.options.requireStandard,
|
requireStandard: this.options.requireStandard,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user