|
| int | mesh_target = 6 |
| | D — desired mesh degree per topic.
|
| |
| int | mesh_low = 4 |
| | D_low — graft more peers below this.
|
| |
| int | mesh_high = 12 |
| | D_high— prune peers above this.
|
| |
| int | fanout_size = 6 |
| | peers used to publish to a topic we are not subscribed to
|
| |
| int | gossip_factor = 6 |
| | D_lazy— peers we emit IHAVE to per heartbeat per topic.
|
| |
| std::chrono::milliseconds | fanout_ttl {60000} |
| | drop a fanout set idle this long
|
| |
| std::chrono::milliseconds | heartbeat_interval {1000} |
| | mesh maintenance + gossip cadence
|
| |
| int | history_length = 5 |
| | heartbeat windows the message cache keeps (for IWANT)
|
| |
| int | history_gossip = 3 |
| | of those, how many windows IHAVE advertises
|
| |
| size_t | seen_limit = 8192 |
| | dedup ids remembered
|
| |
GossipSub tuning.
Defaults mirror the libp2p reference (D=6, D_low=4, D_high=12) and are sensible for small-to-medium meshes.
Definition at line 65 of file pubsub.h.