update docs for gossipsub-new

This commit is contained in:
= 2024-03-25 13:35:14 +00:00
parent 471364194a
commit ce71ac9ee6
82 changed files with 232 additions and 128 deletions

View File

@ -260,7 +260,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:06 UTC</small>
</div>
</div>
</div>

View File

@ -801,7 +801,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:41 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:04 UTC</small>
</div>
</div>
</div>

View File

@ -874,7 +874,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:03 UTC</small>
</div>
</div>
</div>

View File

@ -391,7 +391,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:03 UTC</small>
</div>
</div>
</div>

View File

@ -1621,7 +1621,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:02 UTC</small>
</div>
</div>
</div>

View File

@ -398,7 +398,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:03 UTC</small>
</div>
</div>
</div>

View File

@ -1450,7 +1450,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:37 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:00 UTC</small>
</div>
</div>
</div>

View File

@ -3040,7 +3040,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:37 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:00 UTC</small>
</div>
</div>
</div>

View File

@ -940,7 +940,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:37 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:00 UTC</small>
</div>
</div>
</div>

View File

@ -275,7 +275,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:03 UTC</small>
</div>
</div>
</div>

View File

@ -1195,7 +1195,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:36 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:00 UTC</small>
</div>
</div>
</div>

View File

@ -1029,7 +1029,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:36 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:00 UTC</small>
</div>
</div>
</div>

View File

@ -908,7 +908,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:37 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:00 UTC</small>
</div>
</div>
</div>

View File

@ -381,7 +381,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:03 UTC</small>
</div>
</div>
</div>

View File

@ -450,7 +450,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:03 UTC</small>
</div>
</div>
</div>

View File

@ -340,7 +340,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:02 UTC</small>
</div>
</div>
</div>

View File

@ -2551,7 +2551,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:02 UTC</small>
</div>
</div>
</div>

View File

@ -396,7 +396,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:38 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:01 UTC</small>
</div>
</div>
</div>

View File

@ -481,7 +481,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:38 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:01 UTC</small>
</div>
</div>
</div>

View File

@ -689,7 +689,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:38 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:01 UTC</small>
</div>
</div>
</div>

View File

@ -556,7 +556,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:02 UTC</small>
</div>
</div>
</div>

View File

@ -399,7 +399,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:03 UTC</small>
</div>
</div>
</div>

View File

@ -455,7 +455,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:03 UTC</small>
</div>
</div>
</div>

View File

@ -535,7 +535,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:02 UTC</small>
</div>
</div>
</div>

View File

@ -606,7 +606,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:03 UTC</small>
</div>
</div>
</div>

View File

@ -375,7 +375,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:03 UTC</small>
</div>
</div>
</div>

View File

@ -360,7 +360,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:02 UTC</small>
</div>
</div>
</div>

View File

@ -806,7 +806,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:02 UTC</small>
</div>
</div>
</div>

View File

@ -484,7 +484,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:02 UTC</small>
</div>
</div>
</div>

View File

@ -931,7 +931,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:35 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:34:58 UTC</small>
</div>
</div>
</div>

View File

@ -508,7 +508,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:03 UTC</small>
</div>
</div>
</div>

View File

@ -302,7 +302,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:04 UTC</small>
</div>
</div>
</div>

View File

@ -468,7 +468,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:41 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:04 UTC</small>
</div>
</div>
</div>

View File

@ -722,7 +722,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:04 UTC</small>
</div>
</div>
</div>

View File

@ -383,7 +383,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:04 UTC</small>
</div>
</div>
</div>

View File

@ -568,7 +568,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:41 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:04 UTC</small>
</div>
</div>
</div>

View File

@ -414,7 +414,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:41 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:04 UTC</small>
</div>
</div>
</div>

View File

@ -376,7 +376,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:04 UTC</small>
</div>
</div>
</div>

View File

@ -636,7 +636,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:02 UTC</small>
</div>
</div>
</div>

View File

@ -414,7 +414,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:05 UTC</small>
</div>
</div>
</div>

View File

@ -468,7 +468,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:02 UTC</small>
</div>
</div>
</div>

File diff suppressed because one or more lines are too long

View File

@ -255,7 +255,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:05 UTC</small>
</div>
</div>
</div>

View File

@ -468,7 +468,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:05 UTC</small>
</div>
</div>
</div>

View File

@ -219,6 +219,45 @@ window.addEventListener("DOMContentLoaded", main2);
<li><a class="reference" href="#init%2Ctype%5BGossipSubParams%5D"
title="init(_: type[GossipSubParams]): GossipSubParams">init(_: type[GossipSubParams]): GossipSubParams</a></li>
</ul>
<ul class="simple nested-toc-section">new
<li><a class="reference" href="#new%2Ctype%5BGossipSubParams%5D%2Cfloat64%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cint"
title="new(_: type[GossipSubParams]; explicit = true; pruneBackoff = 1.minutes;
unsubscribeBackoff = 5.seconds; floodPublish = true;
gossipFactor: float64 = 0.25; d = GossipSubD; dLow = GossipSubDlo;
dHigh = GossipSubDhi; dScore = GossipSubDlo; dOut = GossipSubDlo - 1;
dLazy = GossipSubD; heartbeatInterval = GossipSubHeartbeatInterval;
historyLength = GossipSubHistoryLength;
historyGossip = GossipSubHistoryGossip; fanoutTTL = GossipSubFanoutTTL;
seenTTL = 2.minutes; gossipThreshold = -100.0; publishThreshold = -1000.0;
graylistThreshold = -10000.0; opportunisticGraftThreshold = 0.0;
decayInterval = 1.seconds; decayToZero = 0.01; retainScore = 2.minutes;
appSpecificWeight = 0.0; ipColocationFactorWeight = 0.0;
ipColocationFactorThreshold = 1.0; behaviourPenaltyWeight = -1.0;
behaviourPenaltyDecay = 0.999; directPeers = initTable();
disconnectBadPeers = false; enablePX = false;
bandwidthEstimatebps = 100000000;
overheadRateLimit = Opt.none(tuple[bytes: int, interval: Duration]);
disconnectPeerAboveRateLimit = false;
maxNumElementsInNonPriorityQueue = DefaultMaxNumElementsInNonPriorityQueue): GossipSubParams">new(_: type[GossipSubParams]; explicit = true; pruneBackoff = 1.minutes;
unsubscribeBackoff = 5.seconds; floodPublish = true;
gossipFactor: float64 = 0.25; d = GossipSubD; dLow = GossipSubDlo;
dHigh = GossipSubDhi; dScore = GossipSubDlo; dOut = GossipSubDlo - 1;
dLazy = GossipSubD; heartbeatInterval = GossipSubHeartbeatInterval;
historyLength = GossipSubHistoryLength;
historyGossip = GossipSubHistoryGossip; fanoutTTL = GossipSubFanoutTTL;
seenTTL = 2.minutes; gossipThreshold = -100.0; publishThreshold = -1000.0;
graylistThreshold = -10000.0; opportunisticGraftThreshold = 0.0;
decayInterval = 1.seconds; decayToZero = 0.01; retainScore = 2.minutes;
appSpecificWeight = 0.0; ipColocationFactorWeight = 0.0;
ipColocationFactorThreshold = 1.0; behaviourPenaltyWeight = -1.0;
behaviourPenaltyDecay = 0.999; directPeers = initTable();
disconnectBadPeers = false; enablePX = false;
bandwidthEstimatebps = 100000000;
overheadRateLimit = Opt.none(tuple[bytes: int, interval: Duration]);
disconnectPeerAboveRateLimit = false;
maxNumElementsInNonPriorityQueue = DefaultMaxNumElementsInNonPriorityQueue): GossipSubParams</a></li>
</ul>
<ul class="simple nested-toc-section">rateLimit
<li><a class="reference" href="#rateLimit%2CGossipSub%2CPubSubPeer%2Cint"
@ -331,9 +370,9 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L687"
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L765"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L687" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L765" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -344,9 +383,9 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L230"
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L308"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L230" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L308" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -362,23 +401,25 @@ class="link-seesrc" target="_blank">Source</a>
</dd>
</div>
<div id="rateLimit,GossipSub,PubSubPeer,int" class="tohide">
<dt><pre><span class="Keyword">proc</span> <a href="#rateLimit%2CGossipSub%2CPubSubPeer%2Cint"><span class="Identifier">rateLimit</span></a><span class="Other">(</span><span class="Identifier">g</span><span class="Other">:</span> <a href="gossipsub/types.html#GossipSub"><span class="Identifier">GossipSub</span></a><span class="Other">;</span> <span class="Identifier">peer</span><span class="Other">:</span> <a href="pubsubpeer.html#PubSubPeer"><span class="Identifier">PubSubPeer</span></a><span class="Other">;</span> <span class="Identifier">overhead</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">]</span> {.
<span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">gcsafe</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
&nbsp;&nbsp;<a
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L417"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L417" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="validateParameters,GossipSubParams" class="tohide">
<dt><pre><span class="Keyword">proc</span> <a href="#validateParameters%2CGossipSubParams"><span class="Identifier">validateParameters</span></a><span class="Other">(</span><span class="Identifier">parameters</span><span class="Other">:</span> <a href="gossipsub/types.html#GossipSubParams"><span class="Identifier">GossipSubParams</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Result</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">,</span> <span class="Identifier">cstring</span><span class="Other">]</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<div id="new,type[GossipSubParams],float64,float,float,float,float,float,float,float,float,float,float,int" class="tohide">
<dt><pre><span class="Keyword">proc</span> <a href="#new%2Ctype%5BGossipSubParams%5D%2Cfloat64%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cint"><span class="Identifier">new</span></a><span class="Other">(</span><span class="Operator">_</span><span class="Other">:</span> <span class="Identifier">type</span><span class="Other">[</span><a href="gossipsub/types.html#GossipSubParams"><span class="Identifier">GossipSubParams</span></a><span class="Other">]</span><span class="Other">;</span> <span class="Identifier">explicit</span> <span class="Other">=</span> <span class="Identifier">true</span><span class="Other">;</span> <span class="Identifier">pruneBackoff</span> <span class="Other">=</span> <span class="DecNumber">1</span><span class="Other">.</span><span class="Identifier">minutes</span><span class="Other">;</span>
<span class="Identifier">unsubscribeBackoff</span> <span class="Other">=</span> <span class="DecNumber">5</span><span class="Other">.</span><span class="Identifier">seconds</span><span class="Other">;</span> <span class="Identifier">floodPublish</span> <span class="Other">=</span> <span class="Identifier">true</span><span class="Other">;</span>
<span class="Identifier">gossipFactor</span><span class="Other">:</span> <span class="Identifier">float64</span> <span class="Other">=</span> <span class="FloatNumber">0.25</span><span class="Other">;</span> <span class="Identifier">d</span> <span class="Other">=</span> <span class="Identifier">GossipSubD</span><span class="Other">;</span> <span class="Identifier">dLow</span> <span class="Other">=</span> <span class="Identifier">GossipSubDlo</span><span class="Other">;</span>
<span class="Identifier">dHigh</span> <span class="Other">=</span> <span class="Identifier">GossipSubDhi</span><span class="Other">;</span> <span class="Identifier">dScore</span> <span class="Other">=</span> <span class="Identifier">GossipSubDlo</span><span class="Other">;</span> <span class="Identifier">dOut</span> <span class="Other">=</span> <a href="gossipsub/types.html#GossipSubDlo"><span class="Identifier">GossipSubDlo</span></a> <span class="Operator">-</span> <span class="DecNumber">1</span><span class="Other">;</span>
<span class="Identifier">dLazy</span> <span class="Other">=</span> <span class="Identifier">GossipSubD</span><span class="Other">;</span> <span class="Identifier">heartbeatInterval</span> <span class="Other">=</span> <span class="Identifier">GossipSubHeartbeatInterval</span><span class="Other">;</span>
<span class="Identifier">historyLength</span> <span class="Other">=</span> <span class="Identifier">GossipSubHistoryLength</span><span class="Other">;</span>
<span class="Identifier">historyGossip</span> <span class="Other">=</span> <span class="Identifier">GossipSubHistoryGossip</span><span class="Other">;</span> <span class="Identifier">fanoutTTL</span> <span class="Other">=</span> <span class="Identifier">GossipSubFanoutTTL</span><span class="Other">;</span>
<span class="Identifier">seenTTL</span> <span class="Other">=</span> <span class="DecNumber">2</span><span class="Other">.</span><span class="Identifier">minutes</span><span class="Other">;</span> <span class="Identifier">gossipThreshold</span> <span class="Other">=</span> <span class="FloatNumber">-100.0</span><span class="Other">;</span>
<span class="Identifier">publishThreshold</span> <span class="Other">=</span> <span class="FloatNumber">-1000.0</span><span class="Other">;</span> <span class="Identifier">graylistThreshold</span> <span class="Other">=</span> <span class="FloatNumber">-10000.0</span><span class="Other">;</span>
<span class="Identifier">opportunisticGraftThreshold</span> <span class="Other">=</span> <span class="FloatNumber">0.0</span><span class="Other">;</span> <span class="Identifier">decayInterval</span> <span class="Other">=</span> <span class="DecNumber">1</span><span class="Other">.</span><span class="Identifier">seconds</span><span class="Other">;</span>
<span class="Identifier">decayToZero</span> <span class="Other">=</span> <span class="FloatNumber">0.01</span><span class="Other">;</span> <span class="Identifier">retainScore</span> <span class="Other">=</span> <span class="DecNumber">2</span><span class="Other">.</span><span class="Identifier">minutes</span><span class="Other">;</span> <span class="Identifier">appSpecificWeight</span> <span class="Other">=</span> <span class="FloatNumber">0.0</span><span class="Other">;</span>
<span class="Identifier">ipColocationFactorWeight</span> <span class="Other">=</span> <span class="FloatNumber">0.0</span><span class="Other">;</span> <span class="Identifier">ipColocationFactorThreshold</span> <span class="Other">=</span> <span class="FloatNumber">1.0</span><span class="Other">;</span>
<span class="Identifier">behaviourPenaltyWeight</span> <span class="Other">=</span> <span class="FloatNumber">-1.0</span><span class="Other">;</span> <span class="Identifier">behaviourPenaltyDecay</span> <span class="Other">=</span> <span class="FloatNumber">0.999</span><span class="Other">;</span>
<span class="Identifier">directPeers</span> <span class="Other">=</span> <span class="Identifier">initTable</span><span class="Other">(</span><span class="Other">)</span><span class="Other">;</span> <span class="Identifier">disconnectBadPeers</span> <span class="Other">=</span> <span class="Identifier">false</span><span class="Other">;</span>
<span class="Identifier">enablePX</span> <span class="Other">=</span> <span class="Identifier">false</span><span class="Other">;</span> <span class="Identifier">bandwidthEstimatebps</span> <span class="Other">=</span> <span class="DecNumber">100000000</span><span class="Other">;</span>
<span class="Identifier">overheadRateLimit</span> <span class="Other">=</span> <span class="Identifier">Opt</span><span class="Other">.</span><span class="Identifier">none</span><span class="Other">(</span><span class="Keyword">tuple</span><span class="Other">[</span><span class="Identifier">bytes</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">,</span> <span class="Identifier">interval</span><span class="Other">:</span> <span class="Identifier">Duration</span><span class="Other">]</span><span class="Other">)</span><span class="Other">;</span>
<span class="Identifier">disconnectPeerAboveRateLimit</span> <span class="Other">=</span> <span class="Identifier">false</span><span class="Other">;</span> <span class="Identifier">maxNumElementsInNonPriorityQueue</span> <span class="Other">=</span> <span class="Identifier">DefaultMaxNumElementsInNonPriorityQueue</span><span class="Other">)</span><span class="Other">:</span> <a href="gossipsub/types.html#GossipSubParams"><span class="Identifier">GossipSubParams</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
@ -387,6 +428,33 @@ href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocol
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L90" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="rateLimit,GossipSub,PubSubPeer,int" class="tohide">
<dt><pre><span class="Keyword">proc</span> <a href="#rateLimit%2CGossipSub%2CPubSubPeer%2Cint"><span class="Identifier">rateLimit</span></a><span class="Other">(</span><span class="Identifier">g</span><span class="Other">:</span> <a href="gossipsub/types.html#GossipSub"><span class="Identifier">GossipSub</span></a><span class="Other">;</span> <span class="Identifier">peer</span><span class="Other">:</span> <a href="pubsubpeer.html#PubSubPeer"><span class="Identifier">PubSubPeer</span></a><span class="Other">;</span> <span class="Identifier">overhead</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">]</span> {.
<span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">gcsafe</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
&nbsp;&nbsp;<a
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L495"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L495" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="validateParameters,GossipSubParams" class="tohide">
<dt><pre><span class="Keyword">proc</span> <a href="#validateParameters%2CGossipSubParams"><span class="Identifier">validateParameters</span></a><span class="Other">(</span><span class="Identifier">parameters</span><span class="Other">:</span> <a href="gossipsub/types.html#GossipSubParams"><span class="Identifier">GossipSubParams</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Result</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">,</span> <span class="Identifier">cstring</span><span class="Other">]</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
&nbsp;&nbsp;<a
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L166"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L166" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="validateParameters,TopicParams" class="tohide">
@ -396,9 +464,9 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L121"
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L199"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L121" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L199" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -414,9 +482,9 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L748"
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L826"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L748" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L826" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -426,9 +494,9 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L141"
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L219"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L141" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L219" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -439,9 +507,9 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L731"
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L809"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L731" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L809" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -452,9 +520,9 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L160"
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L238"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L160" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L238" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -465,9 +533,9 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L174"
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L252"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L174" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L252" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -478,9 +546,9 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L537"
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L615"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L537" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L615" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -492,9 +560,9 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L570"
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L648"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L570" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L648" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -506,9 +574,9 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L428"
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L506"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L428" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L506" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -520,9 +588,9 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L698"
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L776"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L698" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L776" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -534,9 +602,9 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L714"
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L792"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L714" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L792" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -547,9 +615,9 @@ class="link-seesrc" target="_blank">Source</a>
handle peer disconnects
&nbsp;&nbsp;<a
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L192"
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L270"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L192" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L270" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -568,7 +636,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:06 UTC</small>
</div>
</div>
</div>

View File

@ -496,7 +496,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:05 UTC</small>
</div>
</div>
</div>

View File

@ -446,7 +446,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:05 UTC</small>
</div>
</div>
</div>

View File

@ -782,7 +782,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:05 UTC</small>
</div>
</div>
</div>

View File

@ -403,7 +403,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:05 UTC</small>
</div>
</div>
</div>

View File

@ -370,7 +370,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:05 UTC</small>
</div>
</div>
</div>

View File

@ -1176,7 +1176,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:05 UTC</small>
</div>
</div>
</div>

View File

@ -816,7 +816,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:05 UTC</small>
</div>
</div>
</div>

View File

@ -342,7 +342,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:05 UTC</small>
</div>
</div>
</div>

View File

@ -645,7 +645,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:05 UTC</small>
</div>
</div>
</div>

View File

@ -596,7 +596,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:05 UTC</small>
</div>
</div>
</div>

View File

@ -422,7 +422,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:05 UTC</small>
</div>
</div>
</div>

View File

@ -532,7 +532,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:04 UTC</small>
</div>
</div>
</div>

View File

@ -570,7 +570,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:03 UTC</small>
</div>
</div>
</div>

View File

@ -558,7 +558,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:02 UTC</small>
</div>
</div>
</div>

View File

@ -422,7 +422,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:02 UTC</small>
</div>
</div>
</div>

View File

@ -503,7 +503,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:02 UTC</small>
</div>
</div>
</div>

View File

@ -524,7 +524,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:03 UTC</small>
</div>
</div>
</div>

View File

@ -504,7 +504,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:03 UTC</small>
</div>
</div>
</div>

View File

@ -502,7 +502,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:02 UTC</small>
</div>
</div>
</div>

View File

@ -1009,7 +1009,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:02 UTC</small>
</div>
</div>
</div>

View File

@ -442,7 +442,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:02 UTC</small>
</div>
</div>
</div>

View File

@ -750,7 +750,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:03 UTC</small>
</div>
</div>
</div>

View File

@ -266,7 +266,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:02 UTC</small>
</div>
</div>
</div>

View File

@ -476,7 +476,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:03 UTC</small>
</div>
</div>
</div>

View File

@ -491,7 +491,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:03 UTC</small>
</div>
</div>
</div>

View File

@ -583,7 +583,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:05 UTC</small>
</div>
</div>
</div>

View File

@ -334,7 +334,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:41 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:04 UTC</small>
</div>
</div>
</div>

View File

@ -376,7 +376,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:03 UTC</small>
</div>
</div>
</div>

View File

@ -444,7 +444,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:35 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:34:58 UTC</small>
</div>
</div>
</div>

View File

@ -271,7 +271,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:04 UTC</small>
</div>
</div>
</div>

View File

@ -245,7 +245,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:03 UTC</small>
</div>
</div>
</div>

View File

@ -512,7 +512,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:03 UTC</small>
</div>
</div>
</div>

View File

@ -362,7 +362,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:03 UTC</small>
</div>
</div>
</div>

View File

@ -725,7 +725,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:35 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:34:58 UTC</small>
</div>
</div>
</div>

View File

@ -636,7 +636,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:37 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:00 UTC</small>
</div>
</div>
</div>

View File

@ -604,7 +604,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:03 UTC</small>
</div>
</div>
</div>

View File

@ -3146,6 +3146,42 @@ window.addEventListener('DOMContentLoaded', main);
data-doc-search-tag="protocol: new(T: type LPProtocol; codecs: seq[string]; handler: LPProtoHandler;
maxIncomingStreams: Opt[int] | int = Opt.none(int)): T:type" href="libp2p/protocols/protocol.html#new%2CtypeLPProtocol%2Cseq%5Bstring%5D%2CLPProtoHandler">protocol: new(T: type LPProtocol; codecs: seq[string]; handler: LPProtoHandler;
maxIncomingStreams: Opt[int] | int = Opt.none(int)): T:type</a></li>
<li><a class="reference external"
data-doc-search-tag="gossipsub: new(_: type[GossipSubParams]; explicit = true; pruneBackoff = 1.minutes;
unsubscribeBackoff = 5.seconds; floodPublish = true;
gossipFactor: float64 = 0.25; d = GossipSubD; dLow = GossipSubDlo;
dHigh = GossipSubDhi; dScore = GossipSubDlo; dOut = GossipSubDlo - 1;
dLazy = GossipSubD; heartbeatInterval = GossipSubHeartbeatInterval;
historyLength = GossipSubHistoryLength;
historyGossip = GossipSubHistoryGossip; fanoutTTL = GossipSubFanoutTTL;
seenTTL = 2.minutes; gossipThreshold = -100.0; publishThreshold = -1000.0;
graylistThreshold = -10000.0; opportunisticGraftThreshold = 0.0;
decayInterval = 1.seconds; decayToZero = 0.01; retainScore = 2.minutes;
appSpecificWeight = 0.0; ipColocationFactorWeight = 0.0;
ipColocationFactorThreshold = 1.0; behaviourPenaltyWeight = -1.0;
behaviourPenaltyDecay = 0.999; directPeers = initTable();
disconnectBadPeers = false; enablePX = false;
bandwidthEstimatebps = 100000000;
overheadRateLimit = Opt.none(tuple[bytes: int, interval: Duration]);
disconnectPeerAboveRateLimit = false;
maxNumElementsInNonPriorityQueue = DefaultMaxNumElementsInNonPriorityQueue): GossipSubParams" href="libp2p/protocols/pubsub/gossipsub.html#new%2Ctype%5BGossipSubParams%5D%2Cfloat64%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cint">gossipsub: new(_: type[GossipSubParams]; explicit = true; pruneBackoff = 1.minutes;
unsubscribeBackoff = 5.seconds; floodPublish = true;
gossipFactor: float64 = 0.25; d = GossipSubD; dLow = GossipSubDlo;
dHigh = GossipSubDhi; dScore = GossipSubDlo; dOut = GossipSubDlo - 1;
dLazy = GossipSubD; heartbeatInterval = GossipSubHeartbeatInterval;
historyLength = GossipSubHistoryLength;
historyGossip = GossipSubHistoryGossip; fanoutTTL = GossipSubFanoutTTL;
seenTTL = 2.minutes; gossipThreshold = -100.0; publishThreshold = -1000.0;
graylistThreshold = -10000.0; opportunisticGraftThreshold = 0.0;
decayInterval = 1.seconds; decayToZero = 0.01; retainScore = 2.minutes;
appSpecificWeight = 0.0; ipColocationFactorWeight = 0.0;
ipColocationFactorThreshold = 1.0; behaviourPenaltyWeight = -1.0;
behaviourPenaltyDecay = 0.999; directPeers = initTable();
disconnectBadPeers = false; enablePX = false;
bandwidthEstimatebps = 100000000;
overheadRateLimit = Opt.none(tuple[bytes: int, interval: Duration]);
disconnectPeerAboveRateLimit = false;
maxNumElementsInNonPriorityQueue = DefaultMaxNumElementsInNonPriorityQueue): GossipSubParams</a></li>
<li><a class="reference external"
data-doc-search-tag="pubsubpeer: new(T: typedesc[PubSubPeer]; peerId: PeerId; getConn: GetConn; onEvent: OnEvent;
codec: string; maxMessageSize: int; maxNumElementsInNonPriorityQueue: int = DefaultMaxNumElementsInNonPriorityQueue;
@ -5354,7 +5390,7 @@ window.addEventListener('DOMContentLoaded', main);
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:35:06 UTC</small>
</div>
</div>
</div>