loopd: add asset client to swap config

This commit is contained in:
sputn1ck 2025-01-09 17:08:33 +01:00
parent 20d5081368
commit 8451f29f8f
No known key found for this signature in database
GPG key ID: 671103D881A5F0E4
9 changed files with 72 additions and 17 deletions

View file

@ -47,7 +47,7 @@ func testLoopInSuccess(t *testing.T) {
height := int32(600)
cfg := newSwapConfig(&ctx.lnd.LndServices, ctx.store, ctx.server)
cfg := newSwapConfig(&ctx.lnd.LndServices, ctx.store, ctx.server, nil)
expectedLastHop := &route.Vertex{0x02}
@ -200,7 +200,7 @@ func testLoopInTimeout(t *testing.T, externalValue int64) {
height := int32(600)
cfg := newSwapConfig(&ctx.lnd.LndServices, ctx.store, ctx.server)
cfg := newSwapConfig(&ctx.lnd.LndServices, ctx.store, ctx.server, nil)
req := testLoopInRequest
if externalValue != 0 {
@ -414,7 +414,7 @@ func testLoopInResume(t *testing.T, state loopdb.SwapState, expired bool,
ctxb := context.Background()
ctx := newLoopInTestContext(t)
cfg := newSwapConfig(&ctx.lnd.LndServices, ctx.store, ctx.server)
cfg := newSwapConfig(&ctx.lnd.LndServices, ctx.store, ctx.server, nil)
// Create sender and receiver keys.
_, senderPubKey := test.CreateKey(1)
@ -769,7 +769,7 @@ func advanceToPublishedHtlc(t *testing.T, ctx *loopInTestContext) SwapInfo {
func startNewLoopIn(t *testing.T, ctx *loopInTestContext, height int32) (
*swapConfig, error, *loopInSwap) {
cfg := newSwapConfig(&ctx.lnd.LndServices, ctx.store, ctx.server)
cfg := newSwapConfig(&ctx.lnd.LndServices, ctx.store, ctx.server, nil)
req := &testLoopInRequest