loop/loopd
Slyghtning 9fb4a5d606
staticaddr/loopin: persist risk decisions
Store the server's static loop-in confirmation-risk decision and the time it
was received. This lets recovered swaps reconstruct whether payment waiting had
already started and how much of the payment timeout remains.

Wire notification handling to persist accepted and rejected decisions before
caching and forwarding them. If the swap row is not present yet, the
notification is still cached so the per-swap waiter can replay and store the
decision later.

Recover accepted decisions by starting the payment deadline from the persisted
decision time, and recover rejected decisions by canceling the invoice and
failing the swap instead of waiting forever.
2026-05-22 11:22:44 +02:00
..
config.go liquidity: gate static autoloop 2026-05-22 02:32:15 -05:00
daemon.go staticaddr/loopin: persist risk decisions 2026-05-22 11:22:44 +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: harden client deposit readiness 2026-05-22 11:22:43 +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: harden client deposit readiness 2026-05-22 11:22:43 +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