Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-pubsub
Commits
22403baa
Commit
22403baa
authored
May 08, 2020
by
Yusef Napora
Committed by
vyzo
May 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stop using term "gossip mesh"
parent
3dab80fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
gossipsub.go
gossipsub.go
+8
-8
No files found.
gossipsub.go
View file @
22403baa
...
...
@@ -31,21 +31,21 @@ const (
var
(
// overlay parameters.
// GossipSubD sets the optimal degree for a
g
ossip mesh. For example, if GossipSubD == 6,
// GossipSubD sets the optimal degree for a
G
ossip
Sub topic
mesh. For example, if GossipSubD == 6,
// each peer will want to have about six peers in their mesh for each topic they're subscribed to.
// GossipSubD should be set somewhere between GossipSubDlo and GossipSubDhi.
GossipSubD
=
6
// GossipSubDlo sets the lower bound on the number of peers we keep in a
g
ossip
mesh. If we have
// fewer than GossipSubDlo peers, we will attempt to graft some more into the mesh at
the next
// heartbeat.
// GossipSubDlo sets the lower bound on the number of peers we keep in a
G
ossip
Sub topic mesh.
//
If we have
fewer than GossipSubDlo peers, we will attempt to graft some more into the mesh at
//
the next
heartbeat.
GossipSubDlo
=
5
// GossipSubDhi sets the upper bound on the number of peers we keep in a
g
ossip
mesh. If we have
// more than GossipSubDhi peers, we will select some to prune from the mesh at the next heartbeat.
// GossipSubDhi sets the upper bound on the number of peers we keep in a
G
ossip
Sub topic mesh.
//
If we have
more than GossipSubDhi peers, we will select some to prune from the mesh at the next heartbeat.
GossipSubDhi
=
12
// GossipSubDscore affects how peers are selected when pruning
the
mesh due to over subscription.
// GossipSubDscore affects how peers are selected when pruning
a
mesh due to over subscription.
// At least GossipSubDscore of the retained peers will be high-scoring, while the remainder are
// chosen randomly.
GossipSubDscore
=
4
...
...
@@ -90,7 +90,7 @@ var (
GossipSubHeartbeatInitialDelay
=
100
*
time
.
Millisecond
// GossipSubHeartbeatInterval controls the time between heartbeats.
GossipSubHeartbeatInterval
=
1
*
time
.
Second
GossipSubHeartbeatInterval
=
1
*
time
.
Second
// GossipSubFanoutTTL controls how long we keep track of the fanout state. If it's been
// GossipSubFanoutTTL since we've published to a topic that we're not subscribed to,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment