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

Propagate next remote commit failed htlcs upstream #2718

Merged
merged 2 commits into from Aug 16, 2023

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Jul 26, 2023

When our peer fails HTLCs, we only propagate the failure upstream once we've received their revocation for the previous commitment (because they could otherwise publish the previous commitment and claim those HTLCs).

If they publish the new commitment without sending us their revocation, we previously didn't propagate the failure upstream, which leads to an unnecessary force-close. We now correctly handle this scenario.

This issue was reported by @wtogami and is responsible for a force-close of one of our channels.

When our peer fails HTLCs, we only propagate the failure upstream once
we've received their revocation for the previous commitment (because they
could otherwise publish the previous commitment and claim those HTLCs).

If they publish the new commitment without sending us their revocation,
we previously didn't propagate the failure upstream, which leads to an
unnecessary force-close. We now correctly handle this scenario.
This is obsolete since the introduction of slow/medium/fast feerates.
@pm47
Copy link
Member

pm47 commented Aug 16, 2023

Subtle!

@t-bast t-bast merged commit c7e47ba into master Aug 16, 2023
1 check passed
@t-bast t-bast deleted the next-remote-commit-overridden-htlcs branch August 16, 2023 15:09
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.

None yet

2 participants