loop/staticaddr/loopin
Slyghtning aadf6e2daa
loopin: exit htlc timeout sweep retry loop on context cancellation
SweepHtlcTimeoutAction used a select with a default case containing a
blocking time.After. When the context was canceled, it logged the error
but continued the retry loop instead of returning. The default case
also meant that ctx.Done was only checked when it was already signaled,
while an hour-long sleep blocked without listening for cancellation.

Replace the default+time.After pattern with a proper select on both
ctx.Done and time.After so the function exits promptly on shutdown.
2026-03-09 08:37:49 +01:00
..
actions.go loopin: exit htlc timeout sweep retry loop on context cancellation 2026-03-09 08:37:49 +01:00
actions_test.go staticaddr: add unit test for HTLC re-registration 2025-12-17 09:21:51 +01: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 staticaddr: remove unused fsm transition 2025-08-01 11:26:33 +02:00
interface.go loopin: add loop-in constants to filter expired deposits 2025-10-08 11:38:37 +02:00
log.go multi: update lnd compile-time dependency to v0.19.0 2025-03-10 22:59:49 +01:00
loopin.go loopin: enforce HTLC output index invariant in sweep tx construction 2026-03-09 08:37:48 +01:00
loopin_test.go loopin: enforce HTLC output index invariant in sweep tx construction 2026-03-09 08:37:48 +01:00
manager.go staticutil: refactor methods into utils 2025-12-09 12:21:51 +01:00
manager_test.go staticaddr: exclude close-to-expiry depositis from SelectDeposits 2025-10-08 16:24:46 +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: fast-flag support 2025-10-07 08:53:39 +02:00
sql_store_test.go staticaddr: fetch deposits as part of swap retrieval 2025-08-01 11:26:33 +02:00