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:
3 files changed
+8
-9
No files matched your search
@@ -636,7 +636,7 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB, cc *chainControl,
|
||||
Notifier: cc.chainNotifier,
|
||||
PublishTransaction: cc.wallet.PublishTransaction,
|
||||
Store: utxnStore,
|
||||
Sweeper: s.sweeper,
|
||||
SweepInput: s.sweeper.SweepInput,
|
||||
})
|
||||
|
||||
// Construct a closure that wraps the htlcswitch's CloseLink method.
|
||||
|
||||
Reference in new issue
Block a user