Open vixxch opened 1 year ago
After upgrading lnd to version 0.16.0-beta.rc1 spurious events appears on the routing events tab.
I made this quick and dirty workaround:
diff --git a/pubsub/pubsub.go b/pubsub/pubsub.go index 5364183..1277cfa 100644 --- a/pubsub/pubsub.go +++ b/pubsub/pubsub.go @@ -96,7 +96,9 @@ func (p *PubSub) routingUpdates(ctx context.Context, sub chan *events.Event) { go func() { for hu := range routingUpdates { p.logger.Debug("receive htlcUpdate") - sub <- events.NewWithData(events.RoutingEventUpdated, hu) + if (*hu).OutgoingChannelId != 0 { + sub <- events.NewWithData(events.RoutingEventUpdated, hu) + } } p.wg.Done() }()
Fixing these a little better in this PR: https://github.com/edouardparis/lntop/pull/113
After upgrading lnd to version 0.16.0-beta.rc1 spurious events appears on the routing events tab.
I made this quick and dirty workaround: