mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-12 14:12:27 +02:00
utxonursery: configure using SweepInput function
As a preparation for mocking sweeper, this commit modifies the utxonursery config to take a function pointer instead of the full sweeper struct.
This commit is contained in:
@ -488,9 +488,9 @@ func createNurseryTestContext(t *testing.T,
|
||||
CloseHeight: 0,
|
||||
}, nil
|
||||
},
|
||||
Store: storeIntercepter,
|
||||
ChainIO: chainIO,
|
||||
Sweeper: sweeper,
|
||||
Store: storeIntercepter,
|
||||
ChainIO: chainIO,
|
||||
SweepInput: sweeper.SweepInput,
|
||||
PublishTransaction: func(tx *wire.MsgTx) error {
|
||||
return publishFunc(tx, "nursery")
|
||||
},
|
||||
@ -556,7 +556,7 @@ func createNurseryTestContext(t *testing.T,
|
||||
}
|
||||
|
||||
/// Restart nursery.
|
||||
nurseryCfg.Sweeper = ctx.sweeper
|
||||
nurseryCfg.SweepInput = ctx.sweeper.SweepInput
|
||||
ctx.nursery = newUtxoNursery(&nurseryCfg)
|
||||
ctx.nursery.Start()
|
||||
|
||||
|
Reference in New Issue
Block a user