diff --git a/scripts/services/getConfig.ts b/scripts/services/getConfig.ts index cd44baf..fd4acd9 100644 --- a/scripts/services/getConfig.ts +++ b/scripts/services/getConfig.ts @@ -432,6 +432,8 @@ export const getConfig: T.ExpectedExports.getConfig = compat.getConfig({ "name": "Enable zero-conf Channels", "description": "Set to enable support for zero-conf channels. This requires the option-scid-alias flag to also be set.\n", + "warning": + "Zero-conf channels are channels that do not require confirmations to be used. Because of this, the fundee must trust the funder to not double-spend the channel and steal the balance of the channel.", "default": false, }, "protocol-option-scid-alias": { diff --git a/scripts/services/setConfig.ts b/scripts/services/setConfig.ts index a300067..1ed1b19 100644 --- a/scripts/services/setConfig.ts +++ b/scripts/services/setConfig.ts @@ -38,6 +38,13 @@ const configRules: Array = [ } }, }, + { + currentError(config) { + if (config.advanced["protocol-zero-conf"] && config.advanced["protocol-no-anchors"]) { + return "'Advanced > Disable Anchor Channels' must be disabled to enable zero-conf channels'"; + } + }, + }, ]; function checkConfigRules(config: Root): T.KnownError | void {