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:
Joost Jager committed 2018-12-19 12:49:19 +01:00
1 parent 2f17030e8c
commit 74e9852e3d
3 files changed
+8 -9

No files matched your search

+1 -1
View File
@@ -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.