loop/staticaddr
Slyghtning 3fdd9e2250
staticaddr/loopin: recover deposits by current outpoint
Recovered loop-ins carry two outpoint views. DepositOutpoints is the
immutable swap input snapshot sent to the server and used to validate
sweep requests. Deposits comes from the store's swap_hash/deposit-id
join and reflects the current deposit rows.

The active-deposit lookup takes a detour through the reconstructed
deposit rows before asking the deposit manager for active deposits.
That keeps recovery from depending on the historical input snapshot.

A future replacement path can RBF a deposit from its original funding
outpoint to a replacement outpoint while the swap still needs to retain
the original input list. Looking up active deposits by DepositOutpoints
would then fail recovery even though the store still maps the correct
deposit IDs to the swap hash.

Keep list responses on the store reconstruction too, so they do not
re-resolve deposits through historical outpoints.
2026-07-08 09:01:17 +02:00
..
address lint: enable deprecation checks 2026-06-22 12:46:12 -05:00
deposit staticaddr/deposit: canonicalize multi-deposit locks 2026-07-08 09:01:17 +02:00
loopin staticaddr/loopin: recover deposits by current outpoint 2026-07-08 09:01:17 +02:00
openchannel staticaddr/deposit: reject duplicate outpoints 2026-07-08 09:00:26 +02:00
script staticaddr: fix timeout comment typo 2026-05-27 11:49:49 +02:00
staticutil staticaddr/deposit: reject duplicate outpoints 2026-07-08 09:00:26 +02:00
version multi: do not rename swapserverrpc to looprpc 2024-09-10 09:54:17 -03:00
withdraw staticaddr/deposit: guard confirmation height access 2026-07-08 09:01:01 +02:00
log.go staticaddr: open channel manager 2026-02-26 20:57:26 +01:00