turn off the mesh in bootstrappers

This commit is contained in:
vyzo 2020-05-04 19:04:24 +03:00
parent 112aca7896
commit 805d07bca6

View File

@ -146,6 +146,14 @@ func GossipSub(cfg *config.Pubsub) interface{} {
// enable Peer eXchange on bootstrappers
if isBootstrapNode {
// turn off the mesh in bootstrappers -- only do gossip and PX
pubsub.GossipSubD = 0
pubsub.GossipSubDscore = 0
pubsub.GossipSubDlo = 0
pubsub.GossipSubDhi = 0
pubsub.GossipSubDlazy = 1024
pubsub.GossipSubGossipFactor = 0.5
// turn on PX
options = append(options, pubsub.WithPeerExchange(true))
}