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
Copy file name to clipboardExpand all lines: library/api.go
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,36 @@ func main() {}
28
28
// - keepAliveInterval: interval in seconds to ping all peers
29
29
// - relay: Enable WakuRelay. Default `true`
30
30
// - relayTopics: Array of pubsub topics that WakuRelay will automatically subscribe to when the node starts
31
+
// - gossipsubParams: an object containing custom gossipsub parameters. All attributes are optional, and if not specified, it will use default values.
32
+
// - d: optimal degree for a GossipSub topic mesh. Default `6`
33
+
// - dLow: lower bound on the number of peers we keep in a GossipSub topic mesh. Default `5`
34
+
// - dHigh: upper bound on the number of peers we keep in a GossipSub topic mesh. Default `12`
35
+
// - dScore: affects how peers are selected when pruning a mesh due to over subscription. Default `4`
36
+
// - dOut: sets the quota for the number of outbound connections to maintain in a topic mesh. Default `2`
37
+
// - historyLength: controls the size of the message cache used for gossip. Default `5`
38
+
// - historyGossip: controls how many cached message ids we will advertise in IHAVE gossip messages. Default `3`
39
+
// - dLazy: affects how many peers we will emit gossip to at each heartbeat. Default `6`
40
+
// - gossipFactor: affects how many peers we will emit gossip to at each heartbeat. Default `0.25`
41
+
// - gossipRetransmission: controls how many times we will allow a peer to request the same message id through IWANT gossip before we start ignoring them. Default `3`
42
+
// - heartbeatInitialDelayMs: short delay in milliseconds before the heartbeat timer begins after the router is initialized. Default `100` milliseconds
43
+
// - heartbeatIntervalSeconds: controls the time between heartbeats. Default `1` second
44
+
// - slowHeartbeatWarning: duration threshold for heartbeat processing before emitting a warning. Default `0.1`
45
+
// - fanoutTTLSeconds: controls how long we keep track of the fanout state. Default `60` seconds
46
+
// - prunePeers: controls the number of peers to include in prune Peer eXchange. Default `16`
47
+
// - pruneBackoffSeconds: controls the backoff time for pruned peers. Default `60` seconds
48
+
// - unsubscribeBackoffSeconds: controls the backoff time to use when unsuscribing from a topic. Default `10` seconds
49
+
// - connectors: number of active connection attempts for peers obtained through PX. Default `8`
50
+
// - maxPendingConnections: maximum number of pending connections for peers attempted through px. Default `128`
51
+
// - connectionTimeoutSeconds: timeout in seconds for connection attempts. Default `30` seconds
52
+
// - directConnectTicks: the number of heartbeat ticks for attempting to reconnect direct peers that are not currently connected. Default `300`
53
+
// - directConnectInitialDelaySeconds: initial delay before opening connections to direct peers. Default `1` second
54
+
// - opportunisticGraftTicks: number of heartbeat ticks for attempting to improve the mesh with opportunistic grafting. Default `60`
55
+
// - opportunisticGraftPeers: the number of peers to opportunistically graft. Default `2`
56
+
// - graftFloodThresholdSeconds: If a GRAFT comes before GraftFloodThresholdSeconds has elapsed since the last PRUNE, then there is an extra score penalty applied to the peer through P7. Default `10` seconds
57
+
// - maxIHaveLength: max number of messages to include in an IHAVE message, also controls the max number of IHAVE ids we will accept and request with IWANT from a peer within a heartbeat. Default `5000`
58
+
// - maxIHaveMessages: max number of IHAVE messages to accept from a peer within a heartbeat. Default `10`
59
+
// - iWantFollowupTimeSeconds: Time to wait for a message requested through IWANT following an IHAVE advertisement. Default `3` seconds
60
+
//
31
61
// - minPeersToPublish: The minimum number of peers required on a topic to allow broadcasting a message. Default `0`
0 commit comments