You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Subnet and Sync Committee Topics](#subnet-and-sync-committee-topics)
21
+
-[Other topics](#other-topics)
22
+
23
+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
24
+
25
+
## Introduction
2
26
3
27
This document provides a rough guideline for implementers to follow when
4
28
setting their Gossipsub parameters for an Eth2 network.
5
29
6
-
###General Gossipsub Parameters
30
+
## General Gossipsub Parameters
7
31
8
-
This gives an overview of the general parameters, and expected values for the Ethereum 2.0 network. These help form the basic structure of the mesh network in gossipsub and apply globally to all peers regardless of topic. These work regardless of whether scoring is enabled.
32
+
This gives an overview of the general parameters, and expected values for the Ethereum 2.0 network. These help form the basic structure of the mesh network in Gossipsub and apply globally to all peers regardless of topic. These work regardless of whether scoring is enabled.
9
33
10
-
####Gossipsub v1.0 General Parameters
34
+
### Gossipsub v1.0 General Parameters
11
35
12
36
| Parameter | Value | Description |
13
37
| -------- | -------- | -------- |
@@ -21,7 +45,7 @@ This gives an overview of the general parameters, and expected values for the Et
21
45
|`mcache_gossip`| 3 | Number of heartbeats to gossip about|
22
46
|`seen_ttl`| 33 slots (396 seconds, 566 heartbeats | Amount of time to retain message IDs|
23
47
24
-
####Gossipsub v1.1 General Parameters
48
+
### Gossipsub v1.1 General Parameters
25
49
26
50
| Parameter | Value | Description |
27
51
| -------- | -------- | -------- |
@@ -40,11 +64,11 @@ This gives an overview of the general parameters, and expected values for the Et
40
64
|`iwant_follow_up_time`| 3 secs | The maximum amount of time a peer has to respond to an IWANT before being penalized |
41
65
42
66
43
-
###General Scoring Parameters
67
+
## General Scoring Parameters
44
68
45
69
These parameters are general and apply to all peers regardless of topic. This are only used once scoring is enabled.
46
70
47
-
####Thresholds
71
+
### Thresholds
48
72
| Parameter | Value | Description |
49
73
| -------- | -------- | -------- |
50
74
|`gossip_threshold`| -4000 | If a peer has a score below this value we no longer gossip to or accept gossip from that peer |
@@ -54,7 +78,7 @@ These parameters are general and apply to all peers regardless of topic. This ar
54
78
|`opportunistic_graft_threshold`| 5 | If a peer has a score below this value we consider them for replacement via opportunistic grafting |
55
79
|`ip_colocation_threshold`| 10 | The number of peers allowed with the same IP. Peers exceeding this get quadratically penalized |
56
80
57
-
####Scoring Parameters
81
+
### Scoring Parameters
58
82
59
83
| Parameter | Value | Description |
60
84
| -------- | -------- | -------- |
@@ -69,7 +93,7 @@ These parameters are general and apply to all peers regardless of topic. This ar
69
93
70
94
## Topic Specific Parameters
71
95
72
-
These are parameters that apply to each specific topic. This section provides an overview of each before providing recommended values for each topic related to eth2 in the following section.
96
+
These are parameters that apply to each specific topic. This section provides an overview of each before providing recommended values for each topic related to Eth2 in the following section.
73
97
74
98
### Topics Parameters
75
99
@@ -93,9 +117,9 @@ These are parameters that apply to each specific topic. This section provides an
93
117
|`invalid_message_deliveries_weight`| The weighting for invalid messages (application rejects or encoding errors) |
94
118
|`invalid_message_deliveries_decay`| The decay of this score |
95
119
96
-
## Topic Score Parameters
120
+
###Topic Score Parameters
97
121
98
-
### Beacon Block Topic
122
+
####Beacon Block Topic
99
123
100
124
| Parameter | Value | Comment |
101
125
| -------- | --- | -------- |
@@ -117,7 +141,7 @@ These are parameters that apply to each specific topic. This section provides an
117
141
|`invalid_message_deliveries_weight`| -99 ||
118
142
|`invalid_message_deliveries_decay`| 0.9994 | Very slow to decay to remember bad peers |
119
143
120
-
### Attestation Aggregate Topic
144
+
####Attestation Aggregate Topic
121
145
122
146
| Parameter | Value | Comment |
123
147
| -------- | --- | -------- |
@@ -142,7 +166,7 @@ These are parameters that apply to each specific topic. This section provides an
142
166
NOTE: The `V` represented in the parameters represents the current active validator
143
167
count.
144
168
145
-
### Subnet and Sync Committee Topics
169
+
####Subnet and Sync Committee Topics
146
170
147
171
The recommendations for the subnets are TBD. Current recommendations are to
148
172
count invalids.
@@ -168,7 +192,7 @@ count invalids.
168
192
|`invalid_message_deliveries_decay`| 0.9994 | Very slow to decay to remember bad peers |
169
193
170
194
171
-
### Other topics
195
+
####Other topics
172
196
173
197
The `voluntary_exit`, `proposer_slashing`, `attester_slashing` topics should
174
198
also penalize based on invalid messages. As these topics do not have an
0 commit comments