Skip to content

Commit

Permalink
fix(network): refining GossipSubParams for Gossiper node (#882)
Browse files Browse the repository at this point in the history
  • Loading branch information
themantre committed Dec 30, 2023
1 parent 02d5692 commit 4167ca0
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions network/gossip.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,9 @@ func newGossipService(ctx context.Context, host lp2phost.Host, eventCh chan Even

gsParams := lp2pps.DefaultGossipSubParams()
if conf.IsGossiper {
// turn off the mesh in gossiper mode
gsParams.D = 0
gsParams.Dscore = 0
gsParams.Dlo = 0
gsParams.Dhi = 0
gsParams.Dout = 0
gsParams.Dlazy = conf.ScaledMinConns()
gsParams.Dhi = 12
gsParams.D = 8
gsParams.Dlo = 6
}
opts = append(opts, lp2pps.WithGossipSubParams(gsParams))

Expand Down

0 comments on commit 4167ca0

Please sign in to comment.