Skip to content
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

Merged
merged 2 commits into from
May 16, 2024

Conversation

remcoros
Copy link
Contributor

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:

Screenshot_20240516_181637_ZEUS

After enabling the new settings:

Screenshot_20240516_181954_ZEUS

@Dominion5254 Dominion5254 self-assigned this May 16, 2024
Copy link
Collaborator

@Dominion5254 Dominion5254 left a 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.

Comment on lines +35 to +39
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'";
}
},
Copy link
Collaborator

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.

Copy link
Contributor Author

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

Comment on lines 433 to 435
"description":
"Set to enable support for zero-conf channels. This requires the option-scid-alias flag to also be set.\n",
"default": false,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"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,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Collaborator

@Dominion5254 Dominion5254 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Dominion5254 Dominion5254 merged commit bc1426b into Start9Labs:master May 16, 2024
1 check passed
@remcoros remcoros deleted the feat/zero-conf-channels branch May 16, 2024 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants