loop/sweepbatcher
Boris Nagaev b961e18fa0
sweepbatcher: fix OnChainFeePortion values
There were two mistakes.

In case of a swap with multiple sweeps only the fee of the first sweep
of a swap was accounted.

Rounding diff (the remainder) was attributed to all the sweeps rather than to
the first (primary) sweep of the batch. The sweep to attribute the remainder
was chosen by comparing SignatureScript which is always empty. New approach is
to find the primary sweep and to compare its outpoint directly.
2025-06-26 14:01:16 -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 an option to ignore HTLC txids 2025-06-17 14:47:49 -03:00
presigned_test.go sweepbatcher: add an option to ignore HTLC txids 2025-06-17 14:47:49 -03:00
store.go sweepbatcher: re-add sweeps after fully confirmed 2025-06-26 13:36:55 -03:00
store_mock.go sweepbatcher: add an option to ignore HTLC txids 2025-06-17 14:47:49 -03:00
sweep_batch.go sweepbatcher: fix OnChainFeePortion values 2025-06-26 14:01:16 -03:00
sweep_batch_test.go sweepbatcher: fix rounding in constructUnsignedTx 2025-05-08 17:24:10 -03:00
sweep_batcher.go sweepbatcher: fix OnChainFeePortion values 2025-06-26 14:01:16 -03:00
sweep_batcher_presigned_test.go sweepbatcher: fix OnChainFeePortion values 2025-06-26 14:01:16 -03:00
sweep_batcher_test.go sweepbatcher: re-add sweeps after fully confirmed 2025-06-26 13:36:55 -03:00