mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-19 13:17:50 +02:00
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:
parent
d1b29e0bb5
commit
b2f37bfa78
18 changed files with 878 additions and 90 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue