lnd: handle channel update events in SubscribeChannelEvents

This commit is contained in:
bitromortac committed 2026-02-20 10:47:04 +01:00
1 parent 4f22a5130d
commit 10e8a69cec
1 file changed
+18
+18
View File
@@ -5488,6 +5488,24 @@ func (r *rpcServer) SubscribeChannelEvents(req *lnrpc.ChannelEventSubscription,
},
}
case channelnotifier.ChannelUpdateEvent:
channel, err := createRPCOpenChannel(
updateStream.Context(),
r, event.Channel, true, false,
)
if err != nil {
return err
}
update = &lnrpc.ChannelEventUpdate{
Type: lnrpc.ChannelEventUpdate_CHANNEL_UPDATE,
Channel: &lnrpc.ChannelEventUpdate_UpdatedChannel{
UpdatedChannel: &lnrpc.ChannelCommitUpdate{
Channel: channel,
},
},
}
case channelnotifier.InactiveChannelEvent:
update = &lnrpc.ChannelEventUpdate{
Type: lnrpc.ChannelEventUpdate_INACTIVE_CHANNEL,