Skip to content

Commit

Permalink
add doc comment for GossipSubDout
Browse files Browse the repository at this point in the history
  • Loading branch information
yusefnapora authored and vyzo committed May 20, 2020
1 parent dc6eaa7 commit bac68a1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gossipsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@ var (
// At least GossipSubDscore of the retained peers will be high-scoring, while the remainder are
// chosen randomly.
GossipSubDscore = 4
GossipSubDout = 2

// GossipSubDout sets the quota for the number of outbound connections to maintain in a topic mesh.
// When the mesh is pruned due to over subscription, we make sure that we have outbound connections
// to at least GossipSubDout of the survivor peers. This prevents sybil attackers from overwhelming
// our mesh with incoming connections.
//
// GossipSubDout must be set below GossipSubDlo, and must not exceed GossipSubD / 2.
GossipSubDout = 2

// gossip parameters

Expand Down

0 comments on commit bac68a1

Please sign in to comment.