Skip to content

Commit

Permalink
Try a new forward filter
Browse files Browse the repository at this point in the history
  • Loading branch information
nyonson committed Sep 5, 2023
1 parent 70b75f4 commit 8c41ea1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lightning/lnd.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,11 @@ func (l LndClient) SubscribeChannelUpdates(ctx context.Context) (<-chan Channels
case h := <-htlcs:
channels := make(Channels, 0)

// attempt to filter on forward events
if h.GetForwardEvent() == nil {
continue
}

if h.GetIncomingChannelId() != 0 {
c, err := l.GetChannel(ctx, ChannelID(h.GetIncomingChannelId()))
if err != nil {
Expand Down

0 comments on commit 8c41ea1

Please sign in to comment.