loop/staticaddr/loopin
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
..
actions.go staticaddr/loopin: keep htlc monitor resumable 2026-07-08 09:01:13 +02:00
actions_test.go staticaddr/loopin: keep htlc monitor resumable 2026-07-08 09:01:13 +02:00
autoloop.go staticaddr: use dp autoloop selector 2026-05-22 02:20:36 -05:00
autoloop_dp.go staticaddr/deposit: guard confirmation height access 2026-07-08 09:01:01 +02:00
autoloop_dp_test.go staticaddr: use dp autoloop selector 2026-05-22 02:20:36 -05:00
autoloop_test.go staticaddr: use dp autoloop selector 2026-05-22 02:20:36 -05:00
deduce_amount_test.go staticaddr: arbitrary loop-in amount 2025-09-25 11:13:34 +02:00
deposit_swaphash_migration.go staticaddr: migrate swap hashes to deposits 2025-08-01 11:26:32 +02:00
deposit_swaphash_migration_test.go staticaddr: selected swap amount migration 2025-09-25 11:13:35 +02:00
fsm.go lint: fix linter issues 2026-03-09 14:39:45 +01:00
interface.go staticaddr/loopin: add lnd txout checker 2026-07-08 09:00:56 +02:00
log.go multi: update lnd compile-time dependency to v0.19.0 2025-03-10 22:59:49 +01:00
loopin.go staticaddr/loopin: default payment timeout duration 2026-07-08 09:01:01 +02:00
loopin_test.go staticaddr: move address.Parameters to script package 2026-05-01 15:54:37 +05:30
manager.go staticaddr/loopin: recover deposits by current outpoint 2026-07-08 09:01:17 +02:00
manager_test.go staticaddr/loopin: recover deposits by current outpoint 2026-07-08 09:01:17 +02:00
selected_amount_migration.go staticaddr: selected swap amount migration 2025-09-25 11:13:35 +02:00
selected_amount_migration_test.go staticaddr: selected swap amount migration 2025-09-25 11:13:35 +02:00
sql_store.go staticaddr/loopin: preserve selected deposit outpoints 2026-07-08 09:00:34 +02:00
sql_store_test.go staticaddr/loopin: preserve selected deposit outpoints 2026-07-08 09:00:34 +02:00
txout_checker.go staticaddr/loopin: add lnd txout checker 2026-07-08 09:00:56 +02:00
txout_checker_test.go staticaddr/loopin: add lnd txout checker 2026-07-08 09:00:56 +02:00