mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-17 06:04:20 +01:00
lnrpc+rpcserver: add new fully resolved chan update event
This commit adds the new channel update event for a channel that is now fully resolved to the event subscription RPC.
This commit is contained in:
13
rpcserver.go
13
rpcserver.go
@@ -4062,6 +4062,19 @@ func (r *rpcServer) SubscribeChannelEvents(req *lnrpc.ChannelEventSubscription,
|
||||
case channelnotifier.ActiveLinkEvent:
|
||||
continue
|
||||
|
||||
case channelnotifier.FullyResolvedChannelEvent:
|
||||
update = &lnrpc.ChannelEventUpdate{
|
||||
Type: lnrpc.ChannelEventUpdate_FULLY_RESOLVED_CHANNEL,
|
||||
Channel: &lnrpc.ChannelEventUpdate_FullyResolvedChannel{
|
||||
FullyResolvedChannel: &lnrpc.ChannelPoint{
|
||||
FundingTxid: &lnrpc.ChannelPoint_FundingTxidBytes{
|
||||
FundingTxidBytes: event.ChannelPoint.Hash[:],
|
||||
},
|
||||
OutputIndex: event.ChannelPoint.Index,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
default:
|
||||
return fmt.Errorf("unexpected channel event update: %v", event)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user