Skip to content

Add more force-close tests for HTLC settlement#772

Merged
t-bast merged 2 commits intomasterfrom
additional-force-close-tests
Mar 28, 2025
Merged

Add more force-close tests for HTLC settlement#772
t-bast merged 2 commits intomasterfrom
additional-force-close-tests

Conversation

@t-bast
Copy link
Member

@t-bast t-bast commented Mar 25, 2025

This commit is importing test updates and refactoring to the closing helpers from ACINQ/eclair#3040

We don't relay HTLCs, so we don't have an upstream channel to relay preimages to, but it's important to relay preimages to the payment handler to correctly mark payments as succeeded (or failed) and store the proof of payment.

@t-bast t-bast requested review from pm47 and sstone March 25, 2025 12:04
This commit is importing test updates and refactoring to the closing
helpers from ACINQ/eclair#3040

We don't relay HTLCs, so we don't have an upstream channel to relay
preimages to, but it's important to relay preimages to the payment
handler to correctly mark payments as succeeded (or failed) and store
the proof of payment.
@t-bast t-bast force-pushed the additional-force-close-tests branch from a425637 to 4985d1e Compare March 25, 2025 16:28
- use collection helpers to simplify some code
- introduce `HtlcOverriddenByRemoteCommit`
@t-bast t-bast merged commit ff0b210 into master Mar 28, 2025
2 checks passed
@t-bast t-bast deleted the additional-force-close-tests branch March 28, 2025 13:52
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