loop/staticaddr/loopin
Slyghtning 44a6c7a144 staticaddr/loopin: cancel orphan invoice on init failure
A static address loop-in that creates an invoice but then fails before storage cannot be recovered after restart, and persisted error paths that unlock deposits should not leave the swap invoice live either. The payment-deadline path also needs to report the real deposit unlock error instead of checking the FSM event returned by UnlockDepositsAction, because that action returns OnError on both success and failure.

Cancel private swap invoices on pre-storage init failures, monitor timeouts, and stored unlock paths using a detached timeout-limited helper. Factor deposit unlocking into an error-returning helper so deadline handling can log transition failures, and add coverage for early-init cancellation plus generic unlock invoice cleanup and error propagation.
2026-06-22 10:18:07 +02:00
..
actions.go staticaddr/loopin: cancel orphan invoice on init failure 2026-06-22 10:18:07 +02:00
actions_test.go staticaddr/loopin: cancel orphan invoice on init failure 2026-06-22 10:18:07 +02:00
autoloop.go staticaddr: use dp autoloop selector 2026-05-22 02:20:36 -05:00
autoloop_dp.go staticaddr: use dp autoloop selector 2026-05-22 02:20:36 -05: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: move address.Parameters to script package 2026-05-01 15:54:37 +05:30
log.go multi: update lnd compile-time dependency to v0.19.0 2025-03-10 22:59:49 +01:00
loopin.go liquidity: count static loop-ins 2026-05-22 02:20:36 -05:00
loopin_test.go staticaddr: move address.Parameters to script package 2026-05-01 15:54:37 +05:30
manager.go staticaddr: reject malformed MuSig2 signing data 2026-05-29 11:53:32 +02:00
manager_test.go staticaddr: reject malformed MuSig2 signing data 2026-05-29 11:53:32 +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 liquidity: count static loop-ins 2026-05-22 02:20:36 -05:00
sql_store_test.go liquidity: count static loop-ins 2026-05-22 02:20:36 -05:00