Commit Graph

7 Commits (0b2c1774458046e4f93892b3e144528eb2acc423)

Author SHA1 Message Date
Boris Nagaev 0b2c177445
sweepbatcher: exit early in handleSweep
If the sweep was successfully updated in the batch, no need to
try to add it to all other batches.

Added a test reproducing adding a sweep to both batches without this change.
4 months ago
Boris Nagaev b5b17991a5
sweepbatcher: use method AddSweep in test 4 months ago
Andras Banki-Horvath 14de8f1f5d
sweepbatcher: test that empty batches won't prevent startup 4 months ago
Andras Banki-Horvath e5ade6a0b1
sweepbatcher: close the quit channel when the batcher is shutting down 4 months ago
Andras Banki-Horvath 56902352cd
loopout: fix negative reported fees 4 months ago
Andras Banki-Horvath e1ddb50dfe
loopout+sweepbatcher: calculate the per sweep onchain fees correctly
Previously we'd report the fees per sweep as the total sweep cost of a
batch. With this change the reported cost will be the proportional fee
which should be equal for all sweeps except if there's any rounding
difference in which case that is paid by the sweep belonging to the
first input of the batch tx.
7 months ago
George Tsagkarelis 849d26bba6
sweepbatcher: add batcher tests 8 months ago