gossipsubv1.1: configure larger overlay D params

This commit is contained in:
vyzo 2020-04-29 17:09:39 +03:00
parent 7d7c83ef79
commit 667fb17b43

View File

@ -15,6 +15,15 @@ import (
"github.com/filecoin-project/lotus/node/modules/helpers" "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 type PubsubOpt func(host.Host) pubsub.Option
func PubsubTracer() PubsubOpt { func PubsubTracer() PubsubOpt {