Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GossipSub 1.1] Limit the size of PRUNE Peer Exchange list #576

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pubsub/gossipsub/gossipsub-v1.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ In this case, the pruned peer will have to rely on the ambient peer discovery se

#### Protobuf

The `ControlPrune` message is extended with a `peers` field as follows.
The `ControlPrune` message is extended with a `peers` field as follows. The `peers` list must not contain
more than `MaxExchangePeers`


```protobuf
syntax = "proto2";
Expand Down Expand Up @@ -545,6 +547,7 @@ The following parameters apply globally:
| Parameter | Type | Description | Reasonable Default |
|----------------------|------------------|------------------------------------------------------------------------|--------------------|
| `PruneBackoff` | Duration | Time after pruning a mesh peer before we consider grafting them again. | `1 minute` |
| `MaxExchangePeers` | Integer | Maximum number of entries in `ControlPrune.peers` list | 16 |
| `UnsubscribeBackoff` | Duration | Backoff to use when unsuscribing from a topic. Should not resubscribe to this topic before it expired. | `10 seconds` |
| `FloodPublish` | Boolean | Whether to enable flood publishing | `true` |
| `GossipFactor` | Float [0.0, 1.0] | % of peers to send gossip to, if we have more than `D_lazy` available | `0.25` |
Expand Down