mirror of
https://github.com/XRPLF/rippled.git
synced 2026-01-30 19:45:24 +00:00
279 lines
46 KiB
HTML
279 lines
46 KiB
HTML
<!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" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>rippled: ApplyContext.cpp 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 id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">rippled
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.8 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @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:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(document).ready(function() { init_codefold(0); });
|
|
/* @license-end */
|
|
</script>
|
|
<!-- 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">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_a62226f9e3a6c7c5a3be455e2f87ae01.html">xrpld</a></li><li class="navelem"><a class="el" href="dir_c69db3203fa08a9ff994909ba6ee9783.html">app</a></li><li class="navelem"><a class="el" href="dir_4b2d6f306dc33741b6f38a59a670a446.html">tx</a></li><li class="navelem"><a class="el" href="dir_7b1ffcd2aae1e871efc2e94c72e78699.html">detail</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">ApplyContext.cpp</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#include <xrpld/app/tx/detail/ApplyContext.h></span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#include <xrpld/app/tx/detail/InvariantCheck.h></span></div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include <xrpl/basics/Log.h></span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include <xrpl/beast/utility/instrumentation.h></span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include <xrpl/json/to_string.h></span></div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> </div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacexrpl.html">xrpl</a> {</div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span> </div>
|
|
<div class="foldopen" id="foldopen00010" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"><a class="line" href="classxrpl_1_1ApplyContext.html#a6360912b6cf397872fe5997694804019"> 10</a></span><a class="code hl_function" href="classxrpl_1_1ApplyContext.html#a6360912b6cf397872fe5997694804019">ApplyContext::ApplyContext</a>(</div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> <a class="code hl_class" href="classxrpl_1_1Application.html">Application</a>& app_,</div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> <a class="code hl_class" href="classxrpl_1_1OpenView.html">OpenView</a>& base,</div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<uint256 const></a> <span class="keyword">const</span>& parentBatchId,</div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> <a class="code hl_class" href="classxrpl_1_1STTx.html">STTx</a> <span class="keyword">const</span>& tx_,</div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> <a class="code hl_class" href="classxrpl_1_1TERSubset.html">TER</a> preclaimResult_,</div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> <a class="code hl_class" href="classxrpl_1_1XRPAmount.html">XRPAmount</a> baseFee_,</div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> <a class="code hl_enumeration" href="namespacexrpl.html#abd040209899a4fb5e9c298f9156a074e">ApplyFlags</a> flags,</div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> <a class="code hl_class" href="classbeast_1_1Journal.html">beast::Journal</a> journal_)</div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> : app(app_)</div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> , tx(tx_)</div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> , preclaimResult(preclaimResult_)</div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> , baseFee(baseFee_)</div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> , journal(journal_)</div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> , base_(base)</div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> , flags_(flags)</div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> , parentBatchId_(parentBatchId)</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> XRPL_ASSERT(</div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> parentBatchId.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/utility/optional/operator_bool.html">has_value</a>() == ((<a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#a647b1cb429f5e2ab7f557a3b3be56d6a">flags_</a> & <a class="code hl_enumvalue" href="namespacexrpl.html#abd040209899a4fb5e9c298f9156a074eaf9a9e452b398496f07c38aae5d11c6d2">tapBATCH</a>) == <a class="code hl_enumvalue" href="namespacexrpl.html#abd040209899a4fb5e9c298f9156a074eaf9a9e452b398496f07c38aae5d11c6d2">tapBATCH</a>),</div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="stringliteral">"Parent Batch ID should be set if batch apply flag is set"</span>);</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#a7effd7762deb178c132bae9921d65a95">view_</a>.emplace(&<a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#a23b1af78187b19bb957947fa5bc636f7">base_</a>, <a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#a647b1cb429f5e2ab7f557a3b3be56d6a">flags_</a>);</div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="keywordtype">void</span></div>
|
|
<div class="foldopen" id="foldopen00035" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="classxrpl_1_1ApplyContext.html#a520571b608399aa419a1ee25995f8087"> 35</a></span><a class="code hl_function" href="classxrpl_1_1ApplyContext.html#a520571b608399aa419a1ee25995f8087">ApplyContext::discard</a>()</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> <a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#a7effd7762deb178c132bae9921d65a95">view_</a>.emplace(&<a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#a23b1af78187b19bb957947fa5bc636f7">base_</a>, <a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#a647b1cb429f5e2ab7f557a3b3be56d6a">flags_</a>);</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span>}</div>
|
|
</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><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<TxMeta></a></div>
|
|
<div class="foldopen" id="foldopen00041" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="classxrpl_1_1ApplyContext.html#a774c0f965bd18b05caf4349956b6ff01"> 41</a></span><a class="code hl_function" href="classxrpl_1_1ApplyContext.html#a774c0f965bd18b05caf4349956b6ff01">ApplyContext::apply</a>(<a class="code hl_class" href="classxrpl_1_1TERSubset.html">TER</a> ter)</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> <span class="keywordflow">return</span> <a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#a7effd7762deb178c132bae9921d65a95">view_</a>->apply(<a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#a23b1af78187b19bb957947fa5bc636f7">base_</a>, <a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#a12176434ecde09cea7688f6bdf95c17f">tx</a>, ter, <a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#ac40149fe3ce3f379abdced65eecf33cd">parentBatchId_</a>, <a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#a647b1cb429f5e2ab7f557a3b3be56d6a">flags_</a> & <a class="code hl_enumvalue" href="namespacexrpl.html#abd040209899a4fb5e9c298f9156a074ea224b9b2a3663e5a5167095b5b4a06cf7">tapDRY_RUN</a>, <a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#a8c94af858a6bf4acf07ebecb3282e6fd">journal</a>);</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
|
|
<div class="foldopen" id="foldopen00047" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="classxrpl_1_1ApplyContext.html#a0ce43337273d07fefa4f0aad9d3d6212"> 47</a></span><a class="code hl_function" href="classxrpl_1_1ApplyContext.html#a0ce43337273d07fefa4f0aad9d3d6212">ApplyContext::size</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> <span class="keywordflow">return</span> <a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#a7effd7762deb178c132bae9921d65a95">view_</a>->size();</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span>}</div>
|
|
</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="keywordtype">void</span></div>
|
|
<div class="foldopen" id="foldopen00053" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="classxrpl_1_1ApplyContext.html#adba1e363ea024401c7426def1b99b924"> 53</a></span><a class="code hl_function" href="classxrpl_1_1ApplyContext.html#adba1e363ea024401c7426def1b99b924">ApplyContext::visit</a>(</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a><</div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="keywordtype">void</span>(<a class="code hl_class" href="classxrpl_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&, <span class="keywordtype">bool</span>, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<SLE const></a> <span class="keyword">const</span>&, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<SLE const></a> <span class="keyword">const</span>&)> <span class="keyword">const</span>& func)</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span>{</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#a7effd7762deb178c132bae9921d65a95">view_</a>->visit(<a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#a23b1af78187b19bb957947fa5bc636f7">base_</a>, func);</div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> </div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span><a class="code hl_class" href="classxrpl_1_1TERSubset.html">TER</a></div>
|
|
<div class="foldopen" id="foldopen00061" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="classxrpl_1_1ApplyContext.html#a1b3ed556a891df9e6fb78f295a3cee01"> 61</a></span><a class="code hl_function" href="classxrpl_1_1ApplyContext.html#a1b3ed556a891df9e6fb78f295a3cee01">ApplyContext::failInvariantCheck</a>(<a class="code hl_class" href="classxrpl_1_1TERSubset.html">TER</a> <span class="keyword">const</span> result)</div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span>{</div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="comment">// If we already failed invariant checks before and we are now attempting to</span></div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="comment">// only charge a fee, and even that fails the invariant checks something is</span></div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <span class="comment">// very wrong. We switch to tefINVARIANT_FAILED, which does NOT get included</span></div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="comment">// in a ledger.</span></div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> </div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="keywordflow">return</span> (result == <a class="code hl_enumvalue" href="namespacexrpl.html#ad78c115958eec639754bf9227f58556ba7f74d0be516c335fa09a6efd031b5bfc">tecINVARIANT_FAILED</a> || result == <a class="code hl_enumvalue" href="namespacexrpl.html#a48cab8527194fbd1cfdacad90f977cf1a332640ca24599af43984eecee49edf3a">tefINVARIANT_FAILED</a>) ? <a class="code hl_class" href="classxrpl_1_1TERSubset.html">TER</a>{<a class="code hl_enumvalue" href="namespacexrpl.html#a48cab8527194fbd1cfdacad90f977cf1a332640ca24599af43984eecee49edf3a">tefINVARIANT_FAILED</a>}</div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> : <a class="code hl_class" href="classxrpl_1_1TERSubset.html">TER</a>{<a class="code hl_enumvalue" href="namespacexrpl.html#ad78c115958eec639754bf9227f58556ba7f74d0be516c335fa09a6efd031b5bfc">tecINVARIANT_FAILED</a>};</div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> </div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span><span class="keyword">template</span> <<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>... Is></div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span><a class="code hl_class" href="classxrpl_1_1TERSubset.html">TER</a></div>
|
|
<div class="foldopen" id="foldopen00074" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="classxrpl_1_1ApplyContext.html#aa608d774529011ac2ed00cc84f5fe3a8"> 74</a></span><a class="code hl_function" href="classxrpl_1_1ApplyContext.html#aa608d774529011ac2ed00cc84f5fe3a8">ApplyContext::checkInvariantsHelper</a>(<a class="code hl_class" href="classxrpl_1_1TERSubset.html">TER</a> <span class="keyword">const</span> result, <a class="code hl_class" href="classxrpl_1_1XRPAmount.html">XRPAmount</a> <span class="keyword">const</span> fee, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/integer_sequence.html">std::index_sequence<Is...></a>)</div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span>{</div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <span class="keywordflow">try</span></div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> {</div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="keyword">auto</span> checkers = <a class="code hl_function" href="namespacexrpl.html#a32c84bd2b2684b6390581025674c35f6">getInvariantChecks</a>();</div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> </div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="comment">// call each check's per-entry method</span></div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <a class="code hl_function" href="classxrpl_1_1ApplyContext.html#adba1e363ea024401c7426def1b99b924">visit</a>([&checkers](</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <a class="code hl_class" href="classxrpl_1_1base__uint.html">uint256</a> <span class="keyword">const</span>& index,</div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <span class="keywordtype">bool</span> isDelete,</div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<SLE const></a> <span class="keyword">const</span>& before,</div>
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<SLE const></a> <span class="keyword">const</span>& <a class="code hl_function" href="namespacexrpl.html#a9d55a156c8ac4a2a61cb2e8a38daacfd">after</a>) {</div>
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> (..., <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::get<Is></a>(checkers).visitEntry(isDelete, before, <a class="code hl_function" href="namespacexrpl.html#a9d55a156c8ac4a2a61cb2e8a38daacfd">after</a>));</div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> });</div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> </div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="comment">// Note: do not replace this logic with a `...&&` fold expression.</span></div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <span class="comment">// The fold expression will only run until the first check fails (it</span></div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <span class="comment">// short-circuits). While the logic is still correct, the log</span></div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="comment">// message won't be. Every failed invariant should write to the log,</span></div>
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="comment">// not just the first one.</span></div>
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a><bool, <span class="keyword">sizeof</span>...(Is)> finalizers{</div>
|
|
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> {<a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::get<Is></a>(checkers).finalize(<a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#a12176434ecde09cea7688f6bdf95c17f">tx</a>, result, fee, *<a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#a7effd7762deb178c132bae9921d65a95">view_</a>, <a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#a8c94af858a6bf4acf07ebecb3282e6fd">journal</a>)...}};</div>
|
|
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> </div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="comment">// call each check's finalizer to see that it passes</span></div>
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <span class="keywordflow">if</span> (!<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/algorithm/all_any_none_of.html">std::all_of</a>(finalizers.cbegin(), finalizers.cend(), [](<span class="keyword">auto</span> <span class="keyword">const</span>& b) { return b; }))</div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> {</div>
|
|
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> JLOG(<a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#a8c94af858a6bf4acf07ebecb3282e6fd">journal</a>.<a class="code hl_function" href="classbeast_1_1Journal.html#a3dfb8e2e3eecccdb5cf78ff21bca069c">fatal</a>()) << <span class="stringliteral">"Transaction has failed one or more invariants: "</span></div>
|
|
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> << <a class="code hl_function" href="namespacexrpl.html#a35ce7572092b98720a52fa343c6f2fa9">to_string</a>(<a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#a12176434ecde09cea7688f6bdf95c17f">tx</a>.<a class="code hl_function" href="classxrpl_1_1STTx.html#a20c559b1efb757408ea69f8a995435f2">getJson</a>(<a class="code hl_enumvalue" href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570ba1a97822ca421424f4fc466f09db227a6">JsonOptions::none</a>));</div>
|
|
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> </div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classxrpl_1_1ApplyContext.html#a1b3ed556a891df9e6fb78f295a3cee01">failInvariantCheck</a>(result);</div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> }</div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> }</div>
|
|
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> <span class="keywordflow">catch</span> (<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/error/exception.html">std::exception</a> <span class="keyword">const</span>& ex)</div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> {</div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> JLOG(<a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#a8c94af858a6bf4acf07ebecb3282e6fd">journal</a>.<a class="code hl_function" href="classbeast_1_1Journal.html#a3dfb8e2e3eecccdb5cf78ff21bca069c">fatal</a>()) << <span class="stringliteral">"Transaction caused an exception in an invariant"</span></div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> << <span class="stringliteral">", ex: "</span> << ex.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/error/exception/what.html">what</a>() << <span class="stringliteral">", tx: "</span> << <a class="code hl_function" href="namespacexrpl.html#a35ce7572092b98720a52fa343c6f2fa9">to_string</a>(<a class="code hl_variable" href="classxrpl_1_1ApplyContext.html#a12176434ecde09cea7688f6bdf95c17f">tx</a>.<a class="code hl_function" href="classxrpl_1_1STTx.html#a20c559b1efb757408ea69f8a995435f2">getJson</a>(<a class="code hl_enumvalue" href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570ba1a97822ca421424f4fc466f09db227a6">JsonOptions::none</a>));</div>
|
|
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> </div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classxrpl_1_1ApplyContext.html#a1b3ed556a891df9e6fb78f295a3cee01">failInvariantCheck</a>(result);</div>
|
|
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> }</div>
|
|
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> </div>
|
|
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <span class="keywordflow">return</span> result;</div>
|
|
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> </div>
|
|
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span><a class="code hl_class" href="classxrpl_1_1TERSubset.html">TER</a></div>
|
|
<div class="foldopen" id="foldopen00118" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"><a class="line" href="classxrpl_1_1ApplyContext.html#abee857645fe197a3b7ceb2254aeb5f8b"> 118</a></span><a class="code hl_function" href="classxrpl_1_1ApplyContext.html#abee857645fe197a3b7ceb2254aeb5f8b">ApplyContext::checkInvariants</a>(<a class="code hl_class" href="classxrpl_1_1TERSubset.html">TER</a> <span class="keyword">const</span> result, <a class="code hl_class" href="classxrpl_1_1XRPAmount.html">XRPAmount</a> <span class="keyword">const</span> fee)</div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span>{</div>
|
|
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> XRPL_ASSERT(</div>
|
|
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <a class="code hl_function" href="namespacexrpl.html#aca6a81fa8cc774aae8a652406ea14c36">isTesSuccess</a>(result) || <a class="code hl_function" href="namespacexrpl.html#ada2e431f68c4d8a2d3cdd92966cea33e">isTecClaim</a>(result), <span class="stringliteral">"xrpl::ApplyContext::checkInvariants : is tesSUCCESS or tecCLAIM"</span>);</div>
|
|
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> </div>
|
|
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classxrpl_1_1ApplyContext.html#aa608d774529011ac2ed00cc84f5fe3a8">checkInvariantsHelper</a>(result, fee, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/integer_sequence.html">std::make_index_sequence</a><std::tuple_size<InvariantChecks>::value>{});</div>
|
|
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> </div>
|
|
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span>} <span class="comment">// namespace xrpl</span></div>
|
|
<div class="ttc" id="aall_any_none_of_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/all_any_none_of.html">std::all_of</a></div><div class="ttdeci">T all_of(T... args)</div></div>
|
|
<div class="ttc" id="aarray_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/array.html">std::array</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#l00040">Journal.h:41</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1Journal_html_a3dfb8e2e3eecccdb5cf78ff21bca069c"><div class="ttname"><a href="classbeast_1_1Journal.html#a3dfb8e2e3eecccdb5cf78ff21bca069c">beast::Journal::fatal</a></div><div class="ttdeci">Stream fatal() const</div><div class="ttdef"><b>Definition</b> <a href="Journal_8h_source.html#l00325">Journal.h:325</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1Application_html"><div class="ttname"><a href="classxrpl_1_1Application.html">xrpl::Application</a></div><div class="ttdef"><b>Definition</b> <a href="Application_8h_source.html#l00094">Application.h:95</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1ApplyContext_html_a0ce43337273d07fefa4f0aad9d3d6212"><div class="ttname"><a href="classxrpl_1_1ApplyContext.html#a0ce43337273d07fefa4f0aad9d3d6212">xrpl::ApplyContext::size</a></div><div class="ttdeci">std::size_t size()</div><div class="ttdoc">Get the number of unapplied changes.</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8cpp_source.html#l00047">ApplyContext.cpp:47</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1ApplyContext_html_a12176434ecde09cea7688f6bdf95c17f"><div class="ttname"><a href="classxrpl_1_1ApplyContext.html#a12176434ecde09cea7688f6bdf95c17f">xrpl::ApplyContext::tx</a></div><div class="ttdeci">STTx const & tx</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8h_source.html#l00044">ApplyContext.h:44</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1ApplyContext_html_a1b3ed556a891df9e6fb78f295a3cee01"><div class="ttname"><a href="classxrpl_1_1ApplyContext.html#a1b3ed556a891df9e6fb78f295a3cee01">xrpl::ApplyContext::failInvariantCheck</a></div><div class="ttdeci">TER failInvariantCheck(TER const result)</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8cpp_source.html#l00061">ApplyContext.cpp:61</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1ApplyContext_html_a23b1af78187b19bb957947fa5bc636f7"><div class="ttname"><a href="classxrpl_1_1ApplyContext.html#a23b1af78187b19bb957947fa5bc636f7">xrpl::ApplyContext::base_</a></div><div class="ttdeci">OpenView & base_</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8h_source.html#l00123">ApplyContext.h:123</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1ApplyContext_html_a520571b608399aa419a1ee25995f8087"><div class="ttname"><a href="classxrpl_1_1ApplyContext.html#a520571b608399aa419a1ee25995f8087">xrpl::ApplyContext::discard</a></div><div class="ttdeci">void discard()</div><div class="ttdoc">Discard changes and start fresh.</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8cpp_source.html#l00035">ApplyContext.cpp:35</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1ApplyContext_html_a6360912b6cf397872fe5997694804019"><div class="ttname"><a href="classxrpl_1_1ApplyContext.html#a6360912b6cf397872fe5997694804019">xrpl::ApplyContext::ApplyContext</a></div><div class="ttdeci">ApplyContext(Application &app, OpenView &base, std::optional< uint256 const > const &parentBatchId, STTx const &tx, TER preclaimResult, XRPAmount baseFee, ApplyFlags flags, beast::Journal journal=beast::Journal{beast::Journal::getNullSink()})</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8cpp_source.html#l00010">ApplyContext.cpp:10</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1ApplyContext_html_a647b1cb429f5e2ab7f557a3b3be56d6a"><div class="ttname"><a href="classxrpl_1_1ApplyContext.html#a647b1cb429f5e2ab7f557a3b3be56d6a">xrpl::ApplyContext::flags_</a></div><div class="ttdeci">ApplyFlags flags_</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8h_source.html#l00124">ApplyContext.h:124</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1ApplyContext_html_a774c0f965bd18b05caf4349956b6ff01"><div class="ttname"><a href="classxrpl_1_1ApplyContext.html#a774c0f965bd18b05caf4349956b6ff01">xrpl::ApplyContext::apply</a></div><div class="ttdeci">std::optional< TxMeta > apply(TER)</div><div class="ttdoc">Apply the transaction result to the base.</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8cpp_source.html#l00041">ApplyContext.cpp:41</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1ApplyContext_html_a7effd7762deb178c132bae9921d65a95"><div class="ttname"><a href="classxrpl_1_1ApplyContext.html#a7effd7762deb178c132bae9921d65a95">xrpl::ApplyContext::view_</a></div><div class="ttdeci">std::optional< ApplyViewImpl > view_</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8h_source.html#l00125">ApplyContext.h:125</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1ApplyContext_html_a8c94af858a6bf4acf07ebecb3282e6fd"><div class="ttname"><a href="classxrpl_1_1ApplyContext.html#a8c94af858a6bf4acf07ebecb3282e6fd">xrpl::ApplyContext::journal</a></div><div class="ttdeci">beast::Journal const journal</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8h_source.html#l00047">ApplyContext.h:47</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1ApplyContext_html_aa608d774529011ac2ed00cc84f5fe3a8"><div class="ttname"><a href="classxrpl_1_1ApplyContext.html#aa608d774529011ac2ed00cc84f5fe3a8">xrpl::ApplyContext::checkInvariantsHelper</a></div><div class="ttdeci">TER checkInvariantsHelper(TER const result, XRPAmount const fee, std::index_sequence< Is... >)</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8cpp_source.html#l00074">ApplyContext.cpp:74</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1ApplyContext_html_abee857645fe197a3b7ceb2254aeb5f8b"><div class="ttname"><a href="classxrpl_1_1ApplyContext.html#abee857645fe197a3b7ceb2254aeb5f8b">xrpl::ApplyContext::checkInvariants</a></div><div class="ttdeci">TER checkInvariants(TER const result, XRPAmount const fee)</div><div class="ttdoc">Applies all invariant checkers one by one.</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8cpp_source.html#l00118">ApplyContext.cpp:118</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1ApplyContext_html_ac40149fe3ce3f379abdced65eecf33cd"><div class="ttname"><a href="classxrpl_1_1ApplyContext.html#ac40149fe3ce3f379abdced65eecf33cd">xrpl::ApplyContext::parentBatchId_</a></div><div class="ttdeci">std::optional< uint256 const > parentBatchId_</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8h_source.html#l00128">ApplyContext.h:128</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1ApplyContext_html_adba1e363ea024401c7426def1b99b924"><div class="ttname"><a href="classxrpl_1_1ApplyContext.html#adba1e363ea024401c7426def1b99b924">xrpl::ApplyContext::visit</a></div><div class="ttdeci">void visit(std::function< void(uint256 const &key, bool isDelete, std::shared_ptr< SLE const > const &before, std::shared_ptr< SLE const > const &after)> const &func)</div><div class="ttdoc">Visit unapplied changes.</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8cpp_source.html#l00053">ApplyContext.cpp:53</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1OpenView_html"><div class="ttname"><a href="classxrpl_1_1OpenView.html">xrpl::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#l00045">OpenView.h:46</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1STTx_html"><div class="ttname"><a href="classxrpl_1_1STTx.html">xrpl::STTx</a></div><div class="ttdef"><b>Definition</b> <a href="STTx_8h_source.html#l00028">STTx.h:29</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1STTx_html_a20c559b1efb757408ea69f8a995435f2"><div class="ttname"><a href="classxrpl_1_1STTx.html#a20c559b1efb757408ea69f8a995435f2">xrpl::STTx::getJson</a></div><div class="ttdeci">Json::Value getJson(JsonOptions options) const override</div><div class="ttdef"><b>Definition</b> <a href="STTx_8cpp_source.html#l00299">STTx.cpp:299</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1TERSubset_html"><div class="ttname"><a href="classxrpl_1_1TERSubset.html">xrpl::TERSubset< CanCvtToTER ></a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1XRPAmount_html"><div class="ttname"><a href="classxrpl_1_1XRPAmount.html">xrpl::XRPAmount</a></div><div class="ttdef"><b>Definition</b> <a href="XRPAmount_8h_source.html#l00020">XRPAmount.h:24</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1base__uint_html"><div class="ttname"><a href="classxrpl_1_1base__uint.html">xrpl::base_uint< 256 ></a></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>
|
|
<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="ainteger_sequence_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/integer_sequence.html">std::index_sequence</a></div></div>
|
|
<div class="ttc" id="ais_same_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v</a></div><div class="ttdeci">T is_same_v</div></div>
|
|
<div class="ttc" id="anamespacexrpl_html"><div class="ttname"><a href="namespacexrpl.html">xrpl</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition</b> <a href="algorithm_8h_source.html#l00006">algorithm.h:6</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a32c84bd2b2684b6390581025674c35f6"><div class="ttname"><a href="namespacexrpl.html#a32c84bd2b2684b6390581025674c35f6">xrpl::getInvariantChecks</a></div><div class="ttdeci">InvariantChecks getInvariantChecks()</div><div class="ttdoc">get a tuple of all invariant checks</div><div class="ttdef"><b>Definition</b> <a href="InvariantCheck_8h_source.html#l00717">InvariantCheck.h:717</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a35ce7572092b98720a52fa343c6f2fa9"><div class="ttname"><a href="namespacexrpl.html#a35ce7572092b98720a52fa343c6f2fa9">xrpl::to_string</a></div><div class="ttdeci">std::string to_string(base_uint< Bits, Tag > const &a)</div><div class="ttdef"><b>Definition</b> <a href="base__uint_8h_source.html#l00598">base_uint.h:598</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a48cab8527194fbd1cfdacad90f977cf1a332640ca24599af43984eecee49edf3a"><div class="ttname"><a href="namespacexrpl.html#a48cab8527194fbd1cfdacad90f977cf1a332640ca24599af43984eecee49edf3a">xrpl::tefINVARIANT_FAILED</a></div><div class="ttdeci">@ tefINVARIANT_FAILED</div><div class="ttdef"><b>Definition</b> <a href="TER_8h_source.html#l00164">TER.h:164</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a9d55a156c8ac4a2a61cb2e8a38daacfd"><div class="ttname"><a href="namespacexrpl.html#a9d55a156c8ac4a2a61cb2e8a38daacfd">xrpl::after</a></div><div class="ttdeci">bool after(NetClock::time_point now, std::uint32_t mark)</div><div class="ttdoc">Has the specified time passed?</div><div class="ttdef"><b>Definition</b> <a href="View_8cpp_source.html#l03436">View.cpp:3436</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_abd040209899a4fb5e9c298f9156a074e"><div class="ttname"><a href="namespacexrpl.html#abd040209899a4fb5e9c298f9156a074e">xrpl::ApplyFlags</a></div><div class="ttdeci">ApplyFlags</div><div class="ttdef"><b>Definition</b> <a href="ApplyView_8h_source.html#l00011">ApplyView.h:11</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_abd040209899a4fb5e9c298f9156a074ea224b9b2a3663e5a5167095b5b4a06cf7"><div class="ttname"><a href="namespacexrpl.html#abd040209899a4fb5e9c298f9156a074ea224b9b2a3663e5a5167095b5b4a06cf7">xrpl::tapDRY_RUN</a></div><div class="ttdeci">@ tapDRY_RUN</div><div class="ttdef"><b>Definition</b> <a href="ApplyView_8h_source.html#l00031">ApplyView.h:30</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_abd040209899a4fb5e9c298f9156a074eaf9a9e452b398496f07c38aae5d11c6d2"><div class="ttname"><a href="namespacexrpl.html#abd040209899a4fb5e9c298f9156a074eaf9a9e452b398496f07c38aae5d11c6d2">xrpl::tapBATCH</a></div><div class="ttdeci">@ tapBATCH</div><div class="ttdef"><b>Definition</b> <a href="ApplyView_8h_source.html#l00026">ApplyView.h:26</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_aca6a81fa8cc774aae8a652406ea14c36"><div class="ttname"><a href="namespacexrpl.html#aca6a81fa8cc774aae8a652406ea14c36">xrpl::isTesSuccess</a></div><div class="ttdeci">bool isTesSuccess(TER x) noexcept</div><div class="ttdef"><b>Definition</b> <a href="TER_8h_source.html#l00650">TER.h:650</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_ad78c115958eec639754bf9227f58556ba7f74d0be516c335fa09a6efd031b5bfc"><div class="ttname"><a href="namespacexrpl.html#ad78c115958eec639754bf9227f58556ba7f74d0be516c335fa09a6efd031b5bfc">xrpl::tecINVARIANT_FAILED</a></div><div class="ttdeci">@ tecINVARIANT_FAILED</div><div class="ttdef"><b>Definition</b> <a href="TER_8h_source.html#l00295">TER.h:295</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_ada2e431f68c4d8a2d3cdd92966cea33e"><div class="ttname"><a href="namespacexrpl.html#ada2e431f68c4d8a2d3cdd92966cea33e">xrpl::isTecClaim</a></div><div class="ttdeci">bool isTecClaim(TER x) noexcept</div><div class="ttdef"><b>Definition</b> <a href="TER_8h_source.html#l00657">TER.h:657</a></div></div>
|
|
<div class="ttc" id="aoperator_bool_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/optional/operator_bool.html">std::optional::has_value</a></div><div class="ttdeci">T has_value(T... args)</div></div>
|
|
<div class="ttc" id="aoptional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a></div></div>
|
|
<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>
|
|
<div class="ttc" id="asize_t_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1JsonOptions_html_a248f4c1cb1b2fe05b58678f32307570ba1a97822ca421424f4fc466f09db227a6"><div class="ttname"><a href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570ba1a97822ca421424f4fc466f09db227a6">xrpl::JsonOptions::none</a></div><div class="ttdeci">@ none</div><div class="ttdef"><b>Definition</b> <a href="STBase_8h_source.html#l00024">STBase.h:24</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>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
|
|
</small></address>
|
|
</body>
|
|
</html>
|