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

This commit is contained in:
Olaoluwa Osuntokun 2019-04-08 17:54:58 -07:00
parent 921eea9f57
commit a6ae397f8c
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2

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{