discovery: ensure we don't broadcast policy changes for private channels

This commit is contained in:
Olaoluwa Osuntokun committed 2019-04-10 17:05:48 -07:00
1 parent 921eea9f57
commit a6ae397f8c
1 file changed
+6
+6
View File
@@ -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{