-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add configuration options for allowing zero-conf channels #127
add configuration options for allowing zero-conf channels #127
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good with the addition of two suggestions.
currentError(config) { | ||
if (config.advanced["protocol-zero-conf"] && !config.advanced["protocol-option-scid-alias"]) { | ||
return "'Advanced > Enable option-scid-alias Channels' must be enabled to enable zero-conf channels'"; | ||
} | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the lnd documentation, it seem zero-conf also requires anchor channels.
While anchors are enabled by default, I believe we should probably include a conditional to confirm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added an additional config rule for it
scripts/services/getConfig.ts
Outdated
"description": | ||
"Set to enable support for zero-conf channels. This requires the option-scid-alias flag to also be set.\n", | ||
"default": false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"description": | |
"Set to enable support for zero-conf channels. This requires the option-scid-alias flag to also be set.\n", | |
"default": false, | |
"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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
…ero-conf channels
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I am experimenting with Zeus Olympus LSP, which uses 0-conf (zero-conf) channels for easy onboarding.
This requires two options enabled in LND: https://github.com/lightningnetwork/lnd/blob/master/docs/zero_conf_channels.md
This PR adds those configuration options (keeping the default to false, as it is now).
In Zeus, before:
After enabling the new settings: