From 1c27a0c1cf921eb4874a22fa9a1c197666f1b8ea Mon Sep 17 00:00:00 2001 From: vyzo Date: Fri, 4 Sep 2020 22:04:48 +0300 Subject: [PATCH] adjust gossipsub gossip factor --- node/modules/lp2p/pubsub.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/node/modules/lp2p/pubsub.go b/node/modules/lp2p/pubsub.go index d4464e4de..19cd67906 100644 --- a/node/modules/lp2p/pubsub.go +++ b/node/modules/lp2p/pubsub.go @@ -33,6 +33,7 @@ func init() { pubsub.GossipSubDirectConnectInitialDelay = 30 * time.Second pubsub.GossipSubIWantFollowupTime = 5 * time.Second pubsub.GossipSubHistoryLength = 10 + pubsub.GossipSubGossipFactor = 0.1 } func ScoreKeeper() *dtypes.ScoreKeeper { return new(dtypes.ScoreKeeper) @@ -248,8 +249,8 @@ func GossipSub(in GossipIn) (service *pubsub.PubSub, err error) { pubsub.GossipSubDlo = 0 pubsub.GossipSubDhi = 0 pubsub.GossipSubDout = 0 - pubsub.GossipSubDlazy = 1024 - pubsub.GossipSubGossipFactor = 0.5 + pubsub.GossipSubDlazy = 64 + pubsub.GossipSubGossipFactor = 0.25 pubsub.GossipSubPruneBackoff = 5 * time.Minute // turn on PX options = append(options, pubsub.WithPeerExchange(true))