mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-23 04:03:02 +02:00
channelnotifier: add InactiveLinkEvent
This commit adds a new event `InactiveLinkEvent` to be used when a link becomes inactive.
This commit is contained in:
11
rpcserver.go
11
rpcserver.go
@@ -4624,9 +4624,12 @@ func (r *rpcServer) SubscribeChannelEvents(req *lnrpc.ChannelEventSubscription,
|
||||
},
|
||||
}
|
||||
|
||||
// Completely ignore ActiveLinkEvent as this is explicitly not
|
||||
// exposed to the RPC.
|
||||
case channelnotifier.ActiveLinkEvent:
|
||||
// Completely ignore ActiveLinkEvent and
|
||||
// InactiveLinkEvent as this is explicitly not exposed
|
||||
// to the RPC.
|
||||
case channelnotifier.ActiveLinkEvent,
|
||||
channelnotifier.InactiveLinkEvent:
|
||||
|
||||
continue
|
||||
|
||||
case channelnotifier.FullyResolvedChannelEvent:
|
||||
@@ -7323,6 +7326,8 @@ func (r *rpcServer) SubscribeChannelBackups(req *lnrpc.ChannelBackupSubscription
|
||||
continue
|
||||
case channelnotifier.ActiveLinkEvent:
|
||||
continue
|
||||
case channelnotifier.InactiveLinkEvent:
|
||||
continue
|
||||
}
|
||||
|
||||
// Now that we know the channel state has changed,
|
||||
|
Reference in New Issue
Block a user