mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
client: fill LastHop in FetchSwaps
Loop used to "forget" last_hop of swaps created before its restart. The commit fixes this. Added test TestFetchSwapsLastHop for this. Filled field abandonChans in test utility function newSwapClient because the field is used in new test. Fixes https://github.com/lightninglabs/loop/issues/798
This commit is contained in:
parent
8c97c60bb4
commit
ed3db3bab2
3 changed files with 76 additions and 0 deletions
|
|
@ -108,6 +108,7 @@ func newSwapClient(t *testing.T, config *clientConfig) *Client {
|
|||
sweeper: sweeper,
|
||||
executor: executor,
|
||||
resumeReady: make(chan struct{}),
|
||||
abandonChans: make(map[lntypes.Hash]chan struct{}),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue