Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spurious routing events shown after upgrading to lnd 0.16.0-beta.rc1 #107

Open
vixxch opened this issue Feb 26, 2023 · 1 comment
Open

Comments

@vixxch
Copy link

vixxch commented Feb 26, 2023

After upgrading lnd to version 0.16.0-beta.rc1 spurious events appears on the routing events tab.

ss

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()
    }()
@hieblmi
Copy link
Contributor

hieblmi commented May 3, 2024

Fixing these a little better in this PR: #113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants