2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-09 19:10:47 +00:00
loop/sweepbatcher
Boris Nagaev 44d9147175
sweepbatcher: add greedy batch selection algorithm
If custom fee rates are used, the algorithm is tried. It selects a batch for the
sweep using the greedy algorithm, which minimizes costs, and adds the sweep to
the batch. If it fails, old algorithm is used, trying to add to any batch, or
starting a new batch.
2024-07-18 13:38:57 -03:00
..
greedy_batch_selection_test.go sweepbatcher: add greedy batch selection algorithm 2024-07-18 13:38:57 -03:00
greedy_batch_selection.go sweepbatcher: add greedy batch selection algorithm 2024-07-18 13:38:57 -03:00
log.go sweepbatcher: fix too long lines 2024-05-29 12:17:18 -03:00
store_mock.go Revert "sweepbatcher/StoreMock: load LoopOut from loopdb" 2024-05-31 12:28:02 -03:00
store.go sweepbatcher: fix spawning condition "unattached" spend notifiers 2024-07-11 13:15:39 +02:00
sweep_batch.go sweepbatcher: add greedy batch selection algorithm 2024-07-18 13:38:57 -03:00
sweep_batcher_test.go sweepbatcher: MinFeeRate -> WithCustomFeeRate 2024-07-18 13:38:57 -03:00
sweep_batcher.go sweepbatcher: add greedy batch selection algorithm 2024-07-18 13:38:57 -03:00