loop/staticaddr
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
..
address staticutil: refactor methods into utils 2025-12-09 12:21:51 +01:00
deposit deposit: add OnExpiry self-transitions to OpeningChannel and ChannelPublished 2026-02-26 20:57:27 +01:00
loopin loopin: exit htlc timeout sweep retry loop on context cancellation 2026-03-09 08:37:49 +01:00
openchannel openchannel: optimize open channel request creation and err handling 2026-02-26 20:57:28 +01:00
script multi: update linter, fix issues 2025-03-10 22:59:50 +01:00
staticutil staticaddr: open channel manager 2026-02-26 20:57:26 +01:00
version multi: do not rename swapserverrpc to looprpc 2024-09-10 09:54:17 -03:00
withdraw staticaddr: open channel manager 2026-02-26 20:57:26 +01:00
log.go staticaddr: open channel manager 2026-02-26 20:57:26 +01:00