This commit is contained in:
bthomee
2026-01-28 10:13:01 -08:00
parent feb9060dd0
commit 9368c0d563
5641 changed files with 403487 additions and 442352 deletions

View File

@@ -155,24 +155,22 @@ $(document).ready(function() { init_codefold(0); });
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span><a class="code hl_class" href="classxrpl_1_1Rules.html">Rules</a></div>
<div class="foldopen" id="foldopen00056" data-start="{" data-end="};">
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="classxrpl_1_1Rules.html#aec9e1d9c168349e4743d5b642136f0b6"> 56</a></span><a class="code hl_function" href="namespacexrpl.html#a3d480d47bcf3b12e8569c7d95e88e072">makeRulesGivenLedger</a>(</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <a class="code hl_class" href="classxrpl_1_1DigestAwareReadView.html">DigestAwareReadView</a> <span class="keyword">const</span>&amp; ledger,</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/unordered_set.html">std::unordered_set</a>&lt;<a class="code hl_class" href="classxrpl_1_1base__uint.html">uint256</a>, <a class="code hl_struct" href="structbeast_1_1uhash.html">beast::uhash&lt;&gt;</a>&gt; <span class="keyword">const</span>&amp; presets)</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span>{</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <a class="code hl_struct" href="structxrpl_1_1Keylet.html">Keylet</a> <span class="keyword">const</span> k = <a class="code hl_function" href="namespacexrpl_1_1keylet.html#a6bdf630bcfaefe8a4eca990f9192434d">keylet::amendments</a>();</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a> <a class="code hl_function" href="namespacexrpl.html#a253464fb8098fbe2438ad1badcf26565">digest</a> = ledger.<a class="code hl_function" href="classxrpl_1_1DigestAwareReadView.html#a7d12cead1582a53507cdfa7b9ab5569f">digest</a>(k.<a class="code hl_variable" href="structxrpl_1_1Keylet.html#a03cc2a78d194c2eb48ae173f0db3b22c">key</a>);</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="namespacexrpl.html#a253464fb8098fbe2438ad1badcf26565">digest</a>)</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> {</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="keyword">auto</span> <span class="keyword">const</span> sle = ledger.<a class="code hl_function" href="classxrpl_1_1ReadView.html#ae7286da5df8ee36f950cc43fd3a46806">read</a>(k);</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <span class="keywordflow">if</span> (sle)</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="keywordflow">return</span> <a class="code hl_class" href="classxrpl_1_1Rules.html">Rules</a>(presets, <a class="code hl_function" href="namespacexrpl.html#a253464fb8098fbe2438ad1badcf26565">digest</a>, sle-&gt;getFieldV256(sfAmendments));</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> }</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="keywordflow">return</span> <a class="code hl_class" href="classxrpl_1_1Rules.html">Rules</a>(presets);</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span>}</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="classxrpl_1_1Rules.html#aec9e1d9c168349e4743d5b642136f0b6"> 56</a></span><a class="code hl_function" href="namespacexrpl.html#a3d480d47bcf3b12e8569c7d95e88e072">makeRulesGivenLedger</a>(<a class="code hl_class" href="classxrpl_1_1DigestAwareReadView.html">DigestAwareReadView</a> <span class="keyword">const</span>&amp; ledger, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/unordered_set.html">std::unordered_set</a>&lt;<a class="code hl_class" href="classxrpl_1_1base__uint.html">uint256</a>, <a class="code hl_struct" href="structbeast_1_1uhash.html">beast::uhash&lt;&gt;</a>&gt; <span class="keyword">const</span>&amp; presets)</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span>{</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <a class="code hl_struct" href="structxrpl_1_1Keylet.html">Keylet</a> <span class="keyword">const</span> k = <a class="code hl_function" href="namespacexrpl_1_1keylet.html#a6bdf630bcfaefe8a4eca990f9192434d">keylet::amendments</a>();</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a> <a class="code hl_function" href="namespacexrpl.html#a253464fb8098fbe2438ad1badcf26565">digest</a> = ledger.<a class="code hl_function" href="classxrpl_1_1DigestAwareReadView.html#a7d12cead1582a53507cdfa7b9ab5569f">digest</a>(k.<a class="code hl_variable" href="structxrpl_1_1Keylet.html#a03cc2a78d194c2eb48ae173f0db3b22c">key</a>);</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="namespacexrpl.html#a253464fb8098fbe2438ad1badcf26565">digest</a>)</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> {</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keyword">auto</span> <span class="keyword">const</span> sle = ledger.<a class="code hl_function" href="classxrpl_1_1ReadView.html#ae7286da5df8ee36f950cc43fd3a46806">read</a>(k);</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="keywordflow">if</span> (sle)</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="keywordflow">return</span> <a class="code hl_class" href="classxrpl_1_1Rules.html">Rules</a>(presets, <a class="code hl_function" href="namespacexrpl.html#a253464fb8098fbe2438ad1badcf26565">digest</a>, sle-&gt;getFieldV256(sfAmendments));</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> }</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="keywordflow">return</span> <a class="code hl_class" href="classxrpl_1_1Rules.html">Rules</a>(presets);</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span>}</div>
</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> </div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span>} <span class="comment">// namespace xrpl</span></div>
<div class="ttc" id="aclassxrpl_1_1DigestAwareReadView_html"><div class="ttname"><a href="classxrpl_1_1DigestAwareReadView.html">xrpl::DigestAwareReadView</a></div><div class="ttdoc">ReadView that associates keys with digests.</div><div class="ttdef"><b>Definition</b> <a href="ReadView_8h_source.html#l00235">ReadView.h:236</a></div></div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> </div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span>} <span class="comment">// namespace xrpl</span></div>
<div class="ttc" id="aclassxrpl_1_1DigestAwareReadView_html"><div class="ttname"><a href="classxrpl_1_1DigestAwareReadView.html">xrpl::DigestAwareReadView</a></div><div class="ttdoc">ReadView that associates keys with digests.</div><div class="ttdef"><b>Definition</b> <a href="ReadView_8h_source.html#l00229">ReadView.h:230</a></div></div>
<div class="ttc" id="aclassxrpl_1_1DigestAwareReadView_html_a7d12cead1582a53507cdfa7b9ab5569f"><div class="ttname"><a href="classxrpl_1_1DigestAwareReadView.html#a7d12cead1582a53507cdfa7b9ab5569f">xrpl::DigestAwareReadView::digest</a></div><div class="ttdeci">virtual std::optional&lt; digest_type &gt; digest(key_type const &amp;key) const =0</div><div class="ttdoc">Return the digest associated with the key.</div></div>
<div class="ttc" id="aclassxrpl_1_1ReadView_html"><div class="ttname"><a href="classxrpl_1_1ReadView.html">xrpl::ReadView</a></div><div class="ttdoc">A view into a ledger.</div><div class="ttdef"><b>Definition</b> <a href="ReadView_8h_source.html#l00031">ReadView.h:32</a></div></div>
<div class="ttc" id="aclassxrpl_1_1ReadView_html_ae7286da5df8ee36f950cc43fd3a46806"><div class="ttname"><a href="classxrpl_1_1ReadView.html#ae7286da5df8ee36f950cc43fd3a46806">xrpl::ReadView::read</a></div><div class="ttdeci">virtual std::shared_ptr&lt; SLE const &gt; read(Keylet const &amp;k) const =0</div><div class="ttdoc">Return the state item associated with a key.</div></div>
@@ -180,9 +178,9 @@ $(document).ready(function() { init_codefold(0); });
<div class="ttc" id="aclassxrpl_1_1Rules_html_a73f76d3d84e557cb297bc0322abb31be"><div class="ttname"><a href="classxrpl_1_1Rules.html#a73f76d3d84e557cb297bc0322abb31be">xrpl::Rules::makeRulesGivenLedger</a></div><div class="ttdeci">friend Rules makeRulesGivenLedger(DigestAwareReadView const &amp;ledger, Rules const &amp;current)</div><div class="ttdef"><b>Definition</b> <a href="ReadView_8cpp_source.html#l00050">ReadView.cpp:50</a></div></div>
<div class="ttc" id="aclassxrpl_1_1base__uint_html"><div class="ttname"><a href="classxrpl_1_1base__uint.html">xrpl::base_uint&lt; 256 &gt;</a></div></div>
<div class="ttc" id="aclassxrpl_1_1detail_1_1ReadViewFwdRange_1_1iterator_html"><div class="ttname"><a href="classxrpl_1_1detail_1_1ReadViewFwdRange_1_1iterator.html">xrpl::detail::ReadViewFwdRange::iterator</a></div><div class="ttdef"><b>Definition</b> <a href="ReadViewFwdRange_8h_source.html#l00057">ReadViewFwdRange.h:58</a></div></div>
<div class="ttc" id="anamespacexrpl_1_1keylet_html_a6bdf630bcfaefe8a4eca990f9192434d"><div class="ttname"><a href="namespacexrpl_1_1keylet.html#a6bdf630bcfaefe8a4eca990f9192434d">xrpl::keylet::amendments</a></div><div class="ttdeci">Keylet const &amp; amendments() noexcept</div><div class="ttdoc">The index of the amendment table.</div><div class="ttdef"><b>Definition</b> <a href="Indexes_8cpp_source.html#l00196">Indexes.cpp:196</a></div></div>
<div class="ttc" id="anamespacexrpl_1_1keylet_html_a6bdf630bcfaefe8a4eca990f9192434d"><div class="ttname"><a href="namespacexrpl_1_1keylet.html#a6bdf630bcfaefe8a4eca990f9192434d">xrpl::keylet::amendments</a></div><div class="ttdeci">Keylet const &amp; amendments() noexcept</div><div class="ttdoc">The index of the amendment table.</div><div class="ttdef"><b>Definition</b> <a href="Indexes_8cpp_source.html#l00187">Indexes.cpp:187</a></div></div>
<div class="ttc" id="anamespacexrpl_html"><div class="ttname"><a href="namespacexrpl.html">xrpl</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#l00006">algorithm.h:6</a></div></div>
<div class="ttc" id="anamespacexrpl_html_a253464fb8098fbe2438ad1badcf26565"><div class="ttname"><a href="namespacexrpl.html#a253464fb8098fbe2438ad1badcf26565">xrpl::digest</a></div><div class="ttdeci">static Hasher::result_type digest(void const *data, std::size_t size) noexcept</div><div class="ttdef"><b>Definition</b> <a href="tokens_8cpp_source.html#l00138">tokens.cpp:138</a></div></div>
<div class="ttc" id="anamespacexrpl_html_a253464fb8098fbe2438ad1badcf26565"><div class="ttname"><a href="namespacexrpl.html#a253464fb8098fbe2438ad1badcf26565">xrpl::digest</a></div><div class="ttdeci">static Hasher::result_type digest(void const *data, std::size_t size) noexcept</div><div class="ttdef"><b>Definition</b> <a href="tokens_8cpp_source.html#l00137">tokens.cpp:137</a></div></div>
<div class="ttc" id="anamespacexrpl_html_a3d480d47bcf3b12e8569c7d95e88e072"><div class="ttname"><a href="namespacexrpl.html#a3d480d47bcf3b12e8569c7d95e88e072">xrpl::makeRulesGivenLedger</a></div><div class="ttdeci">Rules makeRulesGivenLedger(DigestAwareReadView const &amp;ledger, Rules const &amp;current)</div><div class="ttdef"><b>Definition</b> <a href="ReadView_8cpp_source.html#l00050">ReadView.cpp:50</a></div></div>
<div class="ttc" id="anamespacexrpl_html_a75da7d88563def930b866cd64dd96f06a43b5c9175984c071f30b873fdce0a000"><div class="ttname"><a href="namespacexrpl.html#a75da7d88563def930b866cd64dd96f06a43b5c9175984c071f30b873fdce0a000">xrpl::ValStatus::current</a></div><div class="ttdeci">@ current</div><div class="ttdoc">This was a new validation and was added.</div></div>
<div class="ttc" id="aoptional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a></div></div>