mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-24 13:05:53 +00:00
deploy: 8a25f32824
This commit is contained in:
@@ -206,20 +206,20 @@ $(function() {
|
||||
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  {</div>
|
||||
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="keywordflow">try</span></div>
|
||||
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  {</div>
|
||||
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="comment">// Dereferencing the iterator can</span></div>
|
||||
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <span class="comment">// throw since it may be transformed.</span></div>
|
||||
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="keyword">auto</span> <span class="keyword">const</span> tx = *iter;</div>
|
||||
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="keyword">auto</span> <span class="keyword">const</span> txId = tx->getTransactionID();</div>
|
||||
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="keywordflow">if</span> (check.txExists(txId))</div>
|
||||
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keywordflow">continue</span>;</div>
|
||||
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <span class="keyword">auto</span> <span class="keyword">const</span> result =</div>
|
||||
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <a class="code" href="classripple_1_1OpenLedger.html#a0ad6659b8ba360e7cb8fbe94412e9ee2">apply_one</a>(app, view, tx, <span class="keyword">true</span>, flags, shouldRecover[txId], j);</div>
|
||||
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <span class="keywordflow">if</span> (result == Result::retry)</div>
|
||||
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  retries.<a class="code" href="classripple_1_1CanonicalTXSet.html#a1c2fa3073adf8f6405ec16dcdb9afd92">insert</a>(tx);</div>
|
||||
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  }</div>
|
||||
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <span class="keywordflow">catch</span> (<a class="codeRef" href="http://en.cppreference.com/w/cpp/error/exception.html">std::exception</a> <span class="keyword">const</span>&)</div>
|
||||
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  {</div>
|
||||
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  JLOG(j.<a class="code" href="classbeast_1_1Journal.html#a49b0713e65bb8e2c51b76fbf16252afe">error</a>()) << <span class="stringliteral">"Caught exception"</span>;</div>
|
||||
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="comment">// Dereferencing the iterator can throw since it may be transformed.</span></div>
|
||||
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <span class="keyword">auto</span> <span class="keyword">const</span> tx = *iter;</div>
|
||||
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="keyword">auto</span> <span class="keyword">const</span> txId = tx->getTransactionID();</div>
|
||||
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="keywordflow">if</span> (check.txExists(txId))</div>
|
||||
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="keywordflow">continue</span>;</div>
|
||||
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keyword">auto</span> <span class="keyword">const</span> result =</div>
|
||||
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <a class="code" href="classripple_1_1OpenLedger.html#a0ad6659b8ba360e7cb8fbe94412e9ee2">apply_one</a>(app, view, tx, <span class="keyword">true</span>, flags, shouldRecover[txId], j);</div>
|
||||
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <span class="keywordflow">if</span> (result == Result::retry)</div>
|
||||
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  retries.<a class="code" href="classripple_1_1CanonicalTXSet.html#a1c2fa3073adf8f6405ec16dcdb9afd92">insert</a>(tx);</div>
|
||||
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  }</div>
|
||||
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <span class="keywordflow">catch</span> (<a class="codeRef" href="http://en.cppreference.com/w/cpp/error/exception.html">std::exception</a> <span class="keyword">const</span>& e)</div>
|
||||
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  {</div>
|
||||
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  JLOG(j.<a class="code" href="classbeast_1_1Journal.html#a49b0713e65bb8e2c51b76fbf16252afe">error</a>())</div>
|
||||
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  << <span class="stringliteral">"OpenLedger::apply: Caught exception: "</span> << e.<a class="codeRef" href="http://en.cppreference.com/w/cpp/error/exception/what.html">what</a>();</div>
|
||||
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  }</div>
|
||||
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  }</div>
|
||||
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97abd936aff81db9087051d25a3e30e6e54">retry</a> = <span class="keyword">true</span>;</div>
|
||||
@@ -305,11 +305,11 @@ $(function() {
|
||||
<div class="ttc" id="aclassripple_1_1SHAMap_html"><div class="ttname"><a href="classripple_1_1SHAMap.html">ripple::SHAMap</a></div><div class="ttdoc">A SHAMap is both a radix tree with a fan-out of 16 and a Merkle tree.</div><div class="ttdef"><b>Definition:</b> <a href="SHAMap_8h_source.html#l00095">SHAMap.h:95</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a53f80df10254751781250aa20704e98f"><div class="ttname"><a href="namespaceripple.html#a53f80df10254751781250aa20704e98f">ripple::set</a></div><div class="ttdeci">bool set(T &target, std::string const &name, Section const &section)</div><div class="ttdoc">Set a value from a configuration Section If the named value is not found or doesn't parse as a T,...</div><div class="ttdef"><b>Definition:</b> <a href="BasicConfig_8h_source.html#l00313">BasicConfig.h:313</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1Journal_html_a49b0713e65bb8e2c51b76fbf16252afe"><div class="ttname"><a href="classbeast_1_1Journal.html#a49b0713e65bb8e2c51b76fbf16252afe">beast::Journal::error</a></div><div class="ttdeci">Stream error() const</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00333">Journal.h:333</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_af1ea8e3f1e47355b19068f429e230201"><div class="ttname"><a href="namespaceripple.html#af1ea8e3f1e47355b19068f429e230201">ripple::debugTxstr</a></div><div class="ttdeci">std::string debugTxstr(std::shared_ptr< STTx const > const &tx)</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00210">OpenLedger.cpp:210</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_af1ea8e3f1e47355b19068f429e230201"><div class="ttname"><a href="namespaceripple.html#af1ea8e3f1e47355b19068f429e230201">ripple::debugTxstr</a></div><div class="ttdeci">std::string debugTxstr(std::shared_ptr< STTx const > const &tx)</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00208">OpenLedger.cpp:208</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1Journal_html"><div class="ttname"><a href="classbeast_1_1Journal.html">beast::Journal</a></div><div class="ttdoc">A generic endpoint for log messages.</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00058">Journal.h:58</a></div></div>
|
||||
<div class="ttc" id="amap_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/map.html">std::map</a></div><div class="ttdoc">STL class.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1CanonicalTXSet_html_a1c2fa3073adf8f6405ec16dcdb9afd92"><div class="ttname"><a href="classripple_1_1CanonicalTXSet.html#a1c2fa3073adf8f6405ec16dcdb9afd92">ripple::CanonicalTXSet::insert</a></div><div class="ttdeci">void insert(std::shared_ptr< STTx const > const &txn)</div><div class="ttdef"><b>Definition:</b> <a href="CanonicalTXSet_8cpp_source.html#l00052">CanonicalTXSet.cpp:52</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a97e4b79eaa01694360e38723347ea344"><div class="ttname"><a href="namespaceripple.html#a97e4b79eaa01694360e38723347ea344">ripple::debugTostr</a></div><div class="ttdeci">std::string debugTostr(OrderedTxs const &set)</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00218">OpenLedger.cpp:218</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a97e4b79eaa01694360e38723347ea344"><div class="ttname"><a href="namespaceripple.html#a97e4b79eaa01694360e38723347ea344">ripple::debugTostr</a></div><div class="ttdeci">std::string debugTostr(OrderedTxs const &set)</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00216">OpenLedger.cpp:216</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a88144aac5696b3f33eccfaaed0aeb8ba"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a88144aac5696b3f33eccfaaed0aeb8ba">ripple::OpenLedger::empty</a></div><div class="ttdeci">bool empty() const</div><div class="ttdoc">Returns true if there are no transactions.</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00043">OpenLedger.cpp:43</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1CanonicalTXSet_html_a495b08dc4b911cd69f4193f8adb42b20"><div class="ttname"><a href="classripple_1_1CanonicalTXSet.html#a495b08dc4b911cd69f4193f8adb42b20">ripple::CanonicalTXSet::end</a></div><div class="ttdeci">const_iterator end() const</div><div class="ttdef"><b>Definition:</b> <a href="CanonicalTXSet_8h_source.html#l00148">CanonicalTXSet.h:148</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html"><div class="ttname"><a href="classripple_1_1OpenLedger.html">ripple::OpenLedger</a></div><div class="ttdoc">Represents the open ledger.</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8h_source.html#l00049">OpenLedger.h:49</a></div></div>
|
||||
@@ -321,11 +321,12 @@ $(function() {
|
||||
<div class="ttc" id="aclassripple_1_1Rules_html"><div class="ttname"><a href="classripple_1_1Rules.html">ripple::Rules</a></div><div class="ttdoc">Rules controlling protocol behavior.</div><div class="ttdef"><b>Definition:</b> <a href="ReadView_8h_source.html#l00131">ReadView.h:131</a></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="aclassripple_1_1OpenLedger_html_a96bb5c3c9dfae39b054eedc8d6026a97"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97">ripple::OpenLedger::Result</a></div><div class="ttdeci">Result</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8h_source.html#l00191">OpenLedger.h:191</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a778ee55e7d299457863870e12efdd4b6"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a778ee55e7d299457863870e12efdd4b6">ripple::OpenLedger::create</a></div><div class="ttdeci">std::shared_ptr< OpenView > create(Rules const &rules, std::shared_ptr< Ledger const > const &ledger)</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00167">OpenLedger.cpp:167</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a778ee55e7d299457863870e12efdd4b6"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a778ee55e7d299457863870e12efdd4b6">ripple::OpenLedger::create</a></div><div class="ttdeci">std::shared_ptr< OpenView > create(Rules const &rules, std::shared_ptr< Ledger const > const &ledger)</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00165">OpenLedger.cpp:165</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_afdd6c8e6da089ba764fda1a5ba0a0f9b"><div class="ttname"><a href="classripple_1_1OpenLedger.html#afdd6c8e6da089ba764fda1a5ba0a0f9b">ripple::OpenLedger::current_mutex_</a></div><div class="ttdeci">std::mutex current_mutex_</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8h_source.html#l00055">OpenLedger.h:55</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a0ad6659b8ba360e7cb8fbe94412e9ee2"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a0ad6659b8ba360e7cb8fbe94412e9ee2">ripple::OpenLedger::apply_one</a></div><div class="ttdeci">static Result apply_one(Application &app, OpenView &view, std::shared_ptr< STTx const > const &tx, bool retry, ApplyFlags flags, bool shouldRecover, beast::Journal j)</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00178">OpenLedger.cpp:178</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a0ad6659b8ba360e7cb8fbe94412e9ee2"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a0ad6659b8ba360e7cb8fbe94412e9ee2">ripple::OpenLedger::apply_one</a></div><div class="ttdeci">static Result apply_one(Application &app, OpenView &view, std::shared_ptr< STTx const > const &tx, bool retry, ApplyFlags flags, bool shouldRecover, beast::Journal j)</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00176">OpenLedger.cpp:176</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a7cef9403a2ac7b408703da38b91fa78d"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a7cef9403a2ac7b408703da38b91fa78d">ripple::OpenLedger::apply</a></div><div class="ttdeci">static void apply(Application &app, OpenView &view, ReadView const &check, FwdRange const &txs, OrderedTxs &retries, ApplyFlags flags, std::map< uint256, bool > &shouldRecover, beast::Journal j)</div><div class="ttdoc">Algorithm for applying transactions.</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8h_source.html#l00211">OpenLedger.h:211</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a05ada40b015a008ffd28668b8daf5808"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a05ada40b015a008ffd28668b8daf5808">ripple::OpenLedger::modify</a></div><div class="ttdeci">bool modify(modify_type const &f)</div><div class="ttdoc">Modify the open ledger.</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00057">OpenLedger.cpp:57</a></div></div>
|
||||
<div class="ttc" id="awhat_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/error/exception/what.html">std::exception::what</a></div><div class="ttdeci">T what(T... args)</div></div>
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by  <a href="http://www.doxygen.org/index.html">
|
||||
|
||||
Reference in New Issue
Block a user