feature: make gossip queries compulsory
This commit is contained in:
1 parent
239103c2b3
commit
717facc202
4 files changed
+13
-5
No files matched your search
@@ -754,6 +754,13 @@ func (p *Brontide) initGossipSync() {
|
||||
if p.remoteFeatures.HasFeature(lnwire.GossipQueriesOptional) {
|
||||
p.log.Info("Negotiated chan series queries")
|
||||
|
||||
if p.cfg.AuthGossiper == nil {
|
||||
// This should only ever be hit in the unit tests.
|
||||
p.log.Warn("No AuthGossiper configured. Abandoning " +
|
||||
"gossip sync.")
|
||||
return
|
||||
}
|
||||
|
||||
// Register the peer's gossip syncer with the gossiper.
|
||||
// This blocks synchronously to ensure the gossip syncer is
|
||||
// registered with the gossiper before attempting to read
|
||||
|
||||
@@ -1080,6 +1080,7 @@ func TestPeerCustomMessage(t *testing.T) {
|
||||
initReplyMsg := lnwire.NewInitMessage(
|
||||
lnwire.NewRawFeatureVector(
|
||||
lnwire.DataLossProtectRequired,
|
||||
lnwire.GossipQueriesOptional,
|
||||
),
|
||||
lnwire.NewRawFeatureVector(),
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user