From a6ae397f8ca935b4c7e30f1fb392babcba9196c5 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 8 Apr 2019 17:54:58 -0700 Subject: [PATCH] discovery: ensure we don't broadcast policy changes for private channels --- discovery/gossiper.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/discovery/gossiper.go b/discovery/gossiper.go index 7e124c02..f7154657 100644 --- a/discovery/gossiper.go +++ b/discovery/gossiper.go @@ -1292,6 +1292,12 @@ func (d *AuthenticatedGossiper) processChanPolicyUpdate( return nil, err } + // We'll avoid broadcasting any updates for private channels to + // avoid directly giving away their existence. + if edgeInfo.info.AuthProof == nil { + continue + } + // We set ourselves as the source of this message to indicate // that we shouldn't skip any peers when sending this message. chanUpdates = append(chanUpdates, networkMsg{