gossipsubv1.1: configure larger overlay D params
This commit is contained in:
parent
7d7c83ef79
commit
667fb17b43
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user