Skip to content

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

Merged
SomberNight merged 3 commits intospesmilo:masterfrom
f321x:jit-accept-non-recoverable
Mar 4, 2025
Merged

Refactor on_channel_open to accept incoming channels if the source is a trusted zeroconf node#9588
SomberNight merged 3 commits intospesmilo:masterfrom
f321x:jit-accept-non-recoverable

Conversation

@f321x
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread electrum/lnpeer.py Outdated
@f321x
Copy link
Copy Markdown
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.

Comment thread electrum/lnpeer.py Outdated
@SomberNight SomberNight merged commit 718a513 into spesmilo:master Mar 4, 2025
@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