2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-09 19:10:47 +00:00
Commit Graph

16 Commits

Author SHA1 Message Date
Boris Nagaev
6def712dfe
sweepbatcher: fix typos in annotations of methods 2024-05-27 10:03:19 -03:00
Boris Nagaev
dc5d0fe30c
sweepbatcher: narrow down interface of swapStore
Only one method of loopdb.SwapStore is used (FetchLoopOutSwap).
Local interface LoopOutFetcher was defined to reflect this.
2024-05-27 10:03:19 -03:00
Boris Nagaev
b5b17991a5
sweepbatcher: use method AddSweep in test 2024-05-27 10:03:19 -03:00
Andras Banki-Horvath
14de8f1f5d
sweepbatcher: test that empty batches won't prevent startup 2024-05-24 18:44:05 +02:00
Andras Banki-Horvath
e5ade6a0b1
sweepbatcher: close the quit channel when the batcher is shutting down 2024-05-24 18:44:05 +02:00
Andras Banki-Horvath
c01e8014e1
sweepbatcher: do not fail on restoring empty batches
Previously storing an empty batch would make the batcher fail to start
as spinning up a restored batch assumes that there's a primary sweep
added already. As there's no point in spinning up such batch we can just
skip over it.
Furthermore we'll ensure that we won't try to ever publish an empty
batch to avoid setting the fee rate too early.
2024-05-24 18:44:04 +02:00
Andras Banki-Horvath
939c9b4ccf
loopdb+sweepbatcher: add the DropBatch call 2024-05-24 18:44:04 +02:00
Andras Banki-Horvath
56902352cd
loopout: fix negative reported fees 2024-05-23 16:48:05 +02:00
Andras Banki-Horvath
75d7641d74
sweepbatcher: add more debug logging 2024-04-30 22:00:43 +02:00
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.
2024-03-04 16:15:21 +01:00
Andras Banki-Horvath
b4ebb19a77
loopdb+sweepbatcher: add GetParentBatch and TotalSwept calls 2024-03-04 16:15:21 +01:00
Andras Banki-Horvath
c094ad4a85
sweepbatcher: refactor monitorSpendAndNotify to return an error 2024-03-04 16:15:20 +01:00
George Tsagkarelis
849d26bba6
sweepbatcher: add batcher tests 2024-01-23 20:38:10 +02:00
George Tsagkarelis
7081fb7aae
sweepbatcher: add sweep batcher 2024-01-23 20:38:09 +02:00
George Tsagkarelis
56784ab921
sweepbatcher: add sweep batch 2024-01-23 20:38:09 +02:00
George Tsagkarelis
99608ad515
loopdb+sweepbatcher: add sweepbatcher store 2024-01-23 20:38:06 +02:00