rpcserver+routerrpc: add subscribe events to router backend

Add SubscribeHtlcEvents to RouterBackend in preparation for the
addition of a HtlcNotifier stream.
This commit is contained in:
carla committed 2020-03-13 09:30:16 +02:00
1 parent 4cb518c174
commit 67d4bad73f
2 files changed
+6

No files matched your search

+1
View File
@@ -567,6 +567,7 @@ func newRPCServer(s *server, macService *macaroons.Service,
Tower: s.controlTower,
MaxTotalTimelock: cfg.MaxOutgoingCltvExpiry,
DefaultFinalCltvDelta: uint16(cfg.Bitcoin.TimeLockDelta),
SubscribeHtlcEvents: s.htlcNotifier.SubscribeHtlcEvents,
}
genInvoiceFeatures := func() *lnwire.FeatureVector {