mirror of
https://github.com/XRPLF/rippled.git
synced 2026-02-04 05:55:25 +00:00
324 lines
56 KiB
HTML
324 lines
56 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: AmendmentTable.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 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_2860c73e71f9ef894ba4acb1eeae5483.html">misc</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">AmendmentTable.h</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">#ifndef XRPL_APP_MISC_AMENDMENTTABLE_H_INCLUDED</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define XRPL_APP_MISC_AMENDMENTTABLE_H_INCLUDED</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 <xrpld/app/ledger/Ledger.h></span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include <xrpld/core/ConfigSections.h></span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> </div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include <xrpl/protocol/Feature.h></span></div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include <xrpl/protocol/Protocol.h></span></div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include <xrpl/protocol/STValidation.h></span></div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/optional.html">optional</a>></span></div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> </div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacexrpl.html">xrpl</a> {</div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> </div>
|
|
<div class="foldopen" id="foldopen00019" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="classxrpl_1_1AmendmentTable.html"> 19</a></span><span class="keyword">class </span><a class="code hl_class" href="classxrpl_1_1AmendmentTable.html">AmendmentTable</a></div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span>{</div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="keyword">public</span>:</div>
|
|
<div class="foldopen" id="foldopen00022" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="structxrpl_1_1AmendmentTable_1_1FeatureInfo.html"> 22</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structxrpl_1_1AmendmentTable_1_1FeatureInfo.html">FeatureInfo</a></div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> {</div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="structxrpl_1_1AmendmentTable_1_1FeatureInfo.html#a2837b6429b4be0dca880172d0c8a2c44"> 24</a></span> <a class="code hl_function" href="structxrpl_1_1AmendmentTable_1_1FeatureInfo.html#a2837b6429b4be0dca880172d0c8a2c44">FeatureInfo</a>() = <span class="keyword">delete</span>;</div>
|
|
<div class="foldopen" id="foldopen00025" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="structxrpl_1_1AmendmentTable_1_1FeatureInfo.html#a969ae66413d5d081a6bc6ffc91d1f2e9"> 25</a></span> <a class="code hl_function" href="structxrpl_1_1AmendmentTable_1_1FeatureInfo.html#a969ae66413d5d081a6bc6ffc91d1f2e9">FeatureInfo</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>& n, <a class="code hl_class" href="classxrpl_1_1base__uint.html">uint256</a> <span class="keyword">const</span>& f, <a class="code hl_enumeration" href="namespacexrpl.html#a3d02416a71398d8466f19a6515c944fe">VoteBehavior</a> v)</div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> : <a class="code hl_variable" href="structxrpl_1_1AmendmentTable_1_1FeatureInfo.html#a910349a68276c71a1de2df3d106acff2">name</a>(n), <a class="code hl_variable" href="structxrpl_1_1AmendmentTable_1_1FeatureInfo.html#a9da6212e68b52c48e9fdc9dd014164a1">feature</a>(f), <a class="code hl_variable" href="structxrpl_1_1AmendmentTable_1_1FeatureInfo.html#a28f0834eafdfd510d523c8670bd5edc0">vote</a>(v)</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> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="structxrpl_1_1AmendmentTable_1_1FeatureInfo.html#a910349a68276c71a1de2df3d106acff2"> 30</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span> <a class="code hl_variable" href="structxrpl_1_1AmendmentTable_1_1FeatureInfo.html#a910349a68276c71a1de2df3d106acff2">name</a>;</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="structxrpl_1_1AmendmentTable_1_1FeatureInfo.html#a9da6212e68b52c48e9fdc9dd014164a1"> 31</a></span> <a class="code hl_class" href="classxrpl_1_1base__uint.html">uint256</a> <span class="keyword">const</span> <a class="code hl_variable" href="structxrpl_1_1AmendmentTable_1_1FeatureInfo.html#a9da6212e68b52c48e9fdc9dd014164a1">feature</a>;</div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="structxrpl_1_1AmendmentTable_1_1FeatureInfo.html#a28f0834eafdfd510d523c8670bd5edc0"> 32</a></span> <a class="code hl_enumeration" href="namespacexrpl.html#a3d02416a71398d8466f19a6515c944fe">VoteBehavior</a> <span class="keyword">const</span> <a class="code hl_variable" href="structxrpl_1_1AmendmentTable_1_1FeatureInfo.html#a28f0834eafdfd510d523c8670bd5edc0">vote</a>;</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="classxrpl_1_1AmendmentTable.html#a302669959c28c1e450b27fdefdad1fc9"> 35</a></span> <span class="keyword">virtual</span> <a class="code hl_function" href="classxrpl_1_1AmendmentTable.html#a302669959c28c1e450b27fdefdad1fc9">~AmendmentTable</a>() = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keyword">virtual</span> <a class="code hl_class" href="classxrpl_1_1base__uint.html">uint256</a></div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="classxrpl_1_1AmendmentTable.html#afda55c08657190274dc7d9ac505c4bb0"> 38</a></span> <a class="code hl_function" href="classxrpl_1_1AmendmentTable.html#afda55c08657190274dc7d9ac505c4bb0">find</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>& name) <span class="keyword">const</span> = 0;</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> <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="classxrpl_1_1AmendmentTable.html#a738e99c1009d2c6a86e188cb877ba7eb"> 41</a></span> <a class="code hl_function" href="classxrpl_1_1AmendmentTable.html#a738e99c1009d2c6a86e188cb877ba7eb">veto</a>(<a class="code hl_class" href="classxrpl_1_1base__uint.html">uint256</a> <span class="keyword">const</span>& amendment) = 0;</div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="classxrpl_1_1AmendmentTable.html#a28da7ac5cd6aba5293ae0d018ad3d8d8"> 43</a></span> <a class="code hl_function" href="classxrpl_1_1AmendmentTable.html#a28da7ac5cd6aba5293ae0d018ad3d8d8">unVeto</a>(<a class="code hl_class" href="classxrpl_1_1base__uint.html">uint256</a> <span class="keyword">const</span>& amendment) = 0;</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> </div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="classxrpl_1_1AmendmentTable.html#ab4ac79fbbf88e71b18790fa2ea31db3d"> 46</a></span> <a class="code hl_function" href="classxrpl_1_1AmendmentTable.html#ab4ac79fbbf88e71b18790fa2ea31db3d">enable</a>(<a class="code hl_class" href="classxrpl_1_1base__uint.html">uint256</a> <span class="keyword">const</span>& amendment) = 0;</div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> </div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="classxrpl_1_1AmendmentTable.html#a40797f7228490e22af8918afab5f33fe"> 49</a></span> <a class="code hl_function" href="classxrpl_1_1AmendmentTable.html#a40797f7228490e22af8918afab5f33fe">isEnabled</a>(<a class="code hl_class" href="classxrpl_1_1base__uint.html">uint256</a> <span class="keyword">const</span>& amendment) <span class="keyword">const</span> = 0;</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="classxrpl_1_1AmendmentTable.html#a0ab11feff0efeee09538b6e895c50e64"> 51</a></span> <a class="code hl_function" href="classxrpl_1_1AmendmentTable.html#a0ab11feff0efeee09538b6e895c50e64">isSupported</a>(<a class="code hl_class" href="classxrpl_1_1base__uint.html">uint256</a> <span class="keyword">const</span>& amendment) <span class="keyword">const</span> = 0;</div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="classxrpl_1_1AmendmentTable.html#a58ca7945cf565dd53d3ac5e7dcc3f15c"> 60</a></span> <a class="code hl_function" href="classxrpl_1_1AmendmentTable.html#a58ca7945cf565dd53d3ac5e7dcc3f15c">hasUnsupportedEnabled</a>() <span class="keyword">const</span> = 0;</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keyword">virtual</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<NetClock::time_point></a></div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="classxrpl_1_1AmendmentTable.html#aa7413e856067716cfc89d1ec67f20dad"> 63</a></span> <a class="code hl_function" href="classxrpl_1_1AmendmentTable.html#aa7413e856067716cfc89d1ec67f20dad">firstUnsupportedExpected</a>() <span class="keyword">const</span> = 0;</div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> </div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <span class="keyword">virtual</span> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a></div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="classxrpl_1_1AmendmentTable.html#a5f13062b48ad29095547d451db0ac2a3"> 66</a></span> <a class="code hl_function" href="classxrpl_1_1AmendmentTable.html#a5f13062b48ad29095547d451db0ac2a3">getJson</a>(<span class="keywordtype">bool</span> <a class="code hl_function" href="namespacexrpl.html#a73af86bd8c7d96a36541a9049ec64467">isAdmin</a>) <span class="keyword">const</span> = 0;</div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> </div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="keyword">virtual</span> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a></div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="classxrpl_1_1AmendmentTable.html#a220d3fe60ed63d318093008bf80bd745"> 70</a></span> <a class="code hl_function" href="classxrpl_1_1AmendmentTable.html#a220d3fe60ed63d318093008bf80bd745">getJson</a>(<a class="code hl_class" href="classxrpl_1_1base__uint.html">uint256</a> <span class="keyword">const</span>& amendment, <span class="keywordtype">bool</span> <a class="code hl_function" href="namespacexrpl.html#a73af86bd8c7d96a36541a9049ec64467">isAdmin</a>) <span class="keyword">const</span> = 0;</div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> </div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keywordtype">void</span></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_1AmendmentTable.html#a671e13b75ffacdc6a5f9221f4154367c"> 74</a></span> <a class="code hl_function" href="classxrpl_1_1AmendmentTable.html#a671e13b75ffacdc6a5f9221f4154367c">doValidatedLedger</a>(</div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<ReadView const></a> <span class="keyword">const</span>& lastValidatedLedger)</div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> {</div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="classxrpl_1_1AmendmentTable.html#a89a63324c45b5bafd401e041c634ce56">needValidatedLedger</a>(lastValidatedLedger->seq()))</div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <a class="code hl_function" href="classxrpl_1_1AmendmentTable.html#a671e13b75ffacdc6a5f9221f4154367c">doValidatedLedger</a>(</div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> lastValidatedLedger->seq(),</div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <a class="code hl_function" href="namespacexrpl.html#a29947516591134d0de73b88f7fa5d437">getEnabledAmendments</a>(*lastValidatedLedger),</div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <a class="code hl_function" href="namespacexrpl.html#a9b107d933efa0cc58161fc01d5d930d6">getMajorityAmendments</a>(*lastValidatedLedger));</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> </div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="classxrpl_1_1AmendmentTable.html#a89a63324c45b5bafd401e041c634ce56"> 88</a></span> <a class="code hl_function" href="classxrpl_1_1AmendmentTable.html#a89a63324c45b5bafd401e041c634ce56">needValidatedLedger</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">LedgerIndex</a> seq) <span class="keyword">const</span> = 0;</div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> </div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"><a class="line" href="classxrpl_1_1AmendmentTable.html#ad71515a859031e7be2ea1e24626cc88f"> 91</a></span> <a class="code hl_function" href="classxrpl_1_1AmendmentTable.html#ad71515a859031e7be2ea1e24626cc88f">doValidatedLedger</a>(</div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">LedgerIndex</a> ledgerSeq,</div>
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set<uint256></a> <span class="keyword">const</span>& enabled,</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/map.html">majorityAmendments_t</a> <span class="keyword">const</span>& majority) = 0;</div>
|
|
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
|
|
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <span class="comment">// Called when the set of trusted validators changes.</span></div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"><a class="line" href="classxrpl_1_1AmendmentTable.html#abf0c9a5c1540c8cff8212d5112269fcf"> 98</a></span> <a class="code hl_function" href="classxrpl_1_1AmendmentTable.html#abf0c9a5c1540c8cff8212d5112269fcf">trustChanged</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/unordered_set.html">hash_set<PublicKey></a> <span class="keyword">const</span>& allTrusted) = 0;</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> <span class="comment">// Called by the consensus code when we need to</span></div>
|
|
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> <span class="comment">// inject pseudo-transactions</span></div>
|
|
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> <span class="keyword">virtual</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map<uint256, std::uint32_t></a></div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="classxrpl_1_1AmendmentTable.html#ad213696fe0f6653c8fddbc5d183dc5be"> 103</a></span> <a class="code hl_function" href="classxrpl_1_1AmendmentTable.html#ad213696fe0f6653c8fddbc5d183dc5be">doVoting</a>(</div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <a class="code hl_class" href="classxrpl_1_1Rules.html">Rules</a> <span class="keyword">const</span>& rules,</div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/time_point.html">NetClock::time_point</a> closeTime,</div>
|
|
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set<uint256></a> <span class="keyword">const</span>& enabledAmendments,</div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/map.html">majorityAmendments_t</a> <span class="keyword">const</span>& majorityAmendments,</div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a><<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<STValidation></a>> <span class="keyword">const</span>& valSet) = 0;</div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> </div>
|
|
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <span class="comment">// Called by the consensus code when we need to</span></div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <span class="comment">// add feature entries to a validation</span></div>
|
|
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keyword">virtual</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<uint256></a></div>
|
|
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"><a class="line" href="classxrpl_1_1AmendmentTable.html#a15cb6bb43863793c8968ef7919a15a16"> 113</a></span> <a class="code hl_function" href="classxrpl_1_1AmendmentTable.html#a15cb6bb43863793c8968ef7919a15a16">doValidation</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set<uint256></a> <span class="keyword">const</span>& enabled) <span class="keyword">const</span> = 0;</div>
|
|
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> </div>
|
|
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <span class="comment">// The set of amendments to enable in the genesis ledger</span></div>
|
|
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <span class="comment">// This will return all known, non-vetoed amendments.</span></div>
|
|
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="comment">// If we ever have two amendments that should not both be</span></div>
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <span class="comment">// enabled at the same time, we should ensure one is vetoed.</span></div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <span class="keyword">virtual</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<uint256></a></div>
|
|
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"><a class="line" href="classxrpl_1_1AmendmentTable.html#a61c6e56cf8a58e7e3984e935cf95fc86"> 120</a></span> <a class="code hl_function" href="classxrpl_1_1AmendmentTable.html#a61c6e56cf8a58e7e3984e935cf95fc86">getDesired</a>() <span class="keyword">const</span> = 0;</div>
|
|
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> </div>
|
|
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> <span class="comment">// The function below adapts the API callers expect to the</span></div>
|
|
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="comment">// internal amendment table API. This allows the amendment</span></div>
|
|
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> <span class="comment">// table implementation to be independent of the ledger</span></div>
|
|
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> <span class="comment">// implementation. These APIs will merge when the view code</span></div>
|
|
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <span class="comment">// supports a full ledger API</span></div>
|
|
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> </div>
|
|
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> <span class="keywordtype">void</span></div>
|
|
<div class="foldopen" id="foldopen00129" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"><a class="line" href="classxrpl_1_1AmendmentTable.html#ae12166ccb7b045e7450afdef1cd2159f"> 129</a></span> <a class="code hl_function" href="classxrpl_1_1AmendmentTable.html#ae12166ccb7b045e7450afdef1cd2159f">doVoting</a>(</div>
|
|
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<ReadView const></a> <span class="keyword">const</span>& lastClosedLedger,</div>
|
|
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a><<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<STValidation></a>> <span class="keyword">const</span>& parentValidations,</div>
|
|
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<SHAMap></a> <span class="keyword">const</span>& initialPosition,</div>
|
|
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> <a class="code hl_class" href="classbeast_1_1Journal.html">beast::Journal</a> j)</div>
|
|
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> {</div>
|
|
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <span class="comment">// Ask implementation what to do</span></div>
|
|
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <span class="keyword">auto</span> actions = <a class="code hl_function" href="classxrpl_1_1AmendmentTable.html#ad213696fe0f6653c8fddbc5d183dc5be">doVoting</a>(</div>
|
|
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> lastClosedLedger->rules(),</div>
|
|
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> lastClosedLedger->parentCloseTime(),</div>
|
|
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> <a class="code hl_function" href="namespacexrpl.html#a29947516591134d0de73b88f7fa5d437">getEnabledAmendments</a>(*lastClosedLedger),</div>
|
|
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <a class="code hl_function" href="namespacexrpl.html#a9b107d933efa0cc58161fc01d5d930d6">getMajorityAmendments</a>(*lastClosedLedger),</div>
|
|
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> parentValidations);</div>
|
|
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> </div>
|
|
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="comment">// Inject appropriate pseudo-transactions</span></div>
|
|
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& it : actions)</div>
|
|
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> {</div>
|
|
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <a class="code hl_class" href="classxrpl_1_1STTx.html">STTx</a> amendTx(</div>
|
|
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> ttAMENDMENT,</div>
|
|
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> [&it, seq = lastClosedLedger->seq() + 1](<span class="keyword">auto</span>& obj) {</div>
|
|
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> obj.setAccountID(sfAccount, AccountID());</div>
|
|
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> obj.setFieldH256(sfAmendment, it.first);</div>
|
|
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> obj.setFieldU32(sfLedgerSequence, seq);</div>
|
|
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> </div>
|
|
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> if (it.second != 0)</div>
|
|
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> obj.setFieldU32(sfFlags, it.second);</div>
|
|
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> });</div>
|
|
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> </div>
|
|
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> <a class="code hl_class" href="classxrpl_1_1Serializer.html">Serializer</a> s;</div>
|
|
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> amendTx.<a class="code hl_function" href="classxrpl_1_1STObject.html#a7ae210559782126638ca3712e9d3f632">add</a>(s);</div>
|
|
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> </div>
|
|
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> JLOG(j.<a class="code hl_function" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) << <span class="stringliteral">"Amendments: Adding pseudo-transaction: "</span></div>
|
|
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> << amendTx.<a class="code hl_function" href="classxrpl_1_1STTx.html#ae26f99a92c445893121bc221800e3309">getTransactionID</a>() << <span class="stringliteral">": "</span></div>
|
|
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> << <a class="code hl_function" href="namespacexrpl.html#a36b95700599f590017b5912e220baf5b">strHex</a>(s.<a class="code hl_function" href="classxrpl_1_1Serializer.html#a9fdb78b3d7b575806292496989bd138a">slice</a>()) << <span class="stringliteral">": "</span> << amendTx;</div>
|
|
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> </div>
|
|
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> initialPosition->addGiveItem(</div>
|
|
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <a class="code hl_enumvalue" href="namespacexrpl.html#a13201019bfaccabd85a221c9207a5255a9b447756a7d7ddf4e828beeb38d079f6">SHAMapNodeType::tnTRANSACTION_NM</a>,</div>
|
|
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> <a class="code hl_function" href="namespacexrpl.html#a2a6f7d9ca24cef02a5f48130be9f8ed2">make_shamapitem</a>(amendTx.<a class="code hl_function" href="classxrpl_1_1STTx.html#ae26f99a92c445893121bc221800e3309">getTransactionID</a>(), s.<a class="code hl_function" href="classxrpl_1_1Serializer.html#a9fdb78b3d7b575806292496989bd138a">slice</a>()));</div>
|
|
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> }</div>
|
|
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> </div>
|
|
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<AmendmentTable></a></div>
|
|
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span><a class="code hl_function" href="namespacexrpl.html#a62d70d54c6b910ebf5d8514c089b7c3a">make_AmendmentTable</a>(</div>
|
|
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> Application& app,</div>
|
|
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::seconds</a> majorityTime,</div>
|
|
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<AmendmentTable::FeatureInfo></a> <span class="keyword">const</span>& supported,</div>
|
|
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> Section <span class="keyword">const</span>& enabled,</div>
|
|
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> Section <span class="keyword">const</span>& vetoed,</div>
|
|
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> <a class="code hl_class" href="classbeast_1_1Journal.html">beast::Journal</a> journal);</div>
|
|
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> </div>
|
|
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span>} <span class="comment">// namespace xrpl</span></div>
|
|
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> </div>
|
|
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span><span class="preprocessor">#endif</span></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>
|
|
<div class="ttc" id="aclassJson_1_1Value_html"><div class="ttname"><a href="classJson_1_1Value.html">Json::Value</a></div><div class="ttdoc">Represents a JSON value.</div><div class="ttdef"><b>Definition</b> <a href="json__value_8h_source.html#l00130">json_value.h:131</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_a556228cb60bcf405c225d3f64b7b01ae"><div class="ttname"><a href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">beast::Journal::debug</a></div><div class="ttdeci">Stream debug() const</div><div class="ttdef"><b>Definition</b> <a href="Journal_8h_source.html#l00309">Journal.h:309</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1AmendmentTable_html"><div class="ttname"><a href="classxrpl_1_1AmendmentTable.html">xrpl::AmendmentTable</a></div><div class="ttdoc">The amendment table stores the list of enabled and potential amendments.</div><div class="ttdef"><b>Definition</b> <a href="AmendmentTable_8h_source.html#l00019">AmendmentTable.h:20</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1AmendmentTable_html_a0ab11feff0efeee09538b6e895c50e64"><div class="ttname"><a href="classxrpl_1_1AmendmentTable.html#a0ab11feff0efeee09538b6e895c50e64">xrpl::AmendmentTable::isSupported</a></div><div class="ttdeci">virtual bool isSupported(uint256 const &amendment) const =0</div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1AmendmentTable_html_a15cb6bb43863793c8968ef7919a15a16"><div class="ttname"><a href="classxrpl_1_1AmendmentTable.html#a15cb6bb43863793c8968ef7919a15a16">xrpl::AmendmentTable::doValidation</a></div><div class="ttdeci">virtual std::vector< uint256 > doValidation(std::set< uint256 > const &enabled) const =0</div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1AmendmentTable_html_a220d3fe60ed63d318093008bf80bd745"><div class="ttname"><a href="classxrpl_1_1AmendmentTable.html#a220d3fe60ed63d318093008bf80bd745">xrpl::AmendmentTable::getJson</a></div><div class="ttdeci">virtual Json::Value getJson(uint256 const &amendment, bool isAdmin) const =0</div><div class="ttdoc">Returns a Json::objectValue.</div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1AmendmentTable_html_a28da7ac5cd6aba5293ae0d018ad3d8d8"><div class="ttname"><a href="classxrpl_1_1AmendmentTable.html#a28da7ac5cd6aba5293ae0d018ad3d8d8">xrpl::AmendmentTable::unVeto</a></div><div class="ttdeci">virtual bool unVeto(uint256 const &amendment)=0</div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1AmendmentTable_html_a302669959c28c1e450b27fdefdad1fc9"><div class="ttname"><a href="classxrpl_1_1AmendmentTable.html#a302669959c28c1e450b27fdefdad1fc9">xrpl::AmendmentTable::~AmendmentTable</a></div><div class="ttdeci">virtual ~AmendmentTable()=default</div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1AmendmentTable_html_a40797f7228490e22af8918afab5f33fe"><div class="ttname"><a href="classxrpl_1_1AmendmentTable.html#a40797f7228490e22af8918afab5f33fe">xrpl::AmendmentTable::isEnabled</a></div><div class="ttdeci">virtual bool isEnabled(uint256 const &amendment) const =0</div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1AmendmentTable_html_a58ca7945cf565dd53d3ac5e7dcc3f15c"><div class="ttname"><a href="classxrpl_1_1AmendmentTable.html#a58ca7945cf565dd53d3ac5e7dcc3f15c">xrpl::AmendmentTable::hasUnsupportedEnabled</a></div><div class="ttdeci">virtual bool hasUnsupportedEnabled() const =0</div><div class="ttdoc">returns true if one or more amendments on the network have been enabled that this server does not sup...</div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1AmendmentTable_html_a5f13062b48ad29095547d451db0ac2a3"><div class="ttname"><a href="classxrpl_1_1AmendmentTable.html#a5f13062b48ad29095547d451db0ac2a3">xrpl::AmendmentTable::getJson</a></div><div class="ttdeci">virtual Json::Value getJson(bool isAdmin) const =0</div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1AmendmentTable_html_a61c6e56cf8a58e7e3984e935cf95fc86"><div class="ttname"><a href="classxrpl_1_1AmendmentTable.html#a61c6e56cf8a58e7e3984e935cf95fc86">xrpl::AmendmentTable::getDesired</a></div><div class="ttdeci">virtual std::vector< uint256 > getDesired() const =0</div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1AmendmentTable_html_a671e13b75ffacdc6a5f9221f4154367c"><div class="ttname"><a href="classxrpl_1_1AmendmentTable.html#a671e13b75ffacdc6a5f9221f4154367c">xrpl::AmendmentTable::doValidatedLedger</a></div><div class="ttdeci">void doValidatedLedger(std::shared_ptr< ReadView const > const &lastValidatedLedger)</div><div class="ttdoc">Called when a new fully-validated ledger is accepted.</div><div class="ttdef"><b>Definition</b> <a href="AmendmentTable_8h_source.html#l00074">AmendmentTable.h:74</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1AmendmentTable_html_a738e99c1009d2c6a86e188cb877ba7eb"><div class="ttname"><a href="classxrpl_1_1AmendmentTable.html#a738e99c1009d2c6a86e188cb877ba7eb">xrpl::AmendmentTable::veto</a></div><div class="ttdeci">virtual bool veto(uint256 const &amendment)=0</div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1AmendmentTable_html_a89a63324c45b5bafd401e041c634ce56"><div class="ttname"><a href="classxrpl_1_1AmendmentTable.html#a89a63324c45b5bafd401e041c634ce56">xrpl::AmendmentTable::needValidatedLedger</a></div><div class="ttdeci">virtual bool needValidatedLedger(LedgerIndex seq) const =0</div><div class="ttdoc">Called to determine whether the amendment logic needs to process a new validated ledger.</div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1AmendmentTable_html_aa7413e856067716cfc89d1ec67f20dad"><div class="ttname"><a href="classxrpl_1_1AmendmentTable.html#aa7413e856067716cfc89d1ec67f20dad">xrpl::AmendmentTable::firstUnsupportedExpected</a></div><div class="ttdeci">virtual std::optional< NetClock::time_point > firstUnsupportedExpected() const =0</div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1AmendmentTable_html_ab4ac79fbbf88e71b18790fa2ea31db3d"><div class="ttname"><a href="classxrpl_1_1AmendmentTable.html#ab4ac79fbbf88e71b18790fa2ea31db3d">xrpl::AmendmentTable::enable</a></div><div class="ttdeci">virtual bool enable(uint256 const &amendment)=0</div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1AmendmentTable_html_abf0c9a5c1540c8cff8212d5112269fcf"><div class="ttname"><a href="classxrpl_1_1AmendmentTable.html#abf0c9a5c1540c8cff8212d5112269fcf">xrpl::AmendmentTable::trustChanged</a></div><div class="ttdeci">virtual void trustChanged(hash_set< PublicKey > const &allTrusted)=0</div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1AmendmentTable_html_ad213696fe0f6653c8fddbc5d183dc5be"><div class="ttname"><a href="classxrpl_1_1AmendmentTable.html#ad213696fe0f6653c8fddbc5d183dc5be">xrpl::AmendmentTable::doVoting</a></div><div class="ttdeci">virtual std::map< uint256, std::uint32_t > doVoting(Rules const &rules, NetClock::time_point closeTime, std::set< uint256 > const &enabledAmendments, majorityAmendments_t const &majorityAmendments, std::vector< std::shared_ptr< STValidation > > const &valSet)=0</div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1AmendmentTable_html_ad71515a859031e7be2ea1e24626cc88f"><div class="ttname"><a href="classxrpl_1_1AmendmentTable.html#ad71515a859031e7be2ea1e24626cc88f">xrpl::AmendmentTable::doValidatedLedger</a></div><div class="ttdeci">virtual void doValidatedLedger(LedgerIndex ledgerSeq, std::set< uint256 > const &enabled, majorityAmendments_t const &majority)=0</div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1AmendmentTable_html_ae12166ccb7b045e7450afdef1cd2159f"><div class="ttname"><a href="classxrpl_1_1AmendmentTable.html#ae12166ccb7b045e7450afdef1cd2159f">xrpl::AmendmentTable::doVoting</a></div><div class="ttdeci">void doVoting(std::shared_ptr< ReadView const > const &lastClosedLedger, std::vector< std::shared_ptr< STValidation > > const &parentValidations, std::shared_ptr< SHAMap > const &initialPosition, beast::Journal j)</div><div class="ttdef"><b>Definition</b> <a href="AmendmentTable_8h_source.html#l00129">AmendmentTable.h:129</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1AmendmentTable_html_afda55c08657190274dc7d9ac505c4bb0"><div class="ttname"><a href="classxrpl_1_1AmendmentTable.html#afda55c08657190274dc7d9ac505c4bb0">xrpl::AmendmentTable::find</a></div><div class="ttdeci">virtual uint256 find(std::string const &name) const =0</div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1Rules_html"><div class="ttname"><a href="classxrpl_1_1Rules.html">xrpl::Rules</a></div><div class="ttdoc">Rules controlling protocol behavior.</div><div class="ttdef"><b>Definition</b> <a href="Rules_8h_source.html#l00018">Rules.h:19</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1STObject_html_a7ae210559782126638ca3712e9d3f632"><div class="ttname"><a href="classxrpl_1_1STObject.html#a7ae210559782126638ca3712e9d3f632">xrpl::STObject::add</a></div><div class="ttdeci">void add(Serializer &s) const override</div><div class="ttdef"><b>Definition</b> <a href="STObject_8cpp_source.html#l00122">STObject.cpp:122</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_ae26f99a92c445893121bc221800e3309"><div class="ttname"><a href="classxrpl_1_1STTx.html#ae26f99a92c445893121bc221800e3309">xrpl::STTx::getTransactionID</a></div><div class="ttdeci">uint256 getTransactionID() const</div><div class="ttdef"><b>Definition</b> <a href="STTx_8h_source.html#l00199">STTx.h:199</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1Serializer_html"><div class="ttname"><a href="classxrpl_1_1Serializer.html">xrpl::Serializer</a></div><div class="ttdef"><b>Definition</b> <a href="Serializer_8h_source.html#l00021">Serializer.h:22</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1Serializer_html_a9fdb78b3d7b575806292496989bd138a"><div class="ttname"><a href="classxrpl_1_1Serializer.html#a9fdb78b3d7b575806292496989bd138a">xrpl::Serializer::slice</a></div><div class="ttdeci">Slice slice() const noexcept</div><div class="ttdef"><b>Definition</b> <a href="Serializer_8h_source.html#l00047">Serializer.h:47</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="aduration_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::seconds</a></div></div>
|
|
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</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>
|
|
<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_a13201019bfaccabd85a221c9207a5255a9b447756a7d7ddf4e828beeb38d079f6"><div class="ttname"><a href="namespacexrpl.html#a13201019bfaccabd85a221c9207a5255a9b447756a7d7ddf4e828beeb38d079f6">xrpl::SHAMapNodeType::tnTRANSACTION_NM</a></div><div class="ttdeci">@ tnTRANSACTION_NM</div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a29947516591134d0de73b88f7fa5d437"><div class="ttname"><a href="namespacexrpl.html#a29947516591134d0de73b88f7fa5d437">xrpl::getEnabledAmendments</a></div><div class="ttdeci">std::set< uint256 > getEnabledAmendments(ReadView const &view)</div><div class="ttdef"><b>Definition</b> <a href="View_8cpp_source.html#l01023">View.cpp:1023</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a2a6f7d9ca24cef02a5f48130be9f8ed2"><div class="ttname"><a href="namespacexrpl.html#a2a6f7d9ca24cef02a5f48130be9f8ed2">xrpl::make_shamapitem</a></div><div class="ttdeci">boost::intrusive_ptr< SHAMapItem > make_shamapitem(uint256 const &tag, Slice data)</div><div class="ttdef"><b>Definition</b> <a href="SHAMapItem_8h_source.html#l00142">SHAMapItem.h:142</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a36b95700599f590017b5912e220baf5b"><div class="ttname"><a href="namespacexrpl.html#a36b95700599f590017b5912e220baf5b">xrpl::strHex</a></div><div class="ttdeci">std::string strHex(FwdIt begin, FwdIt end)</div><div class="ttdef"><b>Definition</b> <a href="strHex_8h_source.html#l00011">strHex.h:11</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a3d02416a71398d8466f19a6515c944fe"><div class="ttname"><a href="namespacexrpl.html#a3d02416a71398d8466f19a6515c944fe">xrpl::VoteBehavior</a></div><div class="ttdeci">VoteBehavior</div><div class="ttdef"><b>Definition</b> <a href="Feature_8h_source.html#l00068">Feature.h:68</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a62d70d54c6b910ebf5d8514c089b7c3a"><div class="ttname"><a href="namespacexrpl.html#a62d70d54c6b910ebf5d8514c089b7c3a">xrpl::make_AmendmentTable</a></div><div class="ttdeci">std::unique_ptr< AmendmentTable > make_AmendmentTable(Application &app, std::chrono::seconds majorityTime, std::vector< AmendmentTable::FeatureInfo > const &supported, Section const &enabled, Section const &vetoed, beast::Journal journal)</div><div class="ttdef"><b>Definition</b> <a href="AmendmentTable_8cpp_source.html#l01033">AmendmentTable.cpp:1033</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a73af86bd8c7d96a36541a9049ec64467"><div class="ttname"><a href="namespacexrpl.html#a73af86bd8c7d96a36541a9049ec64467">xrpl::isAdmin</a></div><div class="ttdeci">bool isAdmin(Port const &port, Json::Value const &params, beast::IP::Address const &remoteIp)</div><div class="ttdef"><b>Definition</b> <a href="Role_8cpp_source.html#l00066">Role.cpp:66</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a9b107d933efa0cc58161fc01d5d930d6"><div class="ttname"><a href="namespacexrpl.html#a9b107d933efa0cc58161fc01d5d930d6">xrpl::getMajorityAmendments</a></div><div class="ttdeci">majorityAmendments_t getMajorityAmendments(ReadView const &view)</div><div class="ttdef"><b>Definition</b> <a href="View_8cpp_source.html#l01040">View.cpp:1040</a></div></div>
|
|
<div class="ttc" id="aoptional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/optional.html">optional</a></div></div>
|
|
<div class="ttc" id="aset_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/set.html">std::set</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="astructxrpl_1_1AmendmentTable_1_1FeatureInfo_html"><div class="ttname"><a href="structxrpl_1_1AmendmentTable_1_1FeatureInfo.html">xrpl::AmendmentTable::FeatureInfo</a></div><div class="ttdef"><b>Definition</b> <a href="AmendmentTable_8h_source.html#l00022">AmendmentTable.h:23</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1AmendmentTable_1_1FeatureInfo_html_a2837b6429b4be0dca880172d0c8a2c44"><div class="ttname"><a href="structxrpl_1_1AmendmentTable_1_1FeatureInfo.html#a2837b6429b4be0dca880172d0c8a2c44">xrpl::AmendmentTable::FeatureInfo::FeatureInfo</a></div><div class="ttdeci">FeatureInfo()=delete</div></div>
|
|
<div class="ttc" id="astructxrpl_1_1AmendmentTable_1_1FeatureInfo_html_a28f0834eafdfd510d523c8670bd5edc0"><div class="ttname"><a href="structxrpl_1_1AmendmentTable_1_1FeatureInfo.html#a28f0834eafdfd510d523c8670bd5edc0">xrpl::AmendmentTable::FeatureInfo::vote</a></div><div class="ttdeci">VoteBehavior const vote</div><div class="ttdef"><b>Definition</b> <a href="AmendmentTable_8h_source.html#l00032">AmendmentTable.h:32</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1AmendmentTable_1_1FeatureInfo_html_a910349a68276c71a1de2df3d106acff2"><div class="ttname"><a href="structxrpl_1_1AmendmentTable_1_1FeatureInfo.html#a910349a68276c71a1de2df3d106acff2">xrpl::AmendmentTable::FeatureInfo::name</a></div><div class="ttdeci">std::string const name</div><div class="ttdef"><b>Definition</b> <a href="AmendmentTable_8h_source.html#l00030">AmendmentTable.h:30</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1AmendmentTable_1_1FeatureInfo_html_a969ae66413d5d081a6bc6ffc91d1f2e9"><div class="ttname"><a href="structxrpl_1_1AmendmentTable_1_1FeatureInfo.html#a969ae66413d5d081a6bc6ffc91d1f2e9">xrpl::AmendmentTable::FeatureInfo::FeatureInfo</a></div><div class="ttdeci">FeatureInfo(std::string const &n, uint256 const &f, VoteBehavior v)</div><div class="ttdef"><b>Definition</b> <a href="AmendmentTable_8h_source.html#l00025">AmendmentTable.h:25</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1AmendmentTable_1_1FeatureInfo_html_a9da6212e68b52c48e9fdc9dd014164a1"><div class="ttname"><a href="structxrpl_1_1AmendmentTable_1_1FeatureInfo.html#a9da6212e68b52c48e9fdc9dd014164a1">xrpl::AmendmentTable::FeatureInfo::feature</a></div><div class="ttdeci">uint256 const feature</div><div class="ttdef"><b>Definition</b> <a href="AmendmentTable_8h_source.html#l00031">AmendmentTable.h:31</a></div></div>
|
|
<div class="ttc" id="atime_point_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/chrono/time_point.html">std::chrono::time_point</a></div></div>
|
|
<div class="ttc" id="aunique_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a></div></div>
|
|
<div class="ttc" id="aunordered_set_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/unordered_set.html">std::unordered_set</a></div></div>
|
|
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></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>
|