loop/loopd
Slyghtning 7287da1559
staticaddr: cancel loop-ins when deposit inputs vanish
Keep replacement UTXOs as fresh deposits while preserving the original deposit
record and selected outpoint snapshot for pending swaps.

Before signing a static loop-in HTLC, check each original selected outpoint with
GetTxOut(..., includeMempool=true). Cancel the pending invoice only when that
check reports an original outpoint unavailable; lookup errors fail the action
without canceling so transient chain backend errors do not incorrectly abandon
the swap.

Keep recovered loop-ins using their stored outpoint snapshot and cover
replacement discovery and cancellation in tests.
2026-05-22 11:22:42 +02:00
..
config.go liquidity: gate static autoloop 2026-05-22 02:32:15 -05:00
daemon.go staticaddr: cancel loop-ins when deposit inputs vanish 2026-05-22 11:22:42 +02:00
daemon_test.go loopd: test error reporting logic 2025-12-20 06:31:02 +01:00
log.go lint: fix linter issues 2026-03-09 14:39:45 +01:00
macaroons.go loopd: move RequiredPermissions to dedicated dir 2022-06-14 15:13:34 +02:00
migration.go loopd: fix data races of logger 2025-03-19 15:00:30 +01:00
register_default.go lint: fix linter issues 2026-03-09 14:39:45 +01:00
run.go loopd: wait for chain notifier 2025-11-16 00:26:02 -03:00
swapclient_server.go staticaddr: apply confirmation policy by flow 2026-05-22 11:22:41 +02:00
swapclient_server_debug.go make fmt 2022-05-20 10:16:47 +02:00
swapclient_server_deposit_test.go staticaddr: apply confirmation policy by flow 2026-05-22 11:22:41 +02:00
swapclient_server_staticaddr_test.go staticaddr: track unconfirmed deposits 2026-05-22 11:22:41 +02:00
swapclient_server_test.go staticaddr: track unconfirmed deposits 2026-05-22 11:22:41 +02:00
sweep_htlc.go loopd: implement SweepHtlc RPC 2026-01-29 17:40:58 -05:00
sweep_htlc_test.go lint: fix linter issues 2026-03-09 14:39:45 +01:00
utils.go liquidity: gate static autoloop 2026-05-22 02:32:15 -05:00
view.go multi: update linter, fix issues 2025-03-10 22:59:50 +01:00