Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
hieblmi committed May 3, 2024
1 parent 9edebd3 commit 9731092
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions network/backend/lnd/lnd.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ func (l Backend) SubscribeRoutingEvents(ctx context.Context, channelEvents chan
return err
}

l.logger.Debug("routing event received", logging.Object("event", event.GetSubscribedEvent()))
channelEvents <- protoToRoutingEvent(event)
}
}
Expand Down
7 changes: 3 additions & 4 deletions network/models/routingevent.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ func (u *RoutingEvent) Update(newer *RoutingEvent) {
}

func (u *RoutingEvent) IsEmpty() bool {
return u.IncomingChannelId == 0 &&
u.OutgoingChannelId == 0 &&
u.IncomingHtlcId == 0 &&
u.OutgoingHtlcId == 0
return u.OutgoingChannelId == 0 &&
u.AmountMsat == 0 &&
u.FeeMsat == 0
}

0 comments on commit 9731092

Please sign in to comment.