This commit is contained in:
bthomee
2025-05-20 18:10:54 +00:00
parent 39d241def5
commit 90cc35d381
3215 changed files with 96027 additions and 70734 deletions

View File

@@ -155,8 +155,8 @@ $(function() {
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> }</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> }</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> </div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="keyword">auto</span> <span class="keyword">const</span> seq = prevLedger-&gt;info().seq + 1;</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <a class="code hl_function" href="classripple_1_1NegativeUNLVote.html#a715cdaf670c930941605e79e41f37a12">purgeNewValidators</a>(seq);</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="keyword">auto</span> <span class="keyword">const</span> <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a> = prevLedger-&gt;info().seq + 1;</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <a class="code hl_function" href="classripple_1_1NegativeUNLVote.html#a715cdaf670c930941605e79e41f37a12">purgeNewValidators</a>(<a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a>);</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> </div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <span class="comment">// Process the table and find all candidates to disable or to re-enable</span></div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <span class="keyword">auto</span> <span class="keyword">const</span> candidates =</div>
@@ -170,7 +170,7 @@ $(function() {
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> XRPL_ASSERT(</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> nidToKeyMap.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/container/unordered_map/contains.html">contains</a>(n),</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="stringliteral">&quot;ripple::NegativeUNLVote::doVoting : found node to disable&quot;</span>);</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <a class="code hl_function" href="classripple_1_1NegativeUNLVote.html#af8a85a2853312bc4b1ff9852a2498bd4">addTx</a>(seq, nidToKeyMap.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/container/unordered_map/at.html">at</a>(n), <a class="code hl_enumvalue" href="classripple_1_1NegativeUNLVote.html#a4fc6405fdb02e58c350e175b6d58e7cfabe47f804b7bde80da32af12f772dc7c5">ToDisable</a>, initialSet);</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <a class="code hl_function" href="classripple_1_1NegativeUNLVote.html#af8a85a2853312bc4b1ff9852a2498bd4">addTx</a>(<a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a>, nidToKeyMap.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/container/unordered_map/at.html">at</a>(n), <a class="code hl_enumvalue" href="classripple_1_1NegativeUNLVote.html#a4fc6405fdb02e58c350e175b6d58e7cfabe47f804b7bde80da32af12f772dc7c5">ToDisable</a>, initialSet);</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> }</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> </div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <span class="keywordflow">if</span> (!candidates.toReEnableCandidates.empty())</div>
@@ -180,21 +180,21 @@ $(function() {
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> XRPL_ASSERT(</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> nidToKeyMap.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/container/unordered_map/contains.html">contains</a>(n),</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <span class="stringliteral">&quot;ripple::NegativeUNLVote::doVoting : found node to enable&quot;</span>);</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <a class="code hl_function" href="classripple_1_1NegativeUNLVote.html#af8a85a2853312bc4b1ff9852a2498bd4">addTx</a>(seq, nidToKeyMap.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/container/unordered_map/at.html">at</a>(n), <a class="code hl_enumvalue" href="classripple_1_1NegativeUNLVote.html#a4fc6405fdb02e58c350e175b6d58e7cfa50aab7a54a0d4bee43c5e3fcedd50d13">ToReEnable</a>, initialSet);</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <a class="code hl_function" href="classripple_1_1NegativeUNLVote.html#af8a85a2853312bc4b1ff9852a2498bd4">addTx</a>(<a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a>, nidToKeyMap.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/container/unordered_map/at.html">at</a>(n), <a class="code hl_enumvalue" href="classripple_1_1NegativeUNLVote.html#a4fc6405fdb02e58c350e175b6d58e7cfa50aab7a54a0d4bee43c5e3fcedd50d13">ToReEnable</a>, initialSet);</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> }</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> }</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span>}</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> </div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span><span class="keywordtype">void</span></div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"><a class="line" href="classripple_1_1NegativeUNLVote.html#af8a85a2853312bc4b1ff9852a2498bd4"> 111</a></span><a class="code hl_function" href="classripple_1_1NegativeUNLVote.html#af8a85a2853312bc4b1ff9852a2498bd4">NegativeUNLVote::addTx</a>(</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">LedgerIndex</a> seq,</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">LedgerIndex</a> <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a>,</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <a class="code hl_class" href="classripple_1_1PublicKey.html">PublicKey</a> <span class="keyword">const</span>&amp; vp,</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <a class="code hl_enumeration" href="classripple_1_1NegativeUNLVote.html#a4fc6405fdb02e58c350e175b6d58e7cf">NegativeUNLModify</a> modify,</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;SHAMap&gt;</a> <span class="keyword">const</span>&amp; initialSet)</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span>{</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <a class="code hl_class" href="classripple_1_1STTx.html">STTx</a> negUnlTx(ttUNL_MODIFY, [&amp;](<span class="keyword">auto</span>&amp; obj) {</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> obj.setFieldU8(sfUNLModifyDisabling, modify == <a class="code hl_enumvalue" href="classripple_1_1NegativeUNLVote.html#a4fc6405fdb02e58c350e175b6d58e7cfabe47f804b7bde80da32af12f772dc7c5">ToDisable</a> ? 1 : 0);</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> obj.setFieldU32(sfLedgerSequence, seq);</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> obj.setFieldU32(sfLedgerSequence, <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a>);</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> obj.setFieldVL(sfUNLModifyValidator, vp.<a class="code hl_function" href="classripple_1_1PublicKey.html#ae0bcc607176a440ec63a86bae5767036">slice</a>());</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> });</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> </div>
@@ -204,12 +204,12 @@ $(function() {
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <a class="code hl_enumvalue" href="namespaceripple.html#ae0356b1de00f841c554c830be509dd58a9b447756a7d7ddf4e828beeb38d079f6">SHAMapNodeType::tnTRANSACTION_NM</a>,</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <a class="code hl_function" href="namespaceripple.html#aa96b512548a1ae9fcd7493c52f19ce0f">make_shamapitem</a>(negUnlTx.getTransactionID(), s.slice())))</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> {</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</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#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) &lt;&lt; <span class="stringliteral">&quot;N-UNL: ledger seq=&quot;</span> &lt;&lt; seq</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</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#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) &lt;&lt; <span class="stringliteral">&quot;N-UNL: ledger seq=&quot;</span> &lt;&lt; <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a></div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> &lt;&lt; <span class="stringliteral">&quot;, add ttUNL_MODIFY tx failed&quot;</span>;</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> }</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <span class="keywordflow">else</span></div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> {</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</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#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;N-UNL: ledger seq=&quot;</span> &lt;&lt; seq</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</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#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;N-UNL: ledger seq=&quot;</span> &lt;&lt; <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a></div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> &lt;&lt; <span class="stringliteral">&quot;, add a ttUNL_MODIFY Tx with txID: &quot;</span></div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> &lt;&lt; negUnlTx.getTransactionID() &lt;&lt; <span class="stringliteral">&quot;, the validator to &quot;</span></div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> &lt;&lt; (modify == <a class="code hl_enumvalue" href="classripple_1_1NegativeUNLVote.html#a4fc6405fdb02e58c350e175b6d58e7cfabe47f804b7bde80da32af12f772dc7c5">ToDisable</a> ? <span class="stringliteral">&quot;disable: &quot;</span> : <span class="stringliteral">&quot;re-enable: &quot;</span>)</div>
@@ -250,21 +250,21 @@ $(function() {
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> </div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> <span class="comment">// Ask the validation container to keep enough validation message history</span></div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> <span class="comment">// for next time.</span></div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> <span class="keyword">auto</span> <span class="keyword">const</span> seq = prevLedger-&gt;info().seq + 1;</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> validations.<a class="code hl_function" href="classripple_1_1Validations.html#adcb502704e0d786d3a27d8be38a87916">setSeqToKeep</a>(seq - 1, seq + <a class="code hl_variable" href="namespaceripple.html#aec92d858e16db22aebce05698a4a444d">FLAG_LEDGER_INTERVAL</a>);</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> <span class="keyword">auto</span> <span class="keyword">const</span> <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a> = prevLedger-&gt;info().seq + 1;</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> validations.<a class="code hl_function" href="classripple_1_1Validations.html#adcb502704e0d786d3a27d8be38a87916">setSeqToKeep</a>(<a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a> - 1, <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a> + <a class="code hl_variable" href="namespaceripple.html#aec92d858e16db22aebce05698a4a444d">FLAG_LEDGER_INTERVAL</a>);</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> </div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> <span class="comment">// Find FLAG_LEDGER_INTERVAL (i.e. 256) previous ledger hashes</span></div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> <span class="keyword">auto</span> <span class="keyword">const</span> hashIndex = prevLedger-&gt;read(<a class="code hl_function" href="namespaceripple_1_1keylet.html#acda2d89a44551845c5be38291e5c9e8b">keylet::skip</a>());</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> <span class="keywordflow">if</span> (!hashIndex || !hashIndex-&gt;isFieldPresent(sfHashes))</div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> {</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</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#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;N-UNL: ledger &quot;</span> &lt;&lt; seq &lt;&lt; <span class="stringliteral">&quot; no history.&quot;</span>;</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</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#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;N-UNL: ledger &quot;</span> &lt;&lt; <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a> &lt;&lt; <span class="stringliteral">&quot; no history.&quot;</span>;</div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> <span class="keywordflow">return</span> {};</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> }</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> <span class="keyword">auto</span> <span class="keyword">const</span> ledgerAncestors = hashIndex-&gt;getFieldV256(sfHashes).value();</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> <span class="keyword">auto</span> <span class="keyword">const</span> numAncestors = ledgerAncestors.size();</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> <span class="keywordflow">if</span> (numAncestors &lt; <a class="code hl_variable" href="namespaceripple.html#aec92d858e16db22aebce05698a4a444d">FLAG_LEDGER_INTERVAL</a>)</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> {</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</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#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;N-UNL: ledger &quot;</span> &lt;&lt; seq</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</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#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;N-UNL: ledger &quot;</span> &lt;&lt; <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a></div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> &lt;&lt; <span class="stringliteral">&quot; not enough history. Can trace back only &quot;</span></div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> &lt;&lt; numAncestors &lt;&lt; <span class="stringliteral">&quot; ledgers.&quot;</span>;</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> <span class="keywordflow">return</span> {};</div>
@@ -282,7 +282,7 @@ $(function() {
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; <a class="code hl_variable" href="namespaceripple.html#aec92d858e16db22aebce05698a4a444d">FLAG_LEDGER_INTERVAL</a>; ++i)</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> {</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>&amp; v : validations.<a class="code hl_function" href="classripple_1_1Validations.html#aac16b1f1c7a92b8979af800ace0effd6">getTrustedForLedger</a>(</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> ledgerAncestors[numAncestors - 1 - i], seq - 2 - i))</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> ledgerAncestors[numAncestors - 1 - i], <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a> - 2 - i))</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> {</div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> <span class="keywordflow">if</span> (scoreTable.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/container/unordered_map/count.html">count</a>(v-&gt;getNodeID()))</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> ++scoreTable[v-&gt;getNodeID()];</div>
@@ -298,7 +298,7 @@ $(function() {
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> }();</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> <span class="keywordflow">if</span> (myValidationCount &lt; <a class="code hl_variable" href="classripple_1_1NegativeUNLVote.html#afd511e1daa58039d360430adf4043f0a">negativeUNLMinLocalValsToVote</a>)</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> {</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</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#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;N-UNL: ledger &quot;</span> &lt;&lt; seq</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</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#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;N-UNL: ledger &quot;</span> &lt;&lt; <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a></div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> &lt;&lt; <span class="stringliteral">&quot;. Local node only issued &quot;</span> &lt;&lt; myValidationCount</div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> &lt;&lt; <span class="stringliteral">&quot; validations in last &quot;</span> &lt;&lt; <a class="code hl_variable" href="namespaceripple.html#aec92d858e16db22aebce05698a4a444d">FLAG_LEDGER_INTERVAL</a></div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> &lt;&lt; <span class="stringliteral">&quot; ledgers.&quot;</span></div>
@@ -315,7 +315,7 @@ $(function() {
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> {</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> <span class="comment">// cannot happen because validations.getTrustedForLedger does not</span></div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> <span class="comment">// return multiple validations of the same ledger from a validator.</span></div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</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#a49b0713e65bb8e2c51b76fbf16252afe">error</a>()) &lt;&lt; <span class="stringliteral">&quot;N-UNL: ledger &quot;</span> &lt;&lt; seq &lt;&lt; <span class="stringliteral">&quot;. Local node issued &quot;</span></div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</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#a49b0713e65bb8e2c51b76fbf16252afe">error</a>()) &lt;&lt; <span class="stringliteral">&quot;N-UNL: ledger &quot;</span> &lt;&lt; <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a> &lt;&lt; <span class="stringliteral">&quot;. Local node issued &quot;</span></div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> &lt;&lt; myValidationCount &lt;&lt; <span class="stringliteral">&quot; validations in last &quot;</span></div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> &lt;&lt; <a class="code hl_variable" href="namespaceripple.html#aec92d858e16db22aebce05698a4a444d">FLAG_LEDGER_INTERVAL</a> &lt;&lt; <span class="stringliteral">&quot; ledgers. Too many!&quot;</span>;</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> <span class="keywordflow">return</span> {};</div>
@@ -399,7 +399,7 @@ $(function() {
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno"> 321</span> </div>
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno"> 322</span><span class="keywordtype">void</span></div>
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno"><a class="line" href="classripple_1_1NegativeUNLVote.html#af279cb391bcbed65e431f14d6322441c"> 323</a></span><a class="code hl_function" href="classripple_1_1NegativeUNLVote.html#af279cb391bcbed65e431f14d6322441c">NegativeUNLVote::newValidators</a>(</div>
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno"> 324</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">LedgerIndex</a> seq,</div>
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno"> 324</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">LedgerIndex</a> <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a>,</div>
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno"> 325</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/unordered_set.html">hash_set&lt;NodeID&gt;</a> <span class="keyword">const</span>&amp; nowTrusted)</div>
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno"> 326</span>{</div>
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno"> 327</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lock(<a class="code hl_variable" href="classripple_1_1NegativeUNLVote.html#aa8c381a7b9dd1ea9ac0c06e03b89ca35">mutex_</a>);</div>
@@ -408,20 +408,20 @@ $(function() {
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno"> 330</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="classripple_1_1NegativeUNLVote.html#ad06aac6b466a08700b51ab59c5200108">newValidators_</a>.find(n) == <a class="code hl_variable" href="classripple_1_1NegativeUNLVote.html#ad06aac6b466a08700b51ab59c5200108">newValidators_</a>.end())</div>
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno"> 331</span> {</div>
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno"> 332</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: add a new validator &quot;</span> &lt;&lt; n</div>
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno"> 333</span> &lt;&lt; <span class="stringliteral">&quot; at ledger seq=&quot;</span> &lt;&lt; seq;</div>
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno"> 334</span> <a class="code hl_variable" href="classripple_1_1NegativeUNLVote.html#ad06aac6b466a08700b51ab59c5200108">newValidators_</a>[n] = seq;</div>
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno"> 333</span> &lt;&lt; <span class="stringliteral">&quot; at ledger seq=&quot;</span> &lt;&lt; <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a>;</div>
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno"> 334</span> <a class="code hl_variable" href="classripple_1_1NegativeUNLVote.html#ad06aac6b466a08700b51ab59c5200108">newValidators_</a>[n] = <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a>;</div>
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno"> 335</span> }</div>
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno"> 336</span> }</div>
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno"> 337</span>}</div>
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno"> 338</span> </div>
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno"> 339</span><span class="keywordtype">void</span></div>
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno"><a class="line" href="classripple_1_1NegativeUNLVote.html#a715cdaf670c930941605e79e41f37a12"> 340</a></span><a class="code hl_function" href="classripple_1_1NegativeUNLVote.html#a715cdaf670c930941605e79e41f37a12">NegativeUNLVote::purgeNewValidators</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">LedgerIndex</a> seq)</div>
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno"><a class="line" href="classripple_1_1NegativeUNLVote.html#a715cdaf670c930941605e79e41f37a12"> 340</a></span><a class="code hl_function" href="classripple_1_1NegativeUNLVote.html#a715cdaf670c930941605e79e41f37a12">NegativeUNLVote::purgeNewValidators</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">LedgerIndex</a> <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a>)</div>
<div class="line"><a id="l00341" name="l00341"></a><span class="lineno"> 341</span>{</div>
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno"> 342</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lock(<a class="code hl_variable" href="classripple_1_1NegativeUNLVote.html#aa8c381a7b9dd1ea9ac0c06e03b89ca35">mutex_</a>);</div>
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno"> 343</span> <span class="keyword">auto</span> i = <a class="code hl_variable" href="classripple_1_1NegativeUNLVote.html#ad06aac6b466a08700b51ab59c5200108">newValidators_</a>.begin();</div>
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno"> 344</span> <span class="keywordflow">while</span> (i != <a class="code hl_variable" href="classripple_1_1NegativeUNLVote.html#ad06aac6b466a08700b51ab59c5200108">newValidators_</a>.end())</div>
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno"> 345</span> {</div>
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno"> 346</span> <span class="keywordflow">if</span> (seq - i-&gt;second &gt; <a class="code hl_variable" href="classripple_1_1NegativeUNLVote.html#ab62eededf03134ab139bed2a3e4712b2">newValidatorDisableSkip</a>)</div>
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno"> 346</span> <span class="keywordflow">if</span> (<a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a> - i-&gt;second &gt; <a class="code hl_variable" href="classripple_1_1NegativeUNLVote.html#ab62eededf03134ab139bed2a3e4712b2">newValidatorDisableSkip</a>)</div>
<div class="line"><a id="l00347" name="l00347"></a><span class="lineno"> 347</span> {</div>
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno"> 348</span> i = <a class="code hl_variable" href="classripple_1_1NegativeUNLVote.html#ad06aac6b466a08700b51ab59c5200108">newValidators_</a>.erase(i);</div>
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno"> 349</span> }</div>
@@ -479,7 +479,7 @@ $(function() {
<div class="ttc" id="afind_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/unordered_map/find.html">std::unordered_map::find</a></div><div class="ttdeci">T find(T... args)</div></div>
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div></div>
<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#l00188">Indexes.cpp:188</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#l00189">Indexes.cpp:189</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_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>
@@ -492,6 +492,7 @@ $(function() {
<div class="ttc" id="astructripple_1_1NegativeUNLVote_1_1Candidates_html"><div class="ttname"><a href="structripple_1_1NegativeUNLVote_1_1Candidates.html">ripple::NegativeUNLVote::Candidates</a></div><div class="ttdoc">UNLModify Tx candidates.</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8h_source.html#l00136">NegativeUNLVote.h:137</a></div></div>
<div class="ttc" id="astructripple_1_1NegativeUNLVote_1_1Candidates_html_a938109d6a0f59356dcc6e36588ce40a9"><div class="ttname"><a href="structripple_1_1NegativeUNLVote_1_1Candidates.html#a938109d6a0f59356dcc6e36588ce40a9">ripple::NegativeUNLVote::Candidates::toReEnableCandidates</a></div><div class="ttdeci">std::vector&lt; NodeID &gt; toReEnableCandidates</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8h_source.html#l00139">NegativeUNLVote.h:139</a></div></div>
<div class="ttc" id="astructripple_1_1NegativeUNLVote_1_1Candidates_html_afea2b484af350492a9d2a692afdbdc87"><div class="ttname"><a href="structripple_1_1NegativeUNLVote_1_1Candidates.html#afea2b484af350492a9d2a692afdbdc87">ripple::NegativeUNLVote::Candidates::toDisableCandidates</a></div><div class="ttdeci">std::vector&lt; NodeID &gt; toDisableCandidates</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8h_source.html#l00138">NegativeUNLVote.h:138</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1jtx_1_1seq_html"><div class="ttname"><a href="structripple_1_1test_1_1jtx_1_1seq.html">ripple::test::jtx::seq</a></div><div class="ttdoc">Set the sequence number on a JTx.</div><div class="ttdef"><b>Definition:</b> <a href="seq_8h_source.html#l00033">seq.h:34</a></div></div>
<div class="ttc" id="aunordered_map_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/unordered_map.html">std::unordered_map</a></div></div>
<div class="ttc" id="aunordered_set_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/unordered_set.html">std::unordered_set</a></div></div>
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></div></div>