multi: add htlcNotifier interface to switch and link
In this commit, a htlcNotifier interface is added to allow for easy unit testing. Instances of the HtlcNotifier are added to the server, switch and link.
This commit is contained in:
9 files changed
+77
No files matched your search
@@ -150,6 +150,10 @@ type Config struct {
|
||||
// the switch when a new block has arrived.
|
||||
Notifier chainntnfs.ChainNotifier
|
||||
|
||||
// HtlcNotifier is an instance of a htlcNotifier which we will pipe htlc
|
||||
// events through.
|
||||
HtlcNotifier htlcNotifier
|
||||
|
||||
// FwdEventTicker is a signal that instructs the htlcswitch to flush any
|
||||
// pending forwarding events.
|
||||
FwdEventTicker ticker.Ticker
|
||||
|
||||
Reference in new issue
Block a user