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

@ -181,7 +181,7 @@ func testLateHtlcPublish(t *testing.T) {
height := int32(600)
cfg := newSwapConfig(&lnd.LndServices, store, server)
cfg := newSwapConfig(&lnd.LndServices, store, server, nil)
testRequest.Expiry = height + testLoopOutMinOnChainCltvDelta
@ -282,7 +282,7 @@ func testCustomSweepConfTarget(t *testing.T) {
ctx.Lnd.SetFeeEstimate(DefaultSweepConfTarget, 10000)
cfg := newSwapConfig(
&lnd.LndServices, loopdb.NewStoreMock(t), server,
&lnd.LndServices, loopdb.NewStoreMock(t), server, nil,
)
initResult, err := newLoopOutSwap(
@ -522,7 +522,7 @@ func testPreimagePush(t *testing.T) {
)
cfg := newSwapConfig(
&lnd.LndServices, loopdb.NewStoreMock(t), server,
&lnd.LndServices, loopdb.NewStoreMock(t), server, nil,
)
initResult, err := newLoopOutSwap(
@ -786,7 +786,7 @@ func testFailedOffChainCancelation(t *testing.T) {
testReq.Expiry = lnd.Height + 20
cfg := newSwapConfig(
&lnd.LndServices, loopdb.NewStoreMock(t), server,
&lnd.LndServices, loopdb.NewStoreMock(t), server, nil,
)
initResult, err := newLoopOutSwap(
@ -940,7 +940,7 @@ func TestLoopOutMuSig2Sweep(t *testing.T) {
)
cfg := newSwapConfig(
&lnd.LndServices, loopdb.NewStoreMock(t), server,
&lnd.LndServices, loopdb.NewStoreMock(t), server, nil,
)
initResult, err := newLoopOutSwap(