loop/sweepbatcher
Boris Nagaev 01664ad635
sweepbatcher: cancel spendCtx after processing
Function monitorSpendAndNotify used to cancel the context passed to
RegisterSpendNtfn right after starting the goroutine processing results.
Spend notifications were missed.

Now the context is canceled when the goroutine finishes.
2025-06-11 10:34:22 -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: add mode with presigned transactions 2025-05-08 17:24:10 -03:00
presigned_test.go sweepbatcher: add mode with presigned transactions 2025-05-08 17:24:10 -03:00
store.go sweepbatcher: fix mistake in batch reading from DB 2025-06-11 10:34:22 -03:00
store_mock.go sweepbatcher: fix mock TotalSweptAmount 2025-06-11 10:34:22 -03:00
sweep_batch.go sweepbatcher: send spend error to notifier 2025-06-11 10:34:22 -03:00
sweep_batch_test.go sweepbatcher: fix rounding in constructUnsignedTx 2025-05-08 17:24:10 -03:00
sweep_batcher.go sweepbatcher: cancel spendCtx after processing 2025-06-11 10:34:22 -03:00
sweep_batcher_presigned_test.go sweepbatcher: add mode with presigned transactions 2025-05-08 17:24:10 -03:00
sweep_batcher_test.go sweepbatcher: add mode with presigned transactions 2025-05-08 17:24:10 -03:00