Skip to content

Commit b3087aa

Browse files
committed
Add TOC
1 parent 026b3c8 commit b3087aa

File tree

1 file changed

+38
-14
lines changed

1 file changed

+38
-14
lines changed

specs/phase0/gossipsub-parameters.md

+38-14
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,37 @@
1-
## Recommendations for Gossipsub Parameters
1+
# Recommendations for Gossipsub Parameters
2+
3+
## Table of contents
4+
<!-- TOC -->
5+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
6+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
7+
8+
- [Introduction](#introduction)
9+
- [General Gossipsub Parameters](#general-gossipsub-parameters)
10+
- [Gossipsub v1.0 General Parameters](#gossipsub-v10-general-parameters)
11+
- [Gossipsub v1.1 General Parameters](#gossipsub-v11-general-parameters)
12+
- [General Scoring Parameters](#general-scoring-parameters)
13+
- [Thresholds](#thresholds)
14+
- [Scoring Parameters](#scoring-parameters)
15+
- [Topic Specific Parameters](#topic-specific-parameters)
16+
- [Topics Parameters](#topics-parameters)
17+
- [Topic Score Parameters](#topic-score-parameters)
18+
- [Beacon Block Topic](#beacon-block-topic)
19+
- [Attestation Aggregate Topic](#attestation-aggregate-topic)
20+
- [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
226

327
This document provides a rough guideline for implementers to follow when
428
setting their Gossipsub parameters for an Eth2 network.
529

6-
### General Gossipsub Parameters
30+
## General Gossipsub Parameters
731

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.
933

10-
#### Gossipsub v1.0 General Parameters
34+
### Gossipsub v1.0 General Parameters
1135

1236
| Parameter | Value | Description |
1337
| -------- | -------- | -------- |
@@ -21,7 +45,7 @@ This gives an overview of the general parameters, and expected values for the Et
2145
| `mcache_gossip` | 3 | Number of heartbeats to gossip about|
2246
| `seen_ttl` | 33 slots (396 seconds, 566 heartbeats | Amount of time to retain message IDs|
2347

24-
#### Gossipsub v1.1 General Parameters
48+
### Gossipsub v1.1 General Parameters
2549

2650
| Parameter | Value | Description |
2751
| -------- | -------- | -------- |
@@ -40,11 +64,11 @@ This gives an overview of the general parameters, and expected values for the Et
4064
| `iwant_follow_up_time` | 3 secs | The maximum amount of time a peer has to respond to an IWANT before being penalized |
4165

4266

43-
### General Scoring Parameters
67+
## General Scoring Parameters
4468

4569
These parameters are general and apply to all peers regardless of topic. This are only used once scoring is enabled.
4670

47-
#### Thresholds
71+
### Thresholds
4872
| Parameter | Value | Description |
4973
| -------- | -------- | -------- |
5074
| `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
5478
| `opportunistic_graft_threshold` | 5 | If a peer has a score below this value we consider them for replacement via opportunistic grafting |
5579
| `ip_colocation_threshold` | 10 | The number of peers allowed with the same IP. Peers exceeding this get quadratically penalized |
5680

57-
#### Scoring Parameters
81+
### Scoring Parameters
5882

5983
| Parameter | Value | Description |
6084
| -------- | -------- | -------- |
@@ -69,7 +93,7 @@ These parameters are general and apply to all peers regardless of topic. This ar
6993

7094
## Topic Specific Parameters
7195

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.
7397

7498
### Topics Parameters
7599

@@ -93,9 +117,9 @@ These are parameters that apply to each specific topic. This section provides an
93117
| `invalid_message_deliveries_weight` | The weighting for invalid messages (application rejects or encoding errors) |
94118
| `invalid_message_deliveries_decay` | The decay of this score |
95119

96-
## Topic Score Parameters
120+
### Topic Score Parameters
97121

98-
### Beacon Block Topic
122+
#### Beacon Block Topic
99123

100124
| Parameter | Value | Comment |
101125
| -------- | --- | -------- |
@@ -117,7 +141,7 @@ These are parameters that apply to each specific topic. This section provides an
117141
| `invalid_message_deliveries_weight` | -99 | |
118142
| `invalid_message_deliveries_decay` | 0.9994 | Very slow to decay to remember bad peers |
119143

120-
### Attestation Aggregate Topic
144+
#### Attestation Aggregate Topic
121145

122146
| Parameter | Value | Comment |
123147
| -------- | --- | -------- |
@@ -142,7 +166,7 @@ These are parameters that apply to each specific topic. This section provides an
142166
NOTE: The `V` represented in the parameters represents the current active validator
143167
count.
144168

145-
### Subnet and Sync Committee Topics
169+
#### Subnet and Sync Committee Topics
146170

147171
The recommendations for the subnets are TBD. Current recommendations are to
148172
count invalids.
@@ -168,7 +192,7 @@ count invalids.
168192
| `invalid_message_deliveries_decay` | 0.9994 | Very slow to decay to remember bad peers |
169193

170194

171-
### Other topics
195+
#### Other topics
172196

173197
The `voluntary_exit`, `proposer_slashing`, `attester_slashing` topics should
174198
also penalize based on invalid messages. As these topics do not have an

0 commit comments

Comments
 (0)