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

Detect partially failed htlcs when closing #215

Merged
merged 1 commit into from
Mar 3, 2021

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Feb 25, 2021

If a channel closes when we've received an UpdateFailHtlc, signed it but not yet received our peer's revocation, we need to consider that htlc failed.

That specific scenario was not correctly handled, resulting in payments that were not failed and were kept pending forever.
In that scenario the HTLC is in the remoteCommit but not in the nextRemoteCommit.

See ACINQ/eclair#1706

If a channel closes when we've received an UpdateFailHtlc, signed it but
not yet received our peer's revocation, we need to consider that htlc failed.

That specific scenario was not correctly handled, resulting in payments
that were not failed and were kept pending forever.
@t-bast t-bast requested a review from sstone February 25, 2021 08:13
@t-bast t-bast merged commit 29b836f into master Mar 3, 2021
@t-bast t-bast deleted the closing-partially-failed-htlc branch March 3, 2021 12:37
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