Skip to content

Refactor on_channel_open to accept incoming channels if the source is a trusted zeroconf node #9588

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

Merged
merged 3 commits into from
Mar 4, 2025

Conversation

f321x
Copy link
Member

@f321x f321x commented Feb 28, 2025

Allows the client to accept an incoming channel even if recoverable channels are enabled if the originator is a trusted zeroconf node. This way the client doesn't have to completely disable recoverable channels to get incoming JIT channels and as the trusted nodes are supposed to be hardcoded the client is able to recover them.
If we want to move away from hardcoding the providers we could look into opening recoverable jit channels.
Required for #9584

@SomberNight
Copy link
Member

as the trusted nodes are supposed to be hardcoded the client is able to recover them

What do you mean by hardcoded? Atm it is the config.ZEROCONF_TRUSTED_NODE, isn't it? In theory the user could change it arbitrarily.

@f321x
Copy link
Member Author

f321x commented Mar 4, 2025

as the trusted nodes are supposed to be hardcoded the client is able to recover them

What do you mean by hardcoded? Atm it is the config.ZEROCONF_TRUSTED_NODE, isn't it? In theory the user could change it arbitrarily.

After discussing about this with @ecdsa we came to the conclusion that it should be ok to accept non recoverable zeroconf as long as it is not exposed to the GUI. When we ship it in gui we probably need to hardcode them / don't allow for change in the gui due to the trust relation in zeroconf channels.

@SomberNight SomberNight merged commit 718a513 into spesmilo:master Mar 4, 2025
2 of 13 checks passed
@f321x f321x deleted the jit-accept-non-recoverable branch March 4, 2025 16:07
@ecdsa ecdsa changed the title Refector on_channel_open to accept incoming channels if the source is a trusted zeroconf node Refactor on_channel_open to accept incoming channels if the source is a trusted zeroconf node Mar 4, 2025
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