loop/sweepbatcher
Boris Nagaev 957ca21e61
sweepbatcher: fix reorg detection
The reorg channel is now passed to RegisterSpendNtfn, and waiting for spend
notifications remains active even after the transaction receives its first
confirmation. The dedicated goroutine previously used to wait for the spend
is no longer needed, as we now handle both spend and potential reorg events
in the main event loop while the batch is running.

Following this change, RegisterConfirmationsNtfn runs without a reorg channel,
as it would only detect deep reorgs that undo the final confirmation - something
we can't handle anyway. We can't track fully confirmed swaps indefinitely to
guard against such rare reorgs; instead, we can mitigate the risk by increasing
the required confirmation depth.
2025-07-24 02:21:20 -03:00
..
greedy_batch_selection.go sweepbatcher: allow adding groups of inputs 2025-04-03 09:49:46 -03:00
greedy_batch_selection_test.go sweepbatcher: allow adding groups of inputs 2025-04-03 09:49:46 -03:00
log.go sweepbatcher: add mode with presigned transactions 2025-05-08 17:24:10 -03:00
presigned.go sweepbatcher: fix a bug in dest address selection 2025-06-26 14:01:16 -03:00
presigned_test.go sweepbatcher: remove method Presign 2025-06-26 14:01:16 -03: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: fix reorg detection 2025-07-24 02:21:20 -03:00
sweep_batch_test.go sweepbatcher: fix rounding in constructUnsignedTx 2025-05-08 17:24:10 -03:00
sweep_batcher.go loopdb: remove unused method ConfirmBatch 2025-06-26 14:01:16 -03:00
sweep_batcher_presigned_test.go sweepbatcher: remove method Presign 2025-06-26 14:01:16 -03:00
sweep_batcher_test.go sweepbatcher: fix flaky test 2025-07-24 02:19:25 -03:00