Skip to content

Commit

Permalink
move maxmempoolback to advanced (#10)
Browse files Browse the repository at this point in the history
* move maxmempoolback to advanced

* oops

* fix conf template
  • Loading branch information
BitcoinMechanic authored Oct 15, 2024
1 parent 9536c6b commit f44f062
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 12 deletions.
2 changes: 1 addition & 1 deletion assets/compat/bitcoin.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ persistmempool=1
{{#IF !blkconstr.persistmempool
persistmempool=0
}}
maxmempool={{blkconstr.maxmempool}}
maxmempool={{advanced.mempool.maxmempool}}
mempoolexpiry={{blkconstr.mempoolexpiry}}

## PEERS
Expand Down
40 changes: 29 additions & 11 deletions scripts/services/getConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <n> 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 <n> megabytes.",
// range: "[1,*)",
// integral: true,
// units: "MiB",
// default: 300,
// },
mempoolexpiry: {
type: "number",
nullable: false,
Expand Down Expand Up @@ -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 <n> megabytes.",
range: "[1,*)",
integral: true,
units: "MiB",
default: 300,
},
},
},
peers: {
type: "object",
name: "Peers",
Expand Down

0 comments on commit f44f062

Please sign in to comment.