This commit is contained in:
bthomee
2025-06-03 16:56:36 +00:00
parent cf1b2bc8e4
commit 6dcf1ed79d
662 changed files with 44641 additions and 34460 deletions

View File

@@ -329,7 +329,7 @@ $(function() {
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/unordered_map.html">hash_map&lt;NodeID, std::uint32_t&gt;</a> <span class="keyword">const</span>&amp; scoreTable)</div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span>{</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> <span class="comment">// Compute if need to find more validators to disable</span></div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> <span class="keyword">auto</span> <span class="keyword">const</span> canAdd = [&amp;]() -&gt; <span class="keywordtype">bool</span> {</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> <span class="keyword">auto</span> <span class="keyword">const</span> <a class="code hl_function" href="namespaceripple.html#a3c48650a4989da7655d4bedcbf6acffe">canAdd</a> = [&amp;]() -&gt; <span class="keywordtype">bool</span> {</div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> <span class="keyword">auto</span> <span class="keyword">const</span> maxNegativeListed = <span class="keyword">static_cast&lt;</span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a><span class="keyword">&gt;</span>(</div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/numeric/math/ceil.html">std::ceil</a>(unl.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/container/unordered_set/size.html">size</a>() * <a class="code hl_variable" href="classripple_1_1NegativeUNLVote.html#af2de75b9bfd6f9725a3dce10979fc128">negativeUNLMaxListed</a>));</div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> negativeListed = 0;</div>
@@ -357,7 +357,7 @@ $(function() {
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span> <span class="comment">// (2) has less than negativeUNLLowWaterMark validations,</span></div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> <span class="comment">// (3) is not in negUnl, and</span></div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span> <span class="comment">// (4) is not a new validator.</span></div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> <span class="keywordflow">if</span> (canAdd &amp;&amp; score &lt; <a class="code hl_variable" href="classripple_1_1NegativeUNLVote.html#ab76d9fbc4b6a779ef802d683ce6aff5f">negativeUNLLowWaterMark</a> &amp;&amp;</div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="namespaceripple.html#a3c48650a4989da7655d4bedcbf6acffe">canAdd</a> &amp;&amp; score &lt; <a class="code hl_variable" href="classripple_1_1NegativeUNLVote.html#ab76d9fbc4b6a779ef802d683ce6aff5f">negativeUNLLowWaterMark</a> &amp;&amp;</div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> !negUnl.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/container/unordered_set/count.html">count</a>(nodeId) &amp;&amp; !<a class="code hl_variable" href="classripple_1_1NegativeUNLVote.html#ad06aac6b466a08700b51ab59c5200108">newValidators_</a>.count(nodeId))</div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> {</div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> JLOG(<a class="code hl_variable" href="classripple_1_1NegativeUNLVote.html#a045ac9f409d032963fedb01a724b4f6f">j_</a>.<a class="code hl_function" href="classbeast_1_1Journal.html#abbe082bd27ca0f1d1365af2824e4f85b">trace</a>()) &lt;&lt; <span class="stringliteral">&quot;N-UNL: toDisable candidate &quot;</span> &lt;&lt; nodeId;</div>
@@ -481,6 +481,7 @@ $(function() {
<div class="ttc" id="alock_guard_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a></div></div>
<div class="ttc" id="anamespaceripple_1_1keylet_html_acda2d89a44551845c5be38291e5c9e8b"><div class="ttname"><a href="namespaceripple_1_1keylet.html#acda2d89a44551845c5be38291e5c9e8b">ripple::keylet::skip</a></div><div class="ttdeci">Keylet const &amp; skip() noexcept</div><div class="ttdoc">The index of the &quot;short&quot; skip list.</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8cpp_source.html#l00196">Indexes.cpp:196</a></div></div>
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="algorithm_8h_source.html#l00026">algorithm.h:26</a></div></div>
<div class="ttc" id="anamespaceripple_html_a3c48650a4989da7655d4bedcbf6acffe"><div class="ttname"><a href="namespaceripple.html#a3c48650a4989da7655d4bedcbf6acffe">ripple::canAdd</a></div><div class="ttdeci">bool canAdd(STAmount const &amp;amt1, STAmount const &amp;amt2)</div><div class="ttdoc">Safely checks if two STAmount values can be added without overflow, underflow, or precision loss.</div><div class="ttdef"><b>Definition:</b> <a href="STAmount_8cpp_source.html#l00528">STAmount.cpp:528</a></div></div>
<div class="ttc" id="anamespaceripple_html_aa2a27f242f6d150ff52f2ad0b2e2a512"><div class="ttname"><a href="namespaceripple.html#aa2a27f242f6d150ff52f2ad0b2e2a512">ripple::calcNodeID</a></div><div class="ttdeci">NodeID calcNodeID(PublicKey const &amp;)</div><div class="ttdoc">Calculate the 160-bit node ID from a node public key.</div><div class="ttdef"><b>Definition:</b> <a href="PublicKey_8cpp_source.html#l00319">PublicKey.cpp:319</a></div></div>
<div class="ttc" id="anamespaceripple_html_aa96b512548a1ae9fcd7493c52f19ce0f"><div class="ttname"><a href="namespaceripple.html#aa96b512548a1ae9fcd7493c52f19ce0f">ripple::make_shamapitem</a></div><div class="ttdeci">boost::intrusive_ptr&lt; SHAMapItem &gt; make_shamapitem(uint256 const &amp;tag, Slice data)</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapItem_8h_source.html#l00161">SHAMapItem.h:161</a></div></div>
<div class="ttc" id="anamespaceripple_html_ae0356b1de00f841c554c830be509dd58a9b447756a7d7ddf4e828beeb38d079f6"><div class="ttname"><a href="namespaceripple.html#ae0356b1de00f841c554c830be509dd58a9b447756a7d7ddf4e828beeb38d079f6">ripple::SHAMapNodeType::tnTRANSACTION_NM</a></div><div class="ttdeci">@ tnTRANSACTION_NM</div></div>