Skip to content

Conversation

@t-bast
Copy link
Member

@t-bast t-bast commented Apr 24, 2025

We have this legacy class in the ClaimHtlcTx hierarchy for legacy cases that didn't store the paymentHash with the transaction. This was introduced to ensure that nodes who upgraded while a force-close was happening would still be able to finish force-closing the channel and get their funds back.

This was introduced in #2101 which was released in eclair v0.7.0 on 01/02/2022. Since we've made several important bug fixes since then, it should be safe to assume that we don't care about node operators who update from this very old version while a channel is closing, the remote commit got confirmed, and some HTLCs must be claimed with the preimage on-chain.

We have this legacy class in the `ClaimHtlcTx` hierarchy for legacy
cases that didn't store the `paymentHash` with the transaction. This
was introduced to ensure that nodes who upgraded while a force-close
was happening would still be able to finish force-closing the channel
and get their funds back.

This was introduced in #2101 which was released in eclair v0.7.0 on
01/02/2022. Since we've made several important bug fixes since then,
it should be safe to assume that we don't care about node operators
who update from this very old version while a channel is closing, the
remote commit got confirmed, and some HTLCs must be claimed with the
preimage on-chain.
@t-bast t-bast requested a review from pm47 April 24, 2025 17:18
Copy link
Member

@pm47 pm47 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, codecs changes look safe.

@t-bast t-bast merged commit 826284c into master Apr 25, 2025
1 check passed
@t-bast t-bast deleted the remove-legacy-claim-htlc-success-tx branch April 25, 2025 12:55
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