diff --git a/assets/compat/bitcoin.conf.template b/assets/compat/bitcoin.conf.template index 71b21c9..bf89398 100644 --- a/assets/compat/bitcoin.conf.template +++ b/assets/compat/bitcoin.conf.template @@ -39,7 +39,7 @@ persistmempool=1 {{#IF !blkconstr.persistmempool persistmempool=0 }} -maxmempool={{blkconstr.maxmempool}} +maxmempool={{advanced.mempool.maxmempool}} mempoolexpiry={{blkconstr.mempoolexpiry}} ## PEERS diff --git a/scripts/services/getConfig.ts b/scripts/services/getConfig.ts index e4cc245..cc448ee 100644 --- a/scripts/services/getConfig.ts +++ b/scripts/services/getConfig.ts @@ -68,17 +68,17 @@ export const getConfig: T.ExpectedExports.getConfig = async (effects) => { description: "Save the mempool on shutdown and load on restart.", default: true, }, - maxmempool: { - type: "number", - nullable: false, - name: "Max Mempool Size", - description: - "Keep the transaction memory pool below megabytes.", - range: "[1,*)", - integral: true, - units: "MiB", - default: 300, - }, + // maxmempool: { + // type: "number", + // nullable: false, + // name: "Max Mempool Size", + // description: + // "Keep the transaction memory pool below megabytes.", + // range: "[1,*)", + // integral: true, + // units: "MiB", + // default: 300, + // }, mempoolexpiry: { type: "number", nullable: false, @@ -365,6 +365,24 @@ export const getConfig: T.ExpectedExports.getConfig = async (effects) => { name: "Advanced", description: "Advanced Settings", spec: { + mempool: { + type: "object", + name: "Mempool", + description: "Mempool Settings", + spec: { + maxmempool: { + type: "number", + nullable: false, + name: "Max Mempool Size", + description: + "Keep the transaction memory pool below megabytes.", + range: "[1,*)", + integral: true, + units: "MiB", + default: 300, + }, + }, + }, peers: { type: "object", name: "Peers",