mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 19:45:53 +00:00
deploy: 020b285808
This commit is contained in:
329
OpenLedger_8h_source.html
Normal file
329
OpenLedger_8h_source.html
Normal file
@@ -0,0 +1,329 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.17"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>rippled: OpenLedger.h Source File</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="search/search.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">rippled
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.17 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="menudata.js"></script>
|
||||
<script type="text/javascript" src="menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(function() {
|
||||
initMenu('',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
<div id="main-nav"></div>
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="dir_df9c78dcf3f59a33b12284f95992a64b.html">ripple</a></li><li class="navelem"><a class="el" href="dir_9f69212e4c6e2ca9ec5ab59cd7b6275c.html">app</a></li><li class="navelem"><a class="el" href="dir_796f40347441ba166e244d2eadcd4ae1.html">ledger</a></li> </ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">OpenLedger.h</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">/*</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> This file is part of rippled: https://github.com/ripple/rippled</span></div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> Copyright (c) 2012, 2013 Ripple Labs Inc.</span></div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> Permission to use, copy, modify, and/or distribute this software for any</span></div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> purpose with or without fee is hereby granted, provided that the above</span></div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> copyright notice and this permission notice appear in all copies.</span></div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR</span></div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN</span></div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF</span></div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">*/</span></div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">//==============================================================================</span></div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#ifndef RIPPLE_APP_LEDGER_OPENLEDGER_H_INCLUDED</span></div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#define RIPPLE_APP_LEDGER_OPENLEDGER_H_INCLUDED</span></div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  </div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <ripple/app/ledger/Ledger.h></span></div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <ripple/ledger/CachedSLEs.h></span></div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <ripple/ledger/OpenView.h></span></div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <ripple/app/misc/CanonicalTXSet.h></span></div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <ripple/basics/Log.h></span></div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <ripple/basics/UnorderedContainers.h></span></div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <ripple/core/Config.h></span></div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <ripple/beast/utility/Journal.h></span></div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/cassert.html">cassert</a>></span></div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a>></span></div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  </div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  </div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment">// How many total extra passes we make</span></div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment">// We must ensure we make at least one non-retriable pass</span></div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#define LEDGER_TOTAL_PASSES 3</span></div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  </div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment">// How many extra retry passes we</span></div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="comment">// make if the previous retry pass made changes</span></div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="preprocessor">#define LEDGER_RETRY_PASSES 1</span></div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  </div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="namespaceripple.html#aff5a6e33cede2a8fa7303d84cce996ac"> 44</a></span> <span class="keyword">using</span> <a class="code" href="classripple_1_1CanonicalTXSet.html">OrderedTxs</a> = <a class="code" href="classripple_1_1CanonicalTXSet.html">CanonicalTXSet</a>;</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  </div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classripple_1_1OpenLedger.html"> 49</a></span> <span class="keyword">class </span><a class="code" href="classripple_1_1OpenLedger.html">OpenLedger</a></div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> {</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classripple_1_1OpenLedger.html#a02d323b2b1ad7d9f713c3d3bb6fea649"> 52</a></span>  <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> <span class="keyword">const</span> <a class="code" href="classripple_1_1OpenLedger.html#a02d323b2b1ad7d9f713c3d3bb6fea649">j_</a>;</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classripple_1_1OpenLedger.html#a45ea81952cd667f5e109a173db763d3c"> 53</a></span>  <a class="code" href="classripple_1_1CachedSLEs.html">CachedSLEs</a>& <a class="code" href="classripple_1_1OpenLedger.html#a45ea81952cd667f5e109a173db763d3c">cache_</a>;</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classripple_1_1OpenLedger.html#a918f3adba0e6acb5dd1b32e73061588e"> 54</a></span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a> <span class="keyword">mutable</span> <a class="code" href="classripple_1_1OpenLedger.html#a918f3adba0e6acb5dd1b32e73061588e">modify_mutex_</a>;</div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classripple_1_1OpenLedger.html#afdd6c8e6da089ba764fda1a5ba0a0f9b"> 55</a></span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a> <span class="keyword">mutable</span> <a class="code" href="classripple_1_1OpenLedger.html#afdd6c8e6da089ba764fda1a5ba0a0f9b">current_mutex_</a>;</div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classripple_1_1OpenLedger.html#ab7f4326cb3cb4aa865d2cd9a930a7641"> 56</a></span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<OpenView const></a> <a class="code" href="classripple_1_1OpenLedger.html#ab7f4326cb3cb4aa865d2cd9a930a7641">current_</a>;</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  </div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keyword">using</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">modify_type</a> = <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a><</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classripple_1_1OpenLedger.html#a6d27d60cdd789d632e8d5cc2a9ff9324"> 71</a></span>  bool(<a class="code" href="classripple_1_1OpenView.html">OpenView</a>&, <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a>)>;</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  </div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <a class="code" href="classripple_1_1OpenLedger.html#a83bc97098814823939ed94c547a257f4">OpenLedger</a>() = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <a class="code" href="classripple_1_1OpenLedger.html#a83bc97098814823939ed94c547a257f4">OpenLedger</a> (<a class="code" href="classripple_1_1OpenLedger.html">OpenLedger</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="classripple_1_1OpenLedger.html">OpenLedger</a>& <a class="code" href="classripple_1_1OpenLedger.html#a04fd027db8c14138d0ccce4ea131d59c">operator= </a>(<a class="code" href="classripple_1_1OpenLedger.html">OpenLedger</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  </div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keyword">explicit</span></div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <a class="code" href="classripple_1_1OpenLedger.html#a83bc97098814823939ed94c547a257f4">OpenLedger</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a><</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <a class="code" href="classripple_1_1Ledger.html">Ledger</a> <span class="keyword">const</span>> <span class="keyword">const</span>& ledger,</div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <a class="code" href="classripple_1_1CachedSLEs.html">CachedSLEs</a>& cache,</div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> journal);</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  </div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <a class="code" href="classripple_1_1OpenLedger.html#a88144aac5696b3f33eccfaaed0aeb8ba">empty</a>() <span class="keyword">const</span>;</div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  </div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<OpenView const></a></div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <a class="code" href="classripple_1_1OpenLedger.html#abb724d61223be6a608b28947bd2e2236">current</a>() <span class="keyword">const</span>;</div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  </div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <a class="code" href="classripple_1_1OpenLedger.html#a05ada40b015a008ffd28668b8daf5808">modify</a> (<a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">modify_type</a> <span class="keyword">const</span>& f);</div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  </div>
|
||||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <a class="code" href="classripple_1_1OpenLedger.html#a3b20a6007626da5a1d79d1213924cb72">accept</a> (<a class="code" href="classripple_1_1Application.html">Application</a>& app, <a class="code" href="classripple_1_1Rules.html">Rules</a> <span class="keyword">const</span>& rules,</div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Ledger const></a> <span class="keyword">const</span>& ledger,</div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <a class="code" href="classripple_1_1CanonicalTXSet.html">OrderedTxs</a> <span class="keyword">const</span>& locals, <span class="keywordtype">bool</span> retriesFirst,</div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <a class="code" href="classripple_1_1CanonicalTXSet.html">OrderedTxs</a>& retries, <a class="code" href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6e">ApplyFlags</a> flags,</div>
|
||||
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>& suffix = <span class="stringliteral">""</span>,</div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">modify_type</a> <span class="keyword">const</span>& f = {});</div>
|
||||
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  </div>
|
||||
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keyword">template</span> <<span class="keyword">class</span> FwdRange></div>
|
||||
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keyword">static</span></div>
|
||||
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <a class="code" href="classripple_1_1OpenLedger.html#a7cef9403a2ac7b408703da38b91fa78d">apply</a> (<a class="code" href="classripple_1_1Application.html">Application</a>& app, <a class="code" href="classripple_1_1OpenView.html">OpenView</a>& view,</div>
|
||||
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <a class="code" href="classripple_1_1ReadView.html">ReadView</a> <span class="keyword">const</span>& check, FwdRange <span class="keyword">const</span>& txs,</div>
|
||||
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <a class="code" href="classripple_1_1CanonicalTXSet.html">OrderedTxs</a>& retries, <a class="code" href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6e">ApplyFlags</a> flags,</div>
|
||||
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map<uint256, bool></a>& shouldRecover,</div>
|
||||
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> j);</div>
|
||||
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  </div>
|
||||
<div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97"> 185</a></span>  <span class="keyword">enum</span> <a class="code" href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97">Result</a></div>
|
||||
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  {</div>
|
||||
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97a844e5b8d8fa1068931e454f4b9ef0f30"> 187</a></span>  <a class="code" href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97a844e5b8d8fa1068931e454f4b9ef0f30">success</a>,</div>
|
||||
<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97ab1bdfba01dc2e495ad5658f24d8db566"> 188</a></span>  <a class="code" href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97ab1bdfba01dc2e495ad5658f24d8db566">failure</a>,</div>
|
||||
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97abd936aff81db9087051d25a3e30e6e54"> 189</a></span>  <a class="code" href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97abd936aff81db9087051d25a3e30e6e54">retry</a></div>
|
||||
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  };</div>
|
||||
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  </div>
|
||||
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<OpenView></a></div>
|
||||
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <a class="code" href="classripple_1_1OpenLedger.html#a778ee55e7d299457863870e12efdd4b6">create</a> (<a class="code" href="classripple_1_1Rules.html">Rules</a> <span class="keyword">const</span>& rules,</div>
|
||||
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Ledger const></a> <span class="keyword">const</span>& ledger);</div>
|
||||
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  </div>
|
||||
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keyword">static</span></div>
|
||||
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <a class="code" href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97">Result</a></div>
|
||||
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <a class="code" href="classripple_1_1OpenLedger.html#a0ad6659b8ba360e7cb8fbe94412e9ee2">apply_one</a> (<a class="code" href="classripple_1_1Application.html">Application</a>& app, <a class="code" href="classripple_1_1OpenView.html">OpenView</a>& view,</div>
|
||||
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr< STTx const></a> <span class="keyword">const</span>& tx,</div>
|
||||
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97abd936aff81db9087051d25a3e30e6e54">retry</a>, <a class="code" href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6e">ApplyFlags</a> flags,</div>
|
||||
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keywordtype">bool</span> shouldRecover, <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> j);</div>
|
||||
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> };</div>
|
||||
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  </div>
|
||||
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
||||
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  </div>
|
||||
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="keyword">template</span> <<span class="keyword">class</span> FwdRange></div>
|
||||
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="classripple_1_1OpenLedger.html#a7cef9403a2ac7b408703da38b91fa78d"> 208</a></span> <a class="code" href="classripple_1_1OpenLedger.html#a7cef9403a2ac7b408703da38b91fa78d">OpenLedger::apply</a> (<a class="code" href="classripple_1_1Application.html">Application</a>& app, <a class="code" href="classripple_1_1OpenView.html">OpenView</a>& view,</div>
|
||||
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <a class="code" href="classripple_1_1ReadView.html">ReadView</a> <span class="keyword">const</span>& check, FwdRange <span class="keyword">const</span>& txs,</div>
|
||||
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <a class="code" href="classripple_1_1CanonicalTXSet.html">OrderedTxs</a>& retries, <a class="code" href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6e">ApplyFlags</a> flags,</div>
|
||||
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map<uint256, bool></a>& shouldRecover,</div>
|
||||
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> j)</div>
|
||||
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> {</div>
|
||||
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> iter = txs.begin();</div>
|
||||
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  iter != txs.end(); ++iter)</div>
|
||||
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  {</div>
|
||||
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keywordflow">try</span></div>
|
||||
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  {</div>
|
||||
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="comment">// Dereferencing the iterator can</span></div>
|
||||
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="comment">// throw since it may be transformed.</span></div>
|
||||
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="keyword">auto</span> <span class="keyword">const</span> tx = *iter;</div>
|
||||
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="keyword">auto</span> <span class="keyword">const</span> txId = tx->getTransactionID();</div>
|
||||
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="keywordflow">if</span> (check.txExists(txId))</div>
|
||||
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="keywordflow">continue</span>;</div>
|
||||
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keyword">auto</span> <span class="keyword">const</span> result = <a class="code" href="classripple_1_1OpenLedger.html#a0ad6659b8ba360e7cb8fbe94412e9ee2">apply_one</a>(app, view,</div>
|
||||
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  tx, <span class="keyword">true</span>, flags, shouldRecover[txId], j);</div>
|
||||
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="keywordflow">if</span> (result == Result::retry)</div>
|
||||
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  retries.<a class="code" href="classripple_1_1CanonicalTXSet.html#a1c2fa3073adf8f6405ec16dcdb9afd92">insert</a>(tx);</div>
|
||||
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  }</div>
|
||||
<div class="line"><a name="l00230"></a><span class="lineno"> 230</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="l00231"></a><span class="lineno"> 231</span>  {</div>
|
||||
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  JLOG(j.<a class="code" href="classbeast_1_1Journal.html#a49b0713e65bb8e2c51b76fbf16252afe">error</a>()) <<</div>
|
||||
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <span class="stringliteral">"Caught exception"</span>;</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>  }</div>
|
||||
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97abd936aff81db9087051d25a3e30e6e54">retry</a> = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> pass = 0;</div>
|
||||
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  pass < LEDGER_TOTAL_PASSES;</div>
|
||||
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  ++pass)</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">int</span> changes = 0;</div>
|
||||
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <span class="keyword">auto</span> iter = retries.<a class="code" href="classripple_1_1CanonicalTXSet.html#a867d7654e3ed11b5d7047f776a02fb44">begin</a>();</div>
|
||||
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <span class="keywordflow">while</span> (iter != retries.<a class="code" href="classripple_1_1CanonicalTXSet.html#a495b08dc4b911cd69f4193f8adb42b20">end</a>())</div>
|
||||
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  {</div>
|
||||
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keywordflow">switch</span> (<a class="code" href="classripple_1_1OpenLedger.html#a0ad6659b8ba360e7cb8fbe94412e9ee2">apply_one</a>(app, view,</div>
|
||||
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  iter->second, <a class="code" href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97abd936aff81db9087051d25a3e30e6e54">retry</a>, flags,</div>
|
||||
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  shouldRecover[iter->second->getTransactionID()], j))</div>
|
||||
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  {</div>
|
||||
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <span class="keywordflow">case</span> Result::success:</div>
|
||||
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  ++changes;</div>
|
||||
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  [[fallthrough]];</div>
|
||||
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <span class="keywordflow">case</span> Result::failure:</div>
|
||||
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  iter = retries.<a class="code" href="classripple_1_1CanonicalTXSet.html#aa4807d9612f7e9874d9d6dac5c650de1">erase</a> (iter);</div>
|
||||
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="keywordflow">break</span>;</div>
|
||||
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <span class="keywordflow">case</span> Result::retry:</div>
|
||||
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  ++iter;</div>
|
||||
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  }</div>
|
||||
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  }</div>
|
||||
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="comment">// A non-retry pass made no changes</span></div>
|
||||
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <span class="keywordflow">if</span> (! changes && ! <a class="code" href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97abd936aff81db9087051d25a3e30e6e54">retry</a>)</div>
|
||||
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <span class="keywordflow">return</span>;</div>
|
||||
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  <span class="comment">// Stop retriable passes</span></div>
|
||||
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <span class="keywordflow">if</span> (! changes || (pass >= LEDGER_RETRY_PASSES))</div>
|
||||
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <a class="code" href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97abd936aff81db9087051d25a3e30e6e54">retry</a> = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  }</div>
|
||||
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  </div>
|
||||
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <span class="comment">// If there are any transactions left, we must have</span></div>
|
||||
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <span class="comment">// tried them in at least one final pass</span></div>
|
||||
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  assert (retries.<a class="code" href="classripple_1_1CanonicalTXSet.html#a74b2568b8529216a9c646edee16179af">empty</a>() || ! <a class="code" href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97abd936aff81db9087051d25a3e30e6e54">retry</a>);</div>
|
||||
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span> }</div>
|
||||
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  </div>
|
||||
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
||||
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  </div>
|
||||
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span> <span class="comment">// For debug logging</span></div>
|
||||
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  </div>
|
||||
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
|
||||
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> <a class="code" href="namespaceripple.html#af1ea8e3f1e47355b19068f429e230201">debugTxstr</a> (<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<STTx const></a> <span class="keyword">const</span>& tx);</div>
|
||||
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  </div>
|
||||
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
|
||||
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span> <a class="code" href="namespaceripple.html#a97e4b79eaa01694360e38723347ea344">debugTostr</a> (<a class="code" href="classripple_1_1CanonicalTXSet.html">OrderedTxs</a> <span class="keyword">const</span>& <a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>);</div>
|
||||
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  </div>
|
||||
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
|
||||
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span> <a class="code" href="namespaceripple.html#a97e4b79eaa01694360e38723347ea344">debugTostr</a> (<a class="code" href="classripple_1_1SHAMap.html">SHAMap</a> <span class="keyword">const</span>& <a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>);</div>
|
||||
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  </div>
|
||||
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
|
||||
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span> <a class="code" href="namespaceripple.html#a97e4b79eaa01694360e38723347ea344">debugTostr</a> (<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<ReadView const></a> <span class="keyword">const</span>& view);</div>
|
||||
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  </div>
|
||||
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span> } <span class="comment">// ripple</span></div>
|
||||
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  </div>
|
||||
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span> <span class="preprocessor">#endif</span></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<div class="ttc" id="aclassripple_1_1Application_html"><div class="ttname"><a href="classripple_1_1Application.html">ripple::Application</a></div><div class="ttdef"><b>Definition:</b> <a href="Application_8h_source.html#l00085">Application.h:85</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_abb724d61223be6a608b28947bd2e2236"><div class="ttname"><a href="classripple_1_1OpenLedger.html#abb724d61223be6a608b28947bd2e2236">ripple::OpenLedger::current</a></div><div class="ttdeci">std::shared_ptr< OpenView const > current() const</div><div class="ttdoc">Returns a view to the current open ledger.</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00052">OpenLedger.cpp:52</a></div></div>
|
||||
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div><div class="ttdoc">STL class.</div></div>
|
||||
<div class="ttc" id="ashared_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a></div><div class="ttdoc">STL class.</div></div>
|
||||
<div class="ttc" id="aexception_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/error/exception.html">std::exception</a></div><div class="ttdoc">STL class.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_ab7f4326cb3cb4aa865d2cd9a930a7641"><div class="ttname"><a href="classripple_1_1OpenLedger.html#ab7f4326cb3cb4aa865d2cd9a930a7641">ripple::OpenLedger::current_</a></div><div class="ttdeci">std::shared_ptr< OpenView const > current_</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8h_source.html#l00056">OpenLedger.h:56</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1CanonicalTXSet_html_aa4807d9612f7e9874d9d6dac5c650de1"><div class="ttname"><a href="classripple_1_1CanonicalTXSet.html#aa4807d9612f7e9874d9d6dac5c650de1">ripple::CanonicalTXSet::erase</a></div><div class="ttdeci">const_iterator erase(const_iterator const &it)</div><div class="ttdef"><b>Definition:</b> <a href="CanonicalTXSet_8h_source.html#l00098">CanonicalTXSet.h:98</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a04fd027db8c14138d0ccce4ea131d59c"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a04fd027db8c14138d0ccce4ea131d59c">ripple::OpenLedger::operator=</a></div><div class="ttdeci">OpenLedger & operator=(OpenLedger const &)=delete</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenView_html"><div class="ttname"><a href="classripple_1_1OpenView.html">ripple::OpenView</a></div><div class="ttdoc">Writable ledger view that accumulates state and tx changes.</div><div class="ttdef"><b>Definition:</b> <a href="OpenView_8h_source.html#l00052">OpenView.h:52</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_ad2487abbcc1a5d6064b72144b461df6e"><div class="ttname"><a href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6e">ripple::ApplyFlags</a></div><div class="ttdeci">ApplyFlags</div><div class="ttdef"><b>Definition:</b> <a href="ApplyView_8h_source.html#l00030">ApplyView.h:30</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a96bb5c3c9dfae39b054eedc8d6026a97a844e5b8d8fa1068931e454f4b9ef0f30"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97a844e5b8d8fa1068931e454f4b9ef0f30">ripple::OpenLedger::success</a></div><div class="ttdeci">@ success</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8h_source.html#l00187">OpenLedger.h:187</a></div></div>
|
||||
<div class="ttc" id="afunction_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a918f3adba0e6acb5dd1b32e73061588e"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a918f3adba0e6acb5dd1b32e73061588e">ripple::OpenLedger::modify_mutex_</a></div><div class="ttdeci">std::mutex modify_mutex_</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8h_source.html#l00054">OpenLedger.h:54</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a96bb5c3c9dfae39b054eedc8d6026a97abd936aff81db9087051d25a3e30e6e54"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97abd936aff81db9087051d25a3e30e6e54">ripple::OpenLedger::retry</a></div><div class="ttdeci">@ retry</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8h_source.html#l00189">OpenLedger.h:189</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a3b20a6007626da5a1d79d1213924cb72"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a3b20a6007626da5a1d79d1213924cb72">ripple::OpenLedger::accept</a></div><div class="ttdeci">void accept(Application &app, Rules const &rules, std::shared_ptr< Ledger const > const &ledger, OrderedTxs const &locals, bool retriesFirst, OrderedTxs &retries, ApplyFlags flags, std::string const &suffix="", modify_type const &f={})</div><div class="ttdoc">Accept a new ledger.</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8cpp_source.html#l00074">OpenLedger.cpp:74</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1CanonicalTXSet_html"><div class="ttname"><a href="classripple_1_1CanonicalTXSet.html">ripple::CanonicalTXSet</a></div><div class="ttdoc">Holds transactions which were deferred to the next pass of consensus.</div><div class="ttdef"><b>Definition:</b> <a href="CanonicalTXSet_8h_source.html#l00036">CanonicalTXSet.h:36</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1CanonicalTXSet_html_a867d7654e3ed11b5d7047f776a02fb44"><div class="ttname"><a href="classripple_1_1CanonicalTXSet.html#a867d7654e3ed11b5d7047f776a02fb44">ripple::CanonicalTXSet::begin</a></div><div class="ttdeci">const_iterator begin() const</div><div class="ttdef"><b>Definition:</b> <a href="CanonicalTXSet_8h_source.html#l00103">CanonicalTXSet.h:103</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Ledger_html"><div class="ttname"><a href="classripple_1_1Ledger.html">ripple::Ledger</a></div><div class="ttdoc">Holds a ledger.</div><div class="ttdef"><b>Definition:</b> <a href="Ledger_8h_source.html#l00077">Ledger.h:77</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a96bb5c3c9dfae39b054eedc8d6026a97ab1bdfba01dc2e495ad5658f24d8db566"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a96bb5c3c9dfae39b054eedc8d6026a97ab1bdfba01dc2e495ad5658f24d8db566">ripple::OpenLedger::failure</a></div><div class="ttdeci">@ failure</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8h_source.html#l00188">OpenLedger.h:188</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1CachedSLEs_html"><div class="ttname"><a href="classripple_1_1CachedSLEs.html">ripple::CachedSLEs</a></div><div class="ttdoc">Caches SLEs by their digest.</div><div class="ttdef"><b>Definition:</b> <a href="CachedSLEs_8h_source.html#l00032">CachedSLEs.h:32</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a02d323b2b1ad7d9f713c3d3bb6fea649"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a02d323b2b1ad7d9f713c3d3bb6fea649">ripple::OpenLedger::j_</a></div><div class="ttdeci">const beast::Journal j_</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8h_source.html#l00052">OpenLedger.h:52</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a83bc97098814823939ed94c547a257f4"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a83bc97098814823939ed94c547a257f4">ripple::OpenLedger::OpenLedger</a></div><div class="ttdeci">OpenLedger()=delete</div></div>
|
||||
<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#l00079">SHAMap.h:79</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#l00271">BasicConfig.h:271</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#l00307">Journal.h:307</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#l00060">Journal.h:60</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#l00088">CanonicalTXSet.cpp:88</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#l00045">OpenLedger.cpp:45</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#l00108">CanonicalTXSet.h:108</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>
|
||||
<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#l00186">ReadView.h:186</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="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1OpenLedger_html_a45ea81952cd667f5e109a173db763d3c"><div class="ttname"><a href="classripple_1_1OpenLedger.html#a45ea81952cd667f5e109a173db763d3c">ripple::OpenLedger::cache_</a></div><div class="ttdeci">CachedSLEs & cache_</div><div class="ttdef"><b>Definition:</b> <a href="OpenLedger_8h_source.html#l00053">OpenLedger.h:53</a></div></div>
|
||||
<div class="ttc" id="acassert_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/cassert.html">cassert</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1CanonicalTXSet_html_a74b2568b8529216a9c646edee16179af"><div class="ttname"><a href="classripple_1_1CanonicalTXSet.html#a74b2568b8529216a9c646edee16179af">ripple::CanonicalTXSet::empty</a></div><div class="ttdeci">bool empty() const</div><div class="ttdef"><b>Definition:</b> <a href="CanonicalTXSet_8h_source.html#l00117">CanonicalTXSet.h:117</a></div></div>
|
||||
<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#l00126">ReadView.h:126</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#l00185">OpenLedger.h:185</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_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#l00177">OpenLedger.cpp:177</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#l00208">OpenLedger.h:208</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#l00059">OpenLedger.cpp:59</a></div></div>
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.17
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user