This commit is contained in:
bthomee
2025-09-18 08:15:26 -07:00
parent 566976e9d7
commit 099ba7da4d
500 changed files with 25758 additions and 25596 deletions

View File

@@ -107,11 +107,11 @@ $(document).ready(function() { init_codefold(0); });
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include &lt;xrpld/app/paths/TrustLine.h&gt;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include &lt;xrpld/app/rdb/RelationalDatabase.h&gt;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include &lt;xrpld/app/tx/detail/NFTokenUtils.h&gt;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include &lt;xrpld/ledger/View.h&gt;</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include &lt;xrpld/rpc/Context.h&gt;</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include &lt;xrpld/rpc/DeliveredAmount.h&gt;</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#include &lt;xrpld/rpc/detail/RPCHelpers.h&gt;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include &lt;xrpld/rpc/Context.h&gt;</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include &lt;xrpld/rpc/DeliveredAmount.h&gt;</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include &lt;xrpld/rpc/detail/RPCHelpers.h&gt;</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor">#include &lt;xrpl/ledger/View.h&gt;</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="preprocessor">#include &lt;xrpl/protocol/AccountID.h&gt;</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="preprocessor">#include &lt;xrpl/protocol/RPCErr.h&gt;</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="preprocessor">#include &lt;xrpl/protocol/nftPageMask.h&gt;</span></div>
@@ -1204,13 +1204,13 @@ $(document).ready(function() { init_codefold(0); });
<div class="line"><a id="l01076" name="l01076"></a><span class="lineno"> 1076</span> <span class="keyword">auto</span> <span class="keyword">const</span> j = context.<a class="code hl_variable" href="structripple_1_1RPC_1_1Context.html#a7878751d68ed7fd43c385913c5e6ff04">app</a>.<a class="code hl_function" href="classripple_1_1Application.html#a2897c28a5b5040e80e66f676d201d03f">journal</a>(<span class="stringliteral">&quot;RPCHandler&quot;</span>);</div>
<div class="line"><a id="l01077" name="l01077"></a><span class="lineno"> 1077</span> <span class="comment">// Try to get the hash of the desired ledger from the validated</span></div>
<div class="line"><a id="l01078" name="l01078"></a><span class="lineno"> 1078</span> <span class="comment">// ledger</span></div>
<div class="line"><a id="l01079" name="l01079"></a><span class="lineno"> 1079</span> <span class="keyword">auto</span> neededHash = <a class="code hl_function" href="namespaceripple.html#a4099618475b06c3fa5554a99178a8a59">hashOfSeq</a>(*ledger, ledgerIndex, j);</div>
<div class="line"><a id="l01079" name="l01079"></a><span class="lineno"> 1079</span> <span class="keyword">auto</span> neededHash = <a class="code hl_function" href="namespaceripple.html#a47922bf40fdc616ab0522d09c58e13df">hashOfSeq</a>(*ledger, ledgerIndex, j);</div>
<div class="line"><a id="l01080" name="l01080"></a><span class="lineno"> 1080</span> <span class="keywordflow">if</span> (!neededHash)</div>
<div class="line"><a id="l01081" name="l01081"></a><span class="lineno"> 1081</span> {</div>
<div class="line"><a id="l01082" name="l01082"></a><span class="lineno"> 1082</span> <span class="comment">// Find a ledger more likely to have the hash of the desired</span></div>
<div class="line"><a id="l01083" name="l01083"></a><span class="lineno"> 1083</span> <span class="comment">// ledger</span></div>
<div class="line"><a id="l01084" name="l01084"></a><span class="lineno"> 1084</span> <span class="keyword">auto</span> <span class="keyword">const</span> refIndex = <a class="code hl_function" href="namespaceripple.html#a276b9076d790b69ea4d9e13720a12ec8">getCandidateLedger</a>(ledgerIndex);</div>
<div class="line"><a id="l01085" name="l01085"></a><span class="lineno"> 1085</span> <span class="keyword">auto</span> refHash = <a class="code hl_function" href="namespaceripple.html#a4099618475b06c3fa5554a99178a8a59">hashOfSeq</a>(*ledger, refIndex, j);</div>
<div class="line"><a id="l01085" name="l01085"></a><span class="lineno"> 1085</span> <span class="keyword">auto</span> refHash = <a class="code hl_function" href="namespaceripple.html#a47922bf40fdc616ab0522d09c58e13df">hashOfSeq</a>(*ledger, refIndex, j);</div>
<div class="line"><a id="l01086" name="l01086"></a><span class="lineno"> 1086</span> XRPL_ASSERT(</div>
<div class="line"><a id="l01087" name="l01087"></a><span class="lineno"> 1087</span> refHash,</div>
<div class="line"><a id="l01088" name="l01088"></a><span class="lineno"> 1088</span> <span class="stringliteral">&quot;ripple::RPC::getLedgerByContext : nonzero ledger hash&quot;</span>);</div>
@@ -1245,7 +1245,7 @@ $(document).ready(function() { init_codefold(0); });
<div class="line"><a id="l01117" name="l01117"></a><span class="lineno"> 1117</span> <span class="keywordflow">return</span> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a>();</div>
<div class="line"><a id="l01118" name="l01118"></a><span class="lineno"> 1118</span> }</div>
<div class="line"><a id="l01119" name="l01119"></a><span class="lineno"> 1119</span> </div>
<div class="line"><a id="l01120" name="l01120"></a><span class="lineno"> 1120</span> neededHash = <a class="code hl_function" href="namespaceripple.html#a4099618475b06c3fa5554a99178a8a59">hashOfSeq</a>(*ledger, ledgerIndex, j);</div>
<div class="line"><a id="l01120" name="l01120"></a><span class="lineno"> 1120</span> neededHash = <a class="code hl_function" href="namespaceripple.html#a47922bf40fdc616ab0522d09c58e13df">hashOfSeq</a>(*ledger, ledgerIndex, j);</div>
<div class="line"><a id="l01121" name="l01121"></a><span class="lineno"> 1121</span> }</div>
<div class="line"><a id="l01122" name="l01122"></a><span class="lineno"> 1122</span> XRPL_ASSERT(</div>
<div class="line"><a id="l01123" name="l01123"></a><span class="lineno"> 1123</span> neededHash,</div>
@@ -1301,7 +1301,7 @@ $(document).ready(function() { init_codefold(0); });
<div class="ttc" id="aclassripple_1_1LedgerMaster_html_ae54f482cc23a2fad32a1d841e6b47e74"><div class="ttname"><a href="classripple_1_1LedgerMaster.html#ae54f482cc23a2fad32a1d841e6b47e74">ripple::LedgerMaster::getLedgerBySeq</a></div><div class="ttdeci">std::shared_ptr&lt; Ledger const &gt; getLedgerBySeq(std::uint32_t index)</div><div class="ttdef"><b>Definition</b> <a href="LedgerMaster_8cpp_source.html#l01706">LedgerMaster.cpp:1706</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerMaster_html_ae766ee72c3e4825d6c59be59f64c73c4"><div class="ttname"><a href="classripple_1_1LedgerMaster.html#ae766ee72c3e4825d6c59be59f64c73c4">ripple::LedgerMaster::getLedgerByHash</a></div><div class="ttdeci">std::shared_ptr&lt; Ledger const &gt; getLedgerByHash(uint256 const &amp;hash)</div><div class="ttdef"><b>Definition</b> <a href="LedgerMaster_8cpp_source.html#l01742">LedgerMaster.cpp:1742</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerMaster_html_af3eaa659ab184feed8b939836efeebcf"><div class="ttname"><a href="classripple_1_1LedgerMaster.html#af3eaa659ab184feed8b939836efeebcf">ripple::LedgerMaster::getValidLedgerIndex</a></div><div class="ttdeci">LedgerIndex getValidLedgerIndex()</div><div class="ttdef"><b>Definition</b> <a href="LedgerMaster_8cpp_source.html#l00129">LedgerMaster.cpp:129</a></div></div>
<div class="ttc" id="aclassripple_1_1ReadView_html"><div class="ttname"><a href="classripple_1_1ReadView.html">ripple::ReadView</a></div><div class="ttdoc">A view into a ledger.</div><div class="ttdef"><b>Definition</b> <a href="ReadView_8h_source.html#l00051">ReadView.h:52</a></div></div>
<div class="ttc" id="aclassripple_1_1ReadView_html"><div class="ttname"><a href="classripple_1_1ReadView.html">ripple::ReadView</a></div><div class="ttdoc">A view into a ledger.</div><div class="ttdef"><b>Definition</b> <a href="ReadView_8h_source.html#l00050">ReadView.h:51</a></div></div>
<div class="ttc" id="aclassripple_1_1ReadView_html_a0583a050ea7799ba331f6222a905f304"><div class="ttname"><a href="classripple_1_1ReadView.html#a0583a050ea7799ba331f6222a905f304">ripple::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>
<div class="ttc" id="aclassripple_1_1ReadView_html_a15b3629cee45ef3f5af4cef06f42e54a"><div class="ttname"><a href="classripple_1_1ReadView.html#a15b3629cee45ef3f5af4cef06f42e54a">ripple::ReadView::succ</a></div><div class="ttdeci">virtual std::optional&lt; key_type &gt; succ(key_type const &amp;key, std::optional&lt; key_type &gt; const &amp;last=std::nullopt) const =0</div><div class="ttdoc">Return the key of the next state item.</div></div>
<div class="ttc" id="aclassripple_1_1STLedgerEntry_html"><div class="ttname"><a href="classripple_1_1STLedgerEntry.html">ripple::STLedgerEntry</a></div><div class="ttdef"><b>Definition</b> <a href="STLedgerEntry_8h_source.html#l00031">STLedgerEntry.h:32</a></div></div>
@@ -1380,7 +1380,7 @@ $(document).ready(function() { init_codefold(0); });
<div class="ttc" id="anamespaceripple_html_a02fdc1af16f82fc44ffd3c2a60c4c083"><div class="ttname"><a href="namespaceripple.html#a02fdc1af16f82fc44ffd3c2a60c4c083">ripple::keyTypeFromString</a></div><div class="ttdeci">std::optional&lt; KeyType &gt; keyTypeFromString(std::string const &amp;s)</div><div class="ttdef"><b>Definition</b> <a href="KeyType_8h_source.html#l00034">KeyType.h:34</a></div></div>
<div class="ttc" id="anamespaceripple_html_a1bf8df553d36589191c8057c136cce03a6adf97f83acf6453d4a6a4b1070f3754"><div class="ttname"><a href="namespaceripple.html#a1bf8df553d36589191c8057c136cce03a6adf97f83acf6453d4a6a4b1070f3754">ripple::TokenType::None</a></div><div class="ttdeci">@ None</div></div>
<div class="ttc" id="anamespaceripple_html_a1bf8df553d36589191c8057c136cce03ab23f52a56f27cc97abe221ea3c5cd56c"><div class="ttname"><a href="namespaceripple.html#a1bf8df553d36589191c8057c136cce03ab23f52a56f27cc97abe221ea3c5cd56c">ripple::TokenType::AccountPublic</a></div><div class="ttdeci">@ AccountPublic</div></div>
<div class="ttc" id="anamespaceripple_html_a276b9076d790b69ea4d9e13720a12ec8"><div class="ttname"><a href="namespaceripple.html#a276b9076d790b69ea4d9e13720a12ec8">ripple::getCandidateLedger</a></div><div class="ttdeci">LedgerIndex getCandidateLedger(LedgerIndex requested)</div><div class="ttdoc">Find a ledger index from which we could easily get the requested ledger.</div><div class="ttdef"><b>Definition</b> <a href="View_8h_source.html#l00430">View.h:430</a></div></div>
<div class="ttc" id="anamespaceripple_html_a276b9076d790b69ea4d9e13720a12ec8"><div class="ttname"><a href="namespaceripple.html#a276b9076d790b69ea4d9e13720a12ec8">ripple::getCandidateLedger</a></div><div class="ttdeci">LedgerIndex getCandidateLedger(LedgerIndex requested)</div><div class="ttdoc">Find a ledger index from which we could easily get the requested ledger.</div><div class="ttdef"><b>Definition</b> <a href="View_8h_source.html#l00429">View.h:429</a></div></div>
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932">ripple::error_code_i</a></div><div class="ttdeci">error_code_i</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00040">ErrorCodes.h:40</a></div></div>
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a128bdc6241c00a1d4486399d304c2d28"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a128bdc6241c00a1d4486399d304c2d28">ripple::rpcNO_NETWORK</a></div><div class="ttdeci">@ rpcNO_NETWORK</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00066">ErrorCodes.h:66</a></div></div>
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a4fba57dbbed9bfaa196e1a0e0915dc8a"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a4fba57dbbed9bfaa196e1a0e0915dc8a">ripple::rpcACT_MALFORMED</a></div><div class="ttdeci">@ rpcACT_MALFORMED</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00090">ErrorCodes.h:90</a></div></div>
@@ -1394,7 +1394,7 @@ $(document).ready(function() { init_codefold(0); });
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932af301bbeaf5fcfb44db08132e6eae4ac2"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932af301bbeaf5fcfb44db08132e6eae4ac2">ripple::rpcNOT_SYNCED</a></div><div class="ttdeci">@ rpcNOT_SYNCED</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00067">ErrorCodes.h:67</a></div></div>
<div class="ttc" id="anamespaceripple_html_a32e911b97d6debe8943c81e6fdf59573"><div class="ttname"><a href="namespaceripple.html#a32e911b97d6debe8943c81e6fdf59573">ripple::generateKeyPair</a></div><div class="ttdeci">std::pair&lt; PublicKey, SecretKey &gt; generateKeyPair(KeyType type, Seed const &amp;seed)</div><div class="ttdoc">Generate a key pair deterministically.</div><div class="ttdef"><b>Definition</b> <a href="SecretKey_8cpp_source.html#l00369">SecretKey.cpp:369</a></div></div>
<div class="ttc" id="anamespaceripple_html_a356c68147333a9a48a344718038576d9"><div class="ttname"><a href="namespaceripple.html#a356c68147333a9a48a344718038576d9">ripple::uint256</a></div><div class="ttdeci">base_uint&lt; 256 &gt; uint256</div><div class="ttdef"><b>Definition</b> <a href="base__uint_8h_source.html#l00558">base_uint.h:558</a></div></div>
<div class="ttc" id="anamespaceripple_html_a4099618475b06c3fa5554a99178a8a59"><div class="ttname"><a href="namespaceripple.html#a4099618475b06c3fa5554a99178a8a59">ripple::hashOfSeq</a></div><div class="ttdeci">std::optional&lt; uint256 &gt; hashOfSeq(ReadView const &amp;ledger, LedgerIndex seq, beast::Journal journal)</div><div class="ttdoc">Return the hash of a ledger by sequence.</div><div class="ttdef"><b>Definition</b> <a href="View_8cpp_source.html#l00959">View.cpp:959</a></div></div>
<div class="ttc" id="anamespaceripple_html_a47922bf40fdc616ab0522d09c58e13df"><div class="ttname"><a href="namespaceripple.html#a47922bf40fdc616ab0522d09c58e13df">ripple::hashOfSeq</a></div><div class="ttdeci">std::optional&lt; uint256 &gt; hashOfSeq(ReadView const &amp;ledger, LedgerIndex seq, beast::Journal journal)</div><div class="ttdoc">Return the hash of a ledger by sequence.</div><div class="ttdef"><b>Definition</b> <a href="View_8cpp_source.html#l00958">View.cpp:958</a></div></div>
<div class="ttc" id="anamespaceripple_html_a614d8681c8dff84ac2257939751987c5"><div class="ttname"><a href="namespaceripple.html#a614d8681c8dff84ac2257939751987c5">ripple::calcAccountID</a></div><div class="ttdeci">AccountID calcAccountID(PublicKey const &amp;pk)</div><div class="ttdef"><b>Definition</b> <a href="AccountID_8cpp_source.html#l00168">AccountID.cpp:168</a></div></div>
<div class="ttc" id="anamespaceripple_html_a67869382f83fd55cf3096d2591a57b07"><div class="ttname"><a href="namespaceripple.html#a67869382f83fd55cf3096d2591a57b07">ripple::rpcError</a></div><div class="ttdeci">Json::Value rpcError(int iError)</div><div class="ttdef"><b>Definition</b> <a href="RPCErr_8cpp_source.html#l00031">RPCErr.cpp:31</a></div></div>
<div class="ttc" id="anamespaceripple_html_a6909f61053b6e084f46665fa9f4ee673"><div class="ttname"><a href="namespaceripple.html#a6909f61053b6e084f46665fa9f4ee673">ripple::isUnlimited</a></div><div class="ttdeci">bool isUnlimited(Role const &amp;role)</div><div class="ttdoc">ADMIN and IDENTIFIED roles shall have unlimited resources.</div><div class="ttdef"><b>Definition</b> <a href="Role_8cpp_source.html#l00125">Role.cpp:125</a></div></div>