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 endpoint to force-close LN-DLC channel #1895

Merged
merged 1 commit into from
Jan 26, 2024
Merged

Conversation

luckysori
Copy link
Contributor

@luckysori luckysori commented Jan 25, 2024

We may need this until all LN-DLC channels are closed. This serves as a less efficient alternative to collaborative revert, as it doesn't require cooperation with the counterparty and it may work when either party lacks all the data needed to perform the collaborative revert protocol.


I manually tested this by opening an LN-DLC channel (with a position) on version 1.7.4 and force-closing it using the same coordinator but updated to this branch. I've verified that the LN money is claimed on both sides after mining sufficient blocks. The DLC money is a bit more finicky because we have to mess with the expiry time, but given that this was already tested and that we haven't changed any of that code and that it was tested in ln-dlc-node on version 1.7.4, I don't see any risk.

@luckysori luckysori requested review from bonomat and holzeis January 25, 2024 06:02
@luckysori luckysori self-assigned this Jan 25, 2024
We may need this until all LN-DLC channels are closed. This serves as
a less efficient alternative to collaborative revert, as it doesn't
require cooperation with the counterparty and it _may_ work when
either party lacks all the data needed to perform the collaborative
revert protocol.
@luckysori luckysori force-pushed the feat/legacy-force-close branch from 3b50f14 to 88e82aa Compare January 25, 2024 06:48
Base automatically changed from feat/legacy-collab-revert to main January 25, 2024 12:41
@bonomat bonomat added this pull request to the merge queue Jan 26, 2024
Merged via the queue into main with commit 0440418 Jan 26, 2024
9 checks passed
@bonomat bonomat deleted the feat/legacy-force-close branch January 26, 2024 08:58
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.

3 participants