This commit is contained in:
bthomee
2025-08-08 21:18:02 +00:00
parent f8c4f17995
commit 28323b0726
14 changed files with 925 additions and 768 deletions

View File

@@ -217,11 +217,11 @@ $(function() {
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> }</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> </div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <span class="comment">// We only get stalled when every disputed transaction unequivocally has 80%</span></div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="comment">// (minConsensusPct) agreement, either for or against. That is: either under</span></div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="comment">// 20% or over 80% consensus (repectively &quot;nay&quot; or &quot;yay&quot;). This prevents</span></div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="comment">// manipulation by a minority of byzantine peers of which transactions make</span></div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <span class="comment">// the cut to get into the ledger.</span></div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <span class="comment">// We only get stalled when there are disputed transactions and all of them</span></div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="comment">// unequivocally have 80% (minConsensusPct) agreement, either for or</span></div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="comment">// against. That is: either under 20% or over 80% consensus (repectively</span></div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="comment">// &quot;nay&quot; or &quot;yay&quot;). This prevents manipulation by a minority of byzantine</span></div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <span class="comment">// peers of which transactions make the cut to get into the ledger.</span></div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <span class="keywordflow">if</span> (stalled)</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> {</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> CLOG(clog) &lt;&lt; <span class="stringliteral">&quot;consensus stalled. &quot;</span>;</div>