sweepbatcher/StoreMock: load LoopOut from loopdb

Method sweepbatcher.Store.FetchBatchSweeps (implementation using real DB) runs
JOIN query to load LoopOut from swaps table. Now the mock does the same.

It is needed to test store and load scenarios in tests.
This commit is contained in:
Boris Nagaev 2024-05-29 15:03:37 -03:00
parent 22dd2e8bd1
commit d38b7c55a7
No known key found for this signature in database
4 changed files with 33 additions and 18 deletions

View file

@ -77,7 +77,7 @@ func newSwapClient(config *clientConfig) *Client {
lndServices := config.LndServices
batcherStore := sweepbatcher.NewStoreMock()
batcherStore := sweepbatcher.NewStoreMock(config.Store)
batcher := sweepbatcher.NewBatcher(
config.LndServices.WalletKit, config.LndServices.ChainNotifier,