switch: notify the ChannelNotifier on newly active/inactive channels.

This commit is contained in:
Valentine Wallace committed 2019-02-05 18:17:54 -08:00
1 parent f6cffa8f4b
commit bdd8ce14c9
3 files changed
+20 -3

No files matched your search

+2
View File
@@ -362,6 +362,8 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB, cc *chainControl,
htlcswitch.DefaultFwdEventInterval),
LogEventTicker: ticker.New(
htlcswitch.DefaultLogInterval),
NotifyActiveChannel: s.channelNotifier.NotifyActiveChannelEvent,
NotifyInactiveChannel: s.channelNotifier.NotifyInactiveChannelEvent,
}, uint32(currentHeight))
if err != nil {
return nil, err