Skip to content

LSPS2: Fail intercepted htlcs if lsp open channel fails for whatever reason #3479

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

Open
johncantrell97 opened this issue May 1, 2024 · 0 comments · May be fixed by #3712
Open

LSPS2: Fail intercepted htlcs if lsp open channel fails for whatever reason #3479

johncantrell97 opened this issue May 1, 2024 · 0 comments · May be fixed by #3712

Comments

@johncantrell97
Copy link
Contributor

There's a scenario where we emit OpenChannel event to the LSP to handle. From there liquidity is waiting for them to feed us a ChannelReady event but if they refuse or fail to open the channel then this HTLC is just stuck forever.

We should expose a method the LSP can use to tell us to go ahead and fail all the pending payments backwards.

@tnull tnull transferred this issue from lightningdevkit/lightning-liquidity Dec 11, 2024
martinsaposnic added a commit to martinsaposnic/rust-lightning that referenced this issue Apr 7, 2025
Add two LSPS2Service methods:
'Abandoned' prunes all channel open state.
'Failed' resets JIT channel to fail HTLCs.
It allows a retry on channel open.
Closes lightningdevkit#3479.
martinsaposnic added a commit to martinsaposnic/rust-lightning that referenced this issue Apr 7, 2025
Add two LSPS2Service methods:
'Abandoned' prunes all channel open state.
'Failed' resets JIT channel to fail HTLCs.
It allows a retry on channel open.
Closes lightningdevkit#3479.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment