update docs for gossipsub-new
This commit is contained in:
parent
1c1f41d738
commit
c03431cdaa
|
@ -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:26:58 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:57 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:41 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:55 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:56 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:55 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:56 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:53 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:37 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:53 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:37 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:53 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:37 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:56 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:52 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:36 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:52 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:36 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:53 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:37 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:56 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:56 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:55 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:55 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:54 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:38 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:54 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:38 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:54 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:38 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:55 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:56 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:56 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:55 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:56 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:56 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:55 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:55 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:55 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:51 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:35 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:55 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:57 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:57 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:41 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:57 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:57 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:57 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:41 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:57 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:41 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:57 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:55 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:58 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:55 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -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:26:58 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:58 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -219,45 +219,6 @@ 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"
|
||||
|
@ -370,9 +331,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L762"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L687"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L762" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L687" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -383,9 +344,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L305"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L230"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L305" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L230" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -399,35 +360,6 @@ href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocol
|
|||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L52" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
<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>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L89"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L89" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
<div id="rateLimit,GossipSub,PubSubPeer,int" class="tohide">
|
||||
|
@ -438,9 +370,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L492"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L417"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L492" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<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>
|
||||
|
@ -451,9 +383,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L165"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L90"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L165" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<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>
|
||||
|
@ -464,9 +396,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L198"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L121"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L198" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L121" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -482,9 +414,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L823"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L748"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L823" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L748" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -494,9 +426,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L218"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L141"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L218" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L141" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -507,9 +439,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L806"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L731"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L806" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L731" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -520,9 +452,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L237"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L160"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L237" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L160" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -533,9 +465,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L251"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L174"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L251" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L174" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -546,9 +478,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L612"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L537"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L612" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L537" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -560,9 +492,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L645"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L570"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L645" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L570" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -574,9 +506,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L503"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L428"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L503" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L428" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -588,9 +520,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L773"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L698"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L773" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L698" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -602,9 +534,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L789"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L714"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L789" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L714" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -615,9 +547,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
handle peer disconnects
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L267"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub.nim#L192"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L267" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub.nim#L192" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -636,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:26:58 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:58 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:58 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -265,7 +265,8 @@ window.addEventListener("DOMContentLoaded", main2);
|
|||
enablePX*: bool
|
||||
bandwidthEstimatebps*: int
|
||||
overheadRateLimit*: Opt[tuple[bytes: int, interval: Duration]]
|
||||
disconnectPeerAboveRateLimit*: bool">GossipSubParams</a></li>
|
||||
disconnectPeerAboveRateLimit*: bool
|
||||
maxNumElementsInNonPriorityQueue*: int">GossipSubParams</a></li>
|
||||
<li><a class="reference" href="#MeshMetrics"
|
||||
title="MeshMetrics = object
|
||||
otherPeersPerTopicMesh*: int64
|
||||
|
@ -383,9 +384,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub/types.nim#L150"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub/types.nim#L152"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L150" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L152" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -416,9 +417,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub/types.nim#L160"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub/types.nim#L162"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L160" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L162" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -459,6 +460,7 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
<span class="Identifier">bandwidthEstimatebps</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">int</span>
|
||||
<span class="Identifier">overheadRateLimit</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">Opt</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="Identifier">disconnectPeerAboveRateLimit</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">bool</span>
|
||||
<span class="Identifier">maxNumElementsInNonPriorityQueue</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">int</span>
|
||||
</pre></dt>
|
||||
<dd>
|
||||
|
||||
|
@ -484,9 +486,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub/types.nim#L184"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub/types.nim#L186"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L184" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L186" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -516,9 +518,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub/types.nim#L154"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub/types.nim#L156"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L154" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L156" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -528,9 +530,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub/types.nim#L153"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub/types.nim#L155"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L153" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L155" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -591,9 +593,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub/types.nim#L151"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/gossipsub/types.nim#L153"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L151" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L153" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -780,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:26:58 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:58 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:58 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -810,9 +810,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L616"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L619"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L616" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L619" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -844,9 +844,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L324"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L327"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L324" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L327" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -865,9 +865,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L561"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L564"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L561" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L564" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -878,9 +878,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L618"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L621"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L618" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L621" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -931,9 +931,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
</dl>
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L462"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L465"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L462" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L465" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -944,9 +944,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
unsubscribe from a <tt class="docutils literal"><span class="pre">topic</span></tt> string
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L431"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L434"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L431" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L434" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -957,9 +957,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
unsubscribe from a list of <tt class="docutils literal"><span class="pre">topic</span></tt> handlers
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L446"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L449"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L446" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L449" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -970,9 +970,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
unsubscribe every <tt class="docutils literal"><span class="pre"><span class="Identifier">handler</span></span></tt> from <tt class="docutils literal"><span class="pre"><span class="Identifier">topic</span></span></tt>
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L451"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L454"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L451" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L454" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -1000,9 +1000,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
Add a validator to a <tt class="docutils literal"><span class="pre"><span class="Identifier">topic</span></span></tt>. Each new message received in this will be sent to <tt class="docutils literal"><span class="pre"><span class="Identifier">hook</span></span></tt>. <tt class="docutils literal"><span class="pre"><span class="Identifier">hook</span></span></tt> can return either <tt class="docutils literal"><span class="pre"><span class="Identifier">Accept</span></span></tt>, <tt class="docutils literal"><span class="pre"><span class="Identifier">Ignore</span></span></tt> or <tt class="docutils literal"><span class="pre"><span class="Identifier">Reject</span></span></tt> (which can descore the peer)
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L511"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L514"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L511" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L514" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -1013,9 +1013,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L296"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L299"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L296" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L299" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -1033,9 +1033,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
</ol>
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L361"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L364"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L361" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L364" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -1046,9 +1046,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
perform pubsub initialization
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L504"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L507"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L504" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L507" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -1072,9 +1072,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L414"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L417"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L414" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L417" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -1088,9 +1088,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
<p>The return value is the number of neighbours that we attempted to send the message to, excluding self. Note that this is an optimistic number of attempts - the number of peers that actually receive the message might be lower.</p>
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L492"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L495"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L492" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L495" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -1101,9 +1101,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L521"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L524"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L521" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L524" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -1128,9 +1128,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
subscribe to remote peer to receive/send pubsub messages
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L390"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L393"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L390" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L393" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -1155,9 +1155,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L530"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsub.nim#L533"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L530" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L533" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -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:26:58 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -237,13 +237,15 @@ window.addEventListener("DOMContentLoaded", main2);
|
|||
appScore*: float64
|
||||
behaviourPenalty*: float64
|
||||
overheadRateLimitOpt*: Opt[TokenBucket]
|
||||
rpcmessagequeue: RpcMessageQueue">PubSubPeer</a></li>
|
||||
rpcmessagequeue: RpcMessageQueue
|
||||
maxNumElementsInNonPriorityQueue*: int
|
||||
disconnected: bool">PubSubPeer</a></li>
|
||||
<li><a class="reference" href="#PubSubPeerEvent"
|
||||
title="PubSubPeerEvent = object
|
||||
kind*: PubSubPeerEventKind">PubSubPeerEvent</a></li>
|
||||
<li><a class="reference" href="#PubSubPeerEventKind"
|
||||
title="PubSubPeerEventKind {.pure.} = enum
|
||||
Connected, Disconnected">PubSubPeerEventKind</a></li>
|
||||
StreamOpened, StreamClosed, DisconnectionRequested">PubSubPeerEventKind</a></li>
|
||||
<li><a class="reference" href="#RPCHandler"
|
||||
title="RPCHandler = proc (peer: PubSubPeer; data: seq[byte]): Future[void] {.gcsafe,
|
||||
raises: [].}">RPCHandler</a></li>
|
||||
|
@ -255,6 +257,14 @@ window.addEventListener("DOMContentLoaded", main2);
|
|||
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a class="reference reference-toplevel" href="#10" id="60">Consts</a>
|
||||
<ul class="simple simple-toc-section">
|
||||
<li><a class="reference" href="#DefaultMaxNumElementsInNonPriorityQueue"
|
||||
title="DefaultMaxNumElementsInNonPriorityQueue = 1024">DefaultMaxNumElementsInNonPriorityQueue</a></li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a class="reference reference-toplevel" href="#12" id="62">Procs</a>
|
||||
<ul class="simple simple-toc-section">
|
||||
|
@ -304,11 +314,11 @@ window.addEventListener("DOMContentLoaded", main2);
|
|||
|
||||
</ul>
|
||||
<ul class="simple nested-toc-section">new
|
||||
<li><a class="reference" href="#new%2Ctypedesc%5BPubSubPeer%5D%2CPeerId%2CGetConn%2COnEvent%2Cstring%2Cint%2COpt%5BTokenBucket%5D"
|
||||
<li><a class="reference" href="#new%2Ctypedesc%5BPubSubPeer%5D%2CPeerId%2CGetConn%2COnEvent%2Cstring%2Cint%2Cint%2COpt%5BTokenBucket%5D"
|
||||
title="new(T: typedesc[PubSubPeer]; peerId: PeerId; getConn: GetConn; onEvent: OnEvent;
|
||||
codec: string; maxMessageSize: int;
|
||||
codec: string; maxMessageSize: int; maxNumElementsInNonPriorityQueue: int = DefaultMaxNumElementsInNonPriorityQueue;
|
||||
overheadRateLimitOpt: Opt[TokenBucket] = Opt.none(TokenBucket)): T:type">new(T: typedesc[PubSubPeer]; peerId: PeerId; getConn: GetConn; onEvent: OnEvent;
|
||||
codec: string; maxMessageSize: int;
|
||||
codec: string; maxMessageSize: int; maxNumElementsInNonPriorityQueue: int = DefaultMaxNumElementsInNonPriorityQueue;
|
||||
overheadRateLimitOpt: Opt[TokenBucket] = Opt.none(TokenBucket)): T:type</a></li>
|
||||
|
||||
</ul>
|
||||
|
@ -389,9 +399,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L53"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L59"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L53" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L59" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -401,9 +411,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L52"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L58"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L52" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L58" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -413,9 +423,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L54"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L60"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L54" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L60" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -425,9 +435,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L39"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L44"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L39" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L44" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -440,9 +450,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L41"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L46"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L41" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L46" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -467,14 +477,16 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
<span class="Identifier">behaviourPenalty</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">float64</span>
|
||||
<span class="Identifier">overheadRateLimitOpt</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">Opt</span><span class="Other">[</span><span class="Identifier">TokenBucket</span><span class="Other">]</span>
|
||||
<span class="Identifier">rpcmessagequeue</span><span class="Other">:</span> <a href="pubsubpeer.html#RpcMessageQueue"><span class="Identifier">RpcMessageQueue</span></a>
|
||||
<span class="Identifier">maxNumElementsInNonPriorityQueue</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">int</span>
|
||||
<span class="Identifier">disconnected</span><span class="Other">:</span> <span class="Identifier">bool</span>
|
||||
</pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L64"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L70"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L64" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L70" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -486,22 +498,22 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L49"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L55"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L49" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L55" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
<div id="PubSubPeerEventKind" class="tohide">
|
||||
<dt><pre><a href="pubsubpeer.html#PubSubPeerEventKind"><span class="Identifier">PubSubPeerEventKind</span></a> {.<span class="Identifier">pure</span>.} <span class="Other">=</span> <span class="Keyword">enum</span>
|
||||
<span class="Identifier">Connected</span><span class="Other">,</span> <span class="Identifier">Disconnected</span></pre></dt>
|
||||
<span class="Identifier">StreamOpened</span><span class="Other">,</span> <span class="Identifier">StreamClosed</span><span class="Other">,</span> <span class="Identifier">DisconnectionRequested</span></pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L45"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L50"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L45" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L50" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -512,9 +524,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L87"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L95"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L87" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L95" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -528,9 +540,26 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L56"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L62"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L56" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L62" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
</dl></div>
|
||||
<div class="section" id="10">
|
||||
<h1><a class="toc-backref" href="#10">Consts</a></h1>
|
||||
<dl class="item">
|
||||
<div id="DefaultMaxNumElementsInNonPriorityQueue" class="tohide">
|
||||
<dt><pre><a href="pubsubpeer.html#DefaultMaxNumElementsInNonPriorityQueue"><span class="Identifier">DefaultMaxNumElementsInNonPriorityQueue</span></a> <span class="Other">=</span> <span class="DecNumber">1024</span></pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L41"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L41" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -545,9 +574,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L112"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L120"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L112" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L120" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -557,9 +586,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L415"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L437"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L415" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L437" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -569,9 +598,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L238"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L252"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L238" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L252" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -581,9 +610,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L120"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L128"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L120" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L128" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -593,9 +622,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L99"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L107"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L99" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L107" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -606,9 +635,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L151"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L159"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L151" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L159" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -618,9 +647,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L109"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L117"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L109" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L117" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -630,9 +659,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L124"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L132"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L124" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L132" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -642,24 +671,25 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L244"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L258"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L244" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L258" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
<div id="new,typedesc[PubSubPeer],PeerId,GetConn,OnEvent,string,int,Opt[TokenBucket]" class="tohide">
|
||||
<dt><pre><span class="Keyword">proc</span> <a href="#new%2Ctypedesc%5BPubSubPeer%5D%2CPeerId%2CGetConn%2COnEvent%2Cstring%2Cint%2COpt%5BTokenBucket%5D"><span class="Identifier">new</span></a><span class="Other">(</span><span class="Identifier">T</span><span class="Other">:</span> <span class="Identifier">typedesc</span><span class="Other">[</span><a href="pubsubpeer.html#PubSubPeer"><span class="Identifier">PubSubPeer</span></a><span class="Other">]</span><span class="Other">;</span> <span class="Identifier">peerId</span><span class="Other">:</span> <a href="../../peerid.html#PeerId"><span class="Identifier">PeerId</span></a><span class="Other">;</span> <span class="Identifier">getConn</span><span class="Other">:</span> <a href="pubsubpeer.html#GetConn"><span class="Identifier">GetConn</span></a><span class="Other">;</span>
|
||||
<div id="new,typedesc[PubSubPeer],PeerId,GetConn,OnEvent,string,int,int,Opt[TokenBucket]" class="tohide">
|
||||
<dt><pre><span class="Keyword">proc</span> <a href="#new%2Ctypedesc%5BPubSubPeer%5D%2CPeerId%2CGetConn%2COnEvent%2Cstring%2Cint%2Cint%2COpt%5BTokenBucket%5D"><span class="Identifier">new</span></a><span class="Other">(</span><span class="Identifier">T</span><span class="Other">:</span> <span class="Identifier">typedesc</span><span class="Other">[</span><a href="pubsubpeer.html#PubSubPeer"><span class="Identifier">PubSubPeer</span></a><span class="Other">]</span><span class="Other">;</span> <span class="Identifier">peerId</span><span class="Other">:</span> <a href="../../peerid.html#PeerId"><span class="Identifier">PeerId</span></a><span class="Other">;</span> <span class="Identifier">getConn</span><span class="Other">:</span> <a href="pubsubpeer.html#GetConn"><span class="Identifier">GetConn</span></a><span class="Other">;</span>
|
||||
<span class="Identifier">onEvent</span><span class="Other">:</span> <a href="pubsubpeer.html#OnEvent"><span class="Identifier">OnEvent</span></a><span class="Other">;</span> <span class="Identifier">codec</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">maxMessageSize</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">;</span>
|
||||
<span class="Identifier">maxNumElementsInNonPriorityQueue</span><span class="Other">:</span> <span class="Identifier">int</span> <span class="Other">=</span> <span class="Identifier">DefaultMaxNumElementsInNonPriorityQueue</span><span class="Other">;</span>
|
||||
<span class="Identifier">overheadRateLimitOpt</span><span class="Other">:</span> <span class="Identifier">Opt</span><span class="Other">[</span><span class="Identifier">TokenBucket</span><span class="Other">]</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="Identifier">TokenBucket</span><span class="Other">)</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">T:type</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>.}</pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L463"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L485"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L463" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L485" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -669,9 +699,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L127"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L135"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L127" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L135" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -682,9 +712,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L137"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L145"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L137" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L145" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -703,9 +733,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
<p>High priority messages are sent immediately, while low priority messages are queued and sent only after all high priority messages have been sent.</p>
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L380"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L402"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L380" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L402" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -723,9 +753,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
<p>High priority messages are sent immediately, while low priority messages are queued and sent only after all high priority messages have been sent.</p>
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L314"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L328"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L314" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L328" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -735,9 +765,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L115"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L123"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L115" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L123" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -748,9 +778,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L445"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L467"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L445" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L467" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -765,9 +795,9 @@ class="link-seesrc" target="_blank">Source</a>
|
|||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L118"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/gossipsub-new/libp2p/protocols/pubsub/pubsubpeer.nim#L126"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L118" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L126" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
@ -786,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:26:58 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:58 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:58 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:58 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:58 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:56 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:56 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:55 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:55 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:55 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:56 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:56 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:55 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:55 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:55 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:56 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:55 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:56 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:55 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:58 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:57 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:41 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:55 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:51 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:35 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:56 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:56 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:56 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:55 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:39 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:51 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:35 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:53 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:37 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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:26:56 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1077,6 +1077,10 @@ window.addEventListener('DOMContentLoaded', main);
|
|||
<li><a class="reference external"
|
||||
data-doc-search-tag="protocol: DefaultMaxIncomingStreams" href="libp2p/protocols/protocol.html#DefaultMaxIncomingStreams">protocol: DefaultMaxIncomingStreams</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="DefaultMaxNumElementsInNonPriorityQueue" href="#DefaultMaxNumElementsInNonPriorityQueue"><span>DefaultMaxNumElementsInNonPriorityQueue:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="pubsubpeer: DefaultMaxNumElementsInNonPriorityQueue" href="libp2p/protocols/pubsub/pubsubpeer.html#DefaultMaxNumElementsInNonPriorityQueue">pubsubpeer: DefaultMaxNumElementsInNonPriorityQueue</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="defaultMsgIdProvider" href="#defaultMsgIdProvider"><span>defaultMsgIdProvider:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="message: defaultMsgIdProvider(m: Message): Result[MessageId, ValidationResult]" href="libp2p/protocols/pubsub/rpc/message.html#defaultMsgIdProvider%2CMessage">message: defaultMsgIdProvider(m: Message): Result[MessageId, ValidationResult]</a></li>
|
||||
|
@ -3142,47 +3146,11 @@ 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;
|
||||
overheadRateLimitOpt: Opt[TokenBucket] = Opt.none(TokenBucket)): T:type" href="libp2p/protocols/pubsub/pubsubpeer.html#new%2Ctypedesc%5BPubSubPeer%5D%2CPeerId%2CGetConn%2COnEvent%2Cstring%2Cint%2COpt%5BTokenBucket%5D">pubsubpeer: new(T: typedesc[PubSubPeer]; peerId: PeerId; getConn: GetConn; onEvent: OnEvent;
|
||||
codec: string; maxMessageSize: int;
|
||||
codec: string; maxMessageSize: int; maxNumElementsInNonPriorityQueue: int = DefaultMaxNumElementsInNonPriorityQueue;
|
||||
overheadRateLimitOpt: Opt[TokenBucket] = Opt.none(TokenBucket)): T:type" href="libp2p/protocols/pubsub/pubsubpeer.html#new%2Ctypedesc%5BPubSubPeer%5D%2CPeerId%2CGetConn%2COnEvent%2Cstring%2Cint%2Cint%2COpt%5BTokenBucket%5D">pubsubpeer: new(T: typedesc[PubSubPeer]; peerId: PeerId; getConn: GetConn; onEvent: OnEvent;
|
||||
codec: string; maxMessageSize: int; maxNumElementsInNonPriorityQueue: int = DefaultMaxNumElementsInNonPriorityQueue;
|
||||
overheadRateLimitOpt: Opt[TokenBucket] = Opt.none(TokenBucket)): T:type</a></li>
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="rendezvous: new(T: typedesc[RendezVous]; rng: ref HmacDrbgContext = newRng()): T:type" href="libp2p/protocols/rendezvous.html#new%2Ctypedesc%5BRendezVous%5D%2Cref.HmacDrbgContext">rendezvous: new(T: typedesc[RendezVous]; rng: ref HmacDrbgContext = newRng()): T:type</a></li>
|
||||
|
@ -5386,7 +5354,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:26:59 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-25 13:30:42 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue