mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
swap: add constructor for swap config
This commit is contained in:
parent
9571371153
commit
2ebbc78131
4 changed files with 22 additions and 41 deletions
|
|
@ -145,11 +145,7 @@ func TestLateHtlcPublish(t *testing.T) {
|
|||
|
||||
height := int32(600)
|
||||
|
||||
cfg := &swapConfig{
|
||||
lnd: &lnd.LndServices,
|
||||
store: store,
|
||||
server: server,
|
||||
}
|
||||
cfg := newSwapConfig(&lnd.LndServices, store, server)
|
||||
|
||||
swap, err := newLoopOutSwap(
|
||||
context.Background(), cfg, height, testRequest,
|
||||
|
|
@ -231,11 +227,10 @@ func TestCustomSweepConfTarget(t *testing.T) {
|
|||
ctx.Lnd.SetFeeEstimate(testRequest.SweepConfTarget, 250)
|
||||
ctx.Lnd.SetFeeEstimate(DefaultSweepConfTarget, 10000)
|
||||
|
||||
cfg := &swapConfig{
|
||||
lnd: &lnd.LndServices,
|
||||
store: newStoreMock(t),
|
||||
server: newServerMock(),
|
||||
}
|
||||
cfg := newSwapConfig(
|
||||
&lnd.LndServices, newStoreMock(t), newServerMock(),
|
||||
)
|
||||
|
||||
swap, err := newLoopOutSwap(
|
||||
context.Background(), cfg, ctx.Lnd.Height, testRequest,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue