staticaddr/loopin: use generated change addresses

Create a fresh static change address for fractional loop-ins and persist
its key locator with the selected HTLC outpoint. Recovery reconstructs
the same change output instead of returning funds to the legacy root
address.
This commit is contained in:
Slyghtning 2026-07-10 14:23:57 +02:00
parent d1b29e0bb5
commit b2f37bfa78
No known key found for this signature in database
GPG key ID: F82D456EA023C9BF
18 changed files with 878 additions and 90 deletions

View file

@ -152,6 +152,10 @@ type StaticAddressSwap struct {
Fast bool
ConfirmationRiskDecision string
ConfirmationRiskDecisionTime sql.NullTime
ChangeStaticAddressID sql.NullInt32
ConfirmedHtlcTxID sql.NullString
ConfirmedHtlcOutputIndex sql.NullInt32
ConfirmedHtlcOutputValue sql.NullInt64
}
type StaticAddressSwapUpdate struct {