This commit is contained in:
bthomee
2025-03-12 22:37:33 +00:00
parent 863da5c9e1
commit 7f0acfcddb
1732 changed files with 298086 additions and 297371 deletions

View File

@@ -100,47 +100,48 @@ $(function() {
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#include &lt;xrpld/app/misc/NetworkOPs.h&gt;</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include &lt;xrpld/core/Config.h&gt;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include &lt;xrpld/rpc/Context.h&gt;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include &lt;xrpl/protocol/ErrorCodes.h&gt;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include &lt;xrpl/protocol/jss.h&gt;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a>&gt;</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="namespaceripple.html#a07dd67952f9aad3b87dd9c774c954f32"> 33</a></span><a class="code hl_function" href="namespaceripple.html#a07dd67952f9aad3b87dd9c774c954f32">doLedgerAccept</a>(<a class="code hl_struct" href="structripple_1_1RPC_1_1JsonContext.html">RPC::JsonContext</a>&amp; context)</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span>{</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a> jvResult;</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keywordflow">if</span> (!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#a0c48dd5bcaef14e30e9ef5b96b0daa39">config</a>().<a class="code hl_function" href="classripple_1_1Config.html#a55cd8ef67ffbf6a137e0dd71bc8151c6">standalone</a>())</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> {</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> jvResult[jss::error] = <span class="stringliteral">&quot;notStandAlone&quot;</span>;</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> }</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keywordflow">else</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> {</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/unique_lock.html">std::unique_lock</a> lock{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#a6c1ad8cafc95cebce94ec09f5c4cafa7">getMasterMutex</a>()};</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> context.<a class="code hl_variable" href="structripple_1_1RPC_1_1Context.html#aabbcc8ad1953616f19dd1eeecccedfcd">netOps</a>.<a class="code hl_function" href="classripple_1_1NetworkOPs.html#adc30e2f12890d9cd5687139edf56b1f9">acceptLedger</a>();</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> jvResult[jss::ledger_current_index] =</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> context.<a class="code hl_variable" href="structripple_1_1RPC_1_1Context.html#a92c98828663b6b80d3eb15850ec6897a">ledgerMaster</a>.<a class="code hl_function" href="classripple_1_1LedgerMaster.html#ae1ced193783ee99e6935bf68d8eb7031">getCurrentLedgerIndex</a>();</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> }</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="keywordflow">return</span> jvResult;</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span>}</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span>} <span class="comment">// namespace ripple</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include &lt;xrpl/protocol/ErrorCodes.h&gt;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include &lt;xrpl/protocol/jss.h&gt;</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a>&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="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="namespaceripple.html#a07dd67952f9aad3b87dd9c774c954f32"> 34</a></span><a class="code hl_function" href="namespaceripple.html#a07dd67952f9aad3b87dd9c774c954f32">doLedgerAccept</a>(<a class="code hl_struct" href="structripple_1_1RPC_1_1JsonContext.html">RPC::JsonContext</a>&amp; context)</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span>{</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a> jvResult;</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <span class="keywordflow">if</span> (!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#a0c48dd5bcaef14e30e9ef5b96b0daa39">config</a>().<a class="code hl_function" href="classripple_1_1Config.html#a55cd8ef67ffbf6a137e0dd71bc8151c6">standalone</a>())</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> {</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> jvResult[jss::error] = <span class="stringliteral">&quot;notStandAlone&quot;</span>;</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> }</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="keywordflow">else</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> {</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/unique_lock.html">std::unique_lock</a> lock{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#a6c1ad8cafc95cebce94ec09f5c4cafa7">getMasterMutex</a>()};</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> context.<a class="code hl_variable" href="structripple_1_1RPC_1_1Context.html#aabbcc8ad1953616f19dd1eeecccedfcd">netOps</a>.<a class="code hl_function" href="classripple_1_1NetworkOPs.html#adc30e2f12890d9cd5687139edf56b1f9">acceptLedger</a>();</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> jvResult[jss::ledger_current_index] =</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> context.<a class="code hl_variable" href="structripple_1_1RPC_1_1Context.html#a92c98828663b6b80d3eb15850ec6897a">ledgerMaster</a>.<a class="code hl_function" href="classripple_1_1LedgerMaster.html#ae1ced193783ee99e6935bf68d8eb7031">getCurrentLedgerIndex</a>();</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> }</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="keywordflow">return</span> jvResult;</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span>}</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span>} <span class="comment">// namespace ripple</span></div>
<div class="ttc" id="aclassJson_1_1Value_html"><div class="ttname"><a href="classJson_1_1Value.html">Json::Value</a></div><div class="ttdoc">Represents a JSON value.</div><div class="ttdef"><b>Definition:</b> <a href="json__value_8h_source.html#l00147">json_value.h:148</a></div></div>
<div class="ttc" id="aclassripple_1_1Application_html_a0c48dd5bcaef14e30e9ef5b96b0daa39"><div class="ttname"><a href="classripple_1_1Application.html#a0c48dd5bcaef14e30e9ef5b96b0daa39">ripple::Application::config</a></div><div class="ttdeci">virtual Config &amp; config()=0</div></div>
<div class="ttc" id="aclassripple_1_1Application_html_a6c1ad8cafc95cebce94ec09f5c4cafa7"><div class="ttname"><a href="classripple_1_1Application.html#a6c1ad8cafc95cebce94ec09f5c4cafa7">ripple::Application::getMasterMutex</a></div><div class="ttdeci">virtual MutexType &amp; getMasterMutex()=0</div></div>
<div class="ttc" id="aclassripple_1_1Config_html_a55cd8ef67ffbf6a137e0dd71bc8151c6"><div class="ttname"><a href="classripple_1_1Config.html#a55cd8ef67ffbf6a137e0dd71bc8151c6">ripple::Config::standalone</a></div><div class="ttdeci">bool standalone() const</div><div class="ttdef"><b>Definition:</b> <a href="Config_8h_source.html#l00337">Config.h:337</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerMaster_html_ae1ced193783ee99e6935bf68d8eb7031"><div class="ttname"><a href="classripple_1_1LedgerMaster.html#ae1ced193783ee99e6935bf68d8eb7031">ripple::LedgerMaster::getCurrentLedgerIndex</a></div><div class="ttdeci">LedgerIndex getCurrentLedgerIndex()</div><div class="ttdef"><b>Definition:</b> <a href="LedgerMaster_8cpp_source.html#l00127">LedgerMaster.cpp:127</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerMaster_html_ae1ced193783ee99e6935bf68d8eb7031"><div class="ttname"><a href="classripple_1_1LedgerMaster.html#ae1ced193783ee99e6935bf68d8eb7031">ripple::LedgerMaster::getCurrentLedgerIndex</a></div><div class="ttdeci">LedgerIndex getCurrentLedgerIndex()</div><div class="ttdef"><b>Definition:</b> <a href="LedgerMaster_8cpp_source.html#l00128">LedgerMaster.cpp:128</a></div></div>
<div class="ttc" id="aclassripple_1_1NetworkOPs_html_adc30e2f12890d9cd5687139edf56b1f9"><div class="ttname"><a href="classripple_1_1NetworkOPs.html#adc30e2f12890d9cd5687139edf56b1f9">ripple::NetworkOPs::acceptLedger</a></div><div class="ttdeci">virtual std::uint32_t acceptLedger(std::optional&lt; std::chrono::milliseconds &gt; consensusDelay=std::nullopt)=0</div><div class="ttdoc">Accepts the current transaction tree, return the new ledger's sequence.</div></div>
<div class="ttc" id="amutex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</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_a07dd67952f9aad3b87dd9c774c954f32"><div class="ttname"><a href="namespaceripple.html#a07dd67952f9aad3b87dd9c774c954f32">ripple::doLedgerAccept</a></div><div class="ttdeci">Json::Value doLedgerAccept(RPC::JsonContext &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerAccept_8cpp_source.html#l00033">LedgerAccept.cpp:33</a></div></div>
<div class="ttc" id="astructripple_1_1RPC_1_1Context_html_a7878751d68ed7fd43c385913c5e6ff04"><div class="ttname"><a href="structripple_1_1RPC_1_1Context.html#a7878751d68ed7fd43c385913c5e6ff04">ripple::RPC::Context::app</a></div><div class="ttdeci">Application &amp; app</div><div class="ttdef"><b>Definition:</b> <a href="Context_8h_source.html#l00040">Context.h:40</a></div></div>
<div class="ttc" id="astructripple_1_1RPC_1_1Context_html_a92c98828663b6b80d3eb15850ec6897a"><div class="ttname"><a href="structripple_1_1RPC_1_1Context.html#a92c98828663b6b80d3eb15850ec6897a">ripple::RPC::Context::ledgerMaster</a></div><div class="ttdeci">LedgerMaster &amp; ledgerMaster</div><div class="ttdef"><b>Definition:</b> <a href="Context_8h_source.html#l00043">Context.h:43</a></div></div>
<div class="ttc" id="astructripple_1_1RPC_1_1Context_html_aabbcc8ad1953616f19dd1eeecccedfcd"><div class="ttname"><a href="structripple_1_1RPC_1_1Context.html#aabbcc8ad1953616f19dd1eeecccedfcd">ripple::RPC::Context::netOps</a></div><div class="ttdeci">NetworkOPs &amp; netOps</div><div class="ttdef"><b>Definition:</b> <a href="Context_8h_source.html#l00042">Context.h:42</a></div></div>
<div class="ttc" id="astructripple_1_1RPC_1_1JsonContext_html"><div class="ttname"><a href="structripple_1_1RPC_1_1JsonContext.html">ripple::RPC::JsonContext</a></div><div class="ttdef"><b>Definition:</b> <a href="Context_8h_source.html#l00051">Context.h:52</a></div></div>
<div class="ttc" id="anamespaceripple_html_a07dd67952f9aad3b87dd9c774c954f32"><div class="ttname"><a href="namespaceripple.html#a07dd67952f9aad3b87dd9c774c954f32">ripple::doLedgerAccept</a></div><div class="ttdeci">Json::Value doLedgerAccept(RPC::JsonContext &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerAccept_8cpp_source.html#l00034">LedgerAccept.cpp:34</a></div></div>
<div class="ttc" id="astructripple_1_1RPC_1_1Context_html_a7878751d68ed7fd43c385913c5e6ff04"><div class="ttname"><a href="structripple_1_1RPC_1_1Context.html#a7878751d68ed7fd43c385913c5e6ff04">ripple::RPC::Context::app</a></div><div class="ttdeci">Application &amp; app</div><div class="ttdef"><b>Definition:</b> <a href="Context_8h_source.html#l00041">Context.h:41</a></div></div>
<div class="ttc" id="astructripple_1_1RPC_1_1Context_html_a92c98828663b6b80d3eb15850ec6897a"><div class="ttname"><a href="structripple_1_1RPC_1_1Context.html#a92c98828663b6b80d3eb15850ec6897a">ripple::RPC::Context::ledgerMaster</a></div><div class="ttdeci">LedgerMaster &amp; ledgerMaster</div><div class="ttdef"><b>Definition:</b> <a href="Context_8h_source.html#l00044">Context.h:44</a></div></div>
<div class="ttc" id="astructripple_1_1RPC_1_1Context_html_aabbcc8ad1953616f19dd1eeecccedfcd"><div class="ttname"><a href="structripple_1_1RPC_1_1Context.html#aabbcc8ad1953616f19dd1eeecccedfcd">ripple::RPC::Context::netOps</a></div><div class="ttdeci">NetworkOPs &amp; netOps</div><div class="ttdef"><b>Definition:</b> <a href="Context_8h_source.html#l00043">Context.h:43</a></div></div>
<div class="ttc" id="astructripple_1_1RPC_1_1JsonContext_html"><div class="ttname"><a href="structripple_1_1RPC_1_1JsonContext.html">ripple::RPC::JsonContext</a></div><div class="ttdef"><b>Definition:</b> <a href="Context_8h_source.html#l00052">Context.h:53</a></div></div>
<div class="ttc" id="aunique_lock_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/unique_lock.html">std::unique_lock</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->