loop/sweepbatcher
Boris Nagaev e3a0587dfe
sweepbatcher: fix TestPresigned/dust_main_output
The Problem:
The test TestPresigned/dust_main_output was causing a deadlock. When the test
called batcher.AddSweep for the second time (with a valid sweep), the batcher
would create a new batch and attempt to register for a spend notification.
However, the test was not waiting for or consuming this notification
registration, leading to a blocked goroutine and a timeout.

The Fix:
I have added a line to the test to consume the spend notification registration
from the mock lnd's channel, similar to how other tests in the same file are
structured. This prevents the deadlock.

The problem was introduced in commit 54652dc641.
2025-09-28 20:57:00 -03:00
..
greedy_batch_selection.go sweepbatcher: consolidate identical change pkscripts 2025-07-29 21:22:17 +02:00
greedy_batch_selection_test.go sweepbatcher: consolidate identical change pkscripts 2025-07-29 21:22:17 +02:00
log.go sweepbatcher: add mode with presigned transactions 2025-05-08 17:24:10 -03:00
presigned.go sweepbatcher: subtle adjustments for change 2025-07-29 12:33:56 +02:00
presigned_test.go sweepbatcher: subtle adjustments for change 2025-07-29 12:33:56 +02:00
store.go loopdb: remove unused method ConfirmBatch 2025-06-26 14:01:16 -03:00
store_mock.go loopdb: remove unused method ConfirmBatch 2025-06-26 14:01:16 -03:00
sweep_batch.go sweepbatcher: consolidate identical change pkscripts 2025-07-29 21:22:17 +02:00
sweep_batch_test.go sweepbatcher: consolidate identical change pkscripts 2025-07-29 21:22:17 +02:00
sweep_batcher.go sweepbatcher: relax output constrained in monitorConfAndNotify 2025-09-25 11:13:35 +02:00
sweep_batcher_presigned_test.go sweepbatcher: fix TestPresigned/dust_main_output 2025-09-28 20:57:00 -03:00
sweep_batcher_test.go sweepbatcher: consider change in presigning and batch tx 2025-07-29 12:33:55 +02:00