From c0b8c293828071699dbbea1e0bbe989948286f35 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 29 Nov 2017 18:35:11 -0800 Subject: [PATCH] discovery: continue in loop after processing announcement signatures --- discovery/gossiper.go | 1 + discovery/gossiper_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/discovery/gossiper.go b/discovery/gossiper.go index c9b3c148b..c557183fc 100644 --- a/discovery/gossiper.go +++ b/discovery/gossiper.go @@ -584,6 +584,7 @@ func (d *AuthenticatedGossiper) networkHandler() { emittedAnnouncements..., ) } + continue } // We'll set up any dependant, and wait until a free diff --git a/discovery/gossiper_test.go b/discovery/gossiper_test.go index a8a0140ff..cc6144a73 100644 --- a/discovery/gossiper_test.go +++ b/discovery/gossiper_test.go @@ -757,7 +757,7 @@ func TestOrphanSignatureAnnouncement(t *testing.T) { // Pretending that we receive local channel announcement from funding // manager, thereby kick off the announcement exchange process, in // this case the announcement should be added in the orphan batch - // because we haven't announce the channel yet. + // because we haven't announced the channel yet. err = <-ctx.gossiper.ProcessRemoteAnnouncement(batch.remoteProofAnn, remoteKey) if err != nil { t.Fatalf("unable to proceed announcement: %v", err)