staticaddr/loopin: persist confirmed HTLC outputs - #1217
Draft
hieblmi wants to merge 2 commits into
Draft
Conversation
Record the exact confirmed HTLC transaction, output index, and value so recovery sweeps the server-published output instead of reconstructing it from legacy assumptions.
hieblmi
force-pushed
the
multi-address-loopin-htlc-recovery
branch
from
August 28, 2026 13:35
c67aa38 to
1f738ef
Compare
hieblmi
force-pushed
the
multi-address-withdrawal-hardening
branch
from
August 28, 2026 13:35
82b5b00 to
042bc9b
Compare
This was referenced Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The server can publish any of the standard, high-fee, or extreme-fee HTLC transaction variants signed by the client. Timeout recovery previously reconstructed only the standard variant, which could target a nonexistent outpoint after a backup variant confirmed.
Persist the exact confirmed HTLC transaction hash, output index, and value before timeout recovery. Clear the recorded outpoint on reorg, validate that the confirmed transaction spends the selected deposits in signed order, and retain the legacy reconstruction fallback for older swaps.
This PR is stacked on #1215.
Testing
Pull Request Checklist