Skip to content

Commit

Permalink
Merge pull request #3556 from filecoin-project/fix/pubsub-reduce-goss…
Browse files Browse the repository at this point in the history
…ipfactor

adjust gossipsub gossip factor
  • Loading branch information
magik6k authored Sep 5, 2020
2 parents f58cbc2 + 1c27a0c commit 16bd0d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions node/modules/lp2p/pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 16bd0d1

Please sign in to comment.