loop/sweepbatcher
Boris Nagaev a5871d6f3e
sweepbatcher: fix change fee accounting, add test
Presigned sweeps that produce a change output misreported the on-chain fee.
The fee portion was derived from the total swept amount minus only the
first transaction output, so any change output was treated as additional fee.
Update getFeePortionForSweep to subtract the value of every tx output so
the fee portion reflects only the actual miner fee paid. Add regression
coverage that sweeps a presigned input with change and asserts the spend
and confirmation notifications report the corrected fee.
2025-10-11 15:21:30 -03:00
..
greedy_batch_selection.go sweepbatcher: fast-flag enables zero delay publishing 2025-10-07 08:53:39 +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: fix change fee accounting, add test 2025-10-11 15:21:30 -03:00
sweep_batch_test.go sweepbatcher: consolidate identical change pkscripts 2025-07-29 21:22:17 +02:00
sweep_batcher.go sweepbatcher: fast-flag enables zero delay publishing 2025-10-07 08:53:39 +02:00
sweep_batcher_presigned_test.go sweepbatcher: fix change fee accounting, add test 2025-10-11 15:21:30 -03:00
sweep_batcher_test.go sweepbatcher: fast-flag enables zero delay publishing 2025-10-07 08:53:39 +02:00