From 667fb17b4334bee164bf0cdef0be1ed31e366a2b Mon Sep 17 00:00:00 2001 From: vyzo Date: Wed, 29 Apr 2020 17:09:39 +0300 Subject: [PATCH] gossipsubv1.1: configure larger overlay D params --- node/modules/lp2p/pubsub.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/node/modules/lp2p/pubsub.go b/node/modules/lp2p/pubsub.go index 5b009069c..47d3ffd00 100644 --- a/node/modules/lp2p/pubsub.go +++ b/node/modules/lp2p/pubsub.go @@ -15,6 +15,15 @@ import ( "github.com/filecoin-project/lotus/node/modules/helpers" ) +func init() { + // configure larger overlay parameters + pubsub.GossipSubD = 8 + pubsub.GossipSubDscore = 6 + pubsub.GossipSubDlo = 6 + pubsub.GossipSubDhi = 12 + pubsub.GossipSubDlazy = 12 +} + type PubsubOpt func(host.Host) pubsub.Option func PubsubTracer() PubsubOpt {