File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -450,6 +450,10 @@ const (
450450 // InactiveChannelUpdate indicates that the channel event holds
451451 // information about a channel that became inactive.
452452 InactiveChannelUpdate
453+
454+ // FullyResolvedChannelUpdate indicates that the channel event holds
455+ // information about a channel has been fully closed.
456+ FullyResolvedChannelUpdate
453457)
454458
455459// ChannelEventUpdate holds the data fields and type for a particular channel
@@ -2393,6 +2397,19 @@ func (s *lightningClient) getChannelEventUpdate(
23932397 return nil , err
23942398 }
23952399
2400+ case lnrpc .ChannelEventUpdate_FULLY_RESOLVED_CHANNEL :
2401+ result .UpdateType = FullyResolvedChannelUpdate
2402+ channelPoint := rpcChannelEventUpdate .GetFullyResolvedChannel ()
2403+ fundingTxID := channelPoint .FundingTxid .(* lnrpc.ChannelPoint_FundingTxidBytes )
2404+
2405+ result .ChannelPoint , err = getOutPoint (
2406+ fundingTxID .FundingTxidBytes ,
2407+ channelPoint .OutputIndex ,
2408+ )
2409+ if err != nil {
2410+ return nil , err
2411+ }
2412+
23962413 default :
23972414 return nil , fmt .Errorf ("unhandled update type: %v" ,
23982415 rpcChannelEventUpdate .Type .String ())
You can’t perform that action at this time.
0 commit comments