Files
rippled/AmendmentTable_8h_source.html
2025-10-30 12:43:05 -07:00

343 lines
60 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&amp;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&amp;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&amp;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="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">/*</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> This file is part of rippled: https://github.com/ripple/rippled</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> Copyright (c) 2012, 2013 Ripple Labs Inc.</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"></span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> Permission to use, copy, modify, and/or distribute this software for any</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> purpose with or without fee is hereby granted, provided that the above</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> copyright notice and this permission notice appear in all copies.</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"></span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> THE SOFTWARE IS PROVIDED &quot;AS IS&quot; AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment"> ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment"> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment"> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment">*/</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment">//==============================================================================</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#ifndef RIPPLE_APP_MISC_AMENDMENTTABLE_H_INCLUDED</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#define RIPPLE_APP_MISC_AMENDMENTTABLE_H_INCLUDED</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include &lt;xrpld/app/ledger/Ledger.h&gt;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include &lt;xrpld/core/ConfigSections.h&gt;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include &lt;xrpl/protocol/Feature.h&gt;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include &lt;xrpl/protocol/Protocol.h&gt;</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include &lt;xrpl/protocol/STValidation.h&gt;</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/optional.html">optional</a>&gt;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
<div class="foldopen" id="foldopen00038" data-start="{" data-end="};">
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html"> 38</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1AmendmentTable.html">AmendmentTable</a></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span>{</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span><span class="keyword">public</span>:</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="structripple_1_1AmendmentTable_1_1FeatureInfo.html"> 41</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html">FeatureInfo</a></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"><a class="line" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#acb08526a26890eaa42c3908db2a957c0"> 43</a></span> <a class="code hl_function" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#acb08526a26890eaa42c3908db2a957c0">FeatureInfo</a>() = <span class="keyword">delete</span>;</div>
<div class="foldopen" id="foldopen00044" data-start="{" data-end="}">
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a713ff87d8e021b7169583da3dcfb5722"> 44</a></span> <a class="code hl_function" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a713ff87d8e021b7169583da3dcfb5722">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>&amp; n, <a class="code hl_class" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; f, <a class="code hl_enumeration" href="namespaceripple.html#aa5778f9faa15e3677dcda7975d9db7c6">VoteBehavior</a> v)</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> : <a class="code hl_variable" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a7506d3e3b6c259f0cda7a3e7c89e2978">name</a>(n), <a class="code hl_variable" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a3cee968700e164ba39010f1cad09e4fc">feature</a>(f), <a class="code hl_variable" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a83f813e7003e2cbab12f4820d7cf1fc3">vote</a>(v)</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> {</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> }</div>
</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"><a class="line" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a7506d3e3b6c259f0cda7a3e7c89e2978"> 49</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="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a7506d3e3b6c259f0cda7a3e7c89e2978">name</a>;</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a3cee968700e164ba39010f1cad09e4fc"> 50</a></span> <a class="code hl_class" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span> <a class="code hl_variable" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a3cee968700e164ba39010f1cad09e4fc">feature</a>;</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a83f813e7003e2cbab12f4820d7cf1fc3"> 51</a></span> <a class="code hl_enumeration" href="namespaceripple.html#aa5778f9faa15e3677dcda7975d9db7c6">VoteBehavior</a> <span class="keyword">const</span> <a class="code hl_variable" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a83f813e7003e2cbab12f4820d7cf1fc3">vote</a>;</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> };</div>
</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#aef6ef4d534e0ef300563731966ed7f1d"> 54</a></span> <span class="keyword">virtual</span> <a class="code hl_function" href="classripple_1_1AmendmentTable.html#aef6ef4d534e0ef300563731966ed7f1d">~AmendmentTable</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> </div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keyword">virtual</span> <a class="code hl_class" href="classripple_1_1base__uint.html">uint256</a></div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#aca7fd10cd15869ffea10ee5d769ad744"> 57</a></span> <a class="code hl_function" href="classripple_1_1AmendmentTable.html#aca7fd10cd15869ffea10ee5d769ad744">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>&amp; name) <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</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="classripple_1_1AmendmentTable.html#a5a0a3c98955ce15af2458780544edb71"> 60</a></span> <a class="code hl_function" href="classripple_1_1AmendmentTable.html#a5a0a3c98955ce15af2458780544edb71">veto</a>(<a class="code hl_class" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; amendment) = 0;</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#ad57021ddc7e6f87d04dd57fba582eb31"> 62</a></span> <a class="code hl_function" href="classripple_1_1AmendmentTable.html#ad57021ddc7e6f87d04dd57fba582eb31">unVeto</a>(<a class="code hl_class" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; amendment) = 0;</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> </div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#ac9e23d71814bcf7c601f37e0b9323b1a"> 65</a></span> <a class="code hl_function" href="classripple_1_1AmendmentTable.html#ac9e23d71814bcf7c601f37e0b9323b1a">enable</a>(<a class="code hl_class" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; amendment) = 0;</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> </div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#ade548ac91394d89376f0a8bfb1ebd903"> 68</a></span> <a class="code hl_function" href="classripple_1_1AmendmentTable.html#ade548ac91394d89376f0a8bfb1ebd903">isEnabled</a>(<a class="code hl_class" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; amendment) <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#a5fce75b79a87e541918be639a28f3c87"> 70</a></span> <a class="code hl_function" href="classripple_1_1AmendmentTable.html#a5fce75b79a87e541918be639a28f3c87">isSupported</a>(<a class="code hl_class" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; amendment) <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="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#a8eee69252a4b7961d0d8cd411896eeb9"> 79</a></span> <a class="code hl_function" href="classripple_1_1AmendmentTable.html#a8eee69252a4b7961d0d8cd411896eeb9">hasUnsupportedEnabled</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> </div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="keyword">virtual</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;NetClock::time_point&gt;</a></div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#a4f56e4335f1f02ab22f66e0d52dbdb24"> 82</a></span> <a class="code hl_function" href="classripple_1_1AmendmentTable.html#a4f56e4335f1f02ab22f66e0d52dbdb24">firstUnsupportedExpected</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> </div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</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="l00085" name="l00085"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#a6ac6934733758e569d25e1e136fb84d5"> 85</a></span> <a class="code hl_function" href="classripple_1_1AmendmentTable.html#a6ac6934733758e569d25e1e136fb84d5">getJson</a>(<span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceripple.html#a4267716481f84b7fd7ea521266fa9ef8">isAdmin</a>) <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> </div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</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="l00089" name="l00089"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#a2b779a15190c7e9ba93ca99bada7093c"> 89</a></span> <a class="code hl_function" href="classripple_1_1AmendmentTable.html#a2b779a15190c7e9ba93ca99bada7093c">getJson</a>(<a class="code hl_class" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; amendment, <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceripple.html#a4267716481f84b7fd7ea521266fa9ef8">isAdmin</a>) <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> </div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00093" data-start="{" data-end="}">
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#ac721ac20262609226483f1436b0df02f"> 93</a></span> <a class="code hl_function" href="classripple_1_1AmendmentTable.html#ac721ac20262609226483f1436b0df02f">doValidatedLedger</a>(</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/memory/shared_ptr.html">std::shared_ptr&lt;ReadView const&gt;</a> <span class="keyword">const</span>&amp; lastValidatedLedger)</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="keywordflow">if</span> (<a class="code hl_function" href="classripple_1_1AmendmentTable.html#ae37ca6d253d452ae23a6e160d9180e05">needValidatedLedger</a>(lastValidatedLedger-&gt;seq()))</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <a class="code hl_function" href="classripple_1_1AmendmentTable.html#ac721ac20262609226483f1436b0df02f">doValidatedLedger</a>(</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> lastValidatedLedger-&gt;seq(),</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <a class="code hl_function" href="namespaceripple.html#a6f8b0cab74710c17299c1d37f3e05b48">getEnabledAmendments</a>(*lastValidatedLedger),</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> <a class="code hl_function" href="namespaceripple.html#ab6b00b336996c0b0a3fe2e8a8d5fa76a">getMajorityAmendments</a>(*lastValidatedLedger));</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> }</div>
</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> </div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#ae37ca6d253d452ae23a6e160d9180e05"> 107</a></span> <a class="code hl_function" href="classripple_1_1AmendmentTable.html#ae37ca6d253d452ae23a6e160d9180e05">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="l00108" name="l00108"></a><span class="lineno"> 108</span> </div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#a48f050b47af8f00cafd237e2cddb2929"> 110</a></span> <a class="code hl_function" href="classripple_1_1AmendmentTable.html#a48f050b47af8f00cafd237e2cddb2929">doValidatedLedger</a>(</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</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="l00112" name="l00112"></a><span class="lineno"> 112</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set&lt;uint256&gt;</a> <span class="keyword">const</span>&amp; enabled,</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/map.html">majorityAmendments_t</a> <span class="keyword">const</span>&amp; majority) = 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">// Called when the set of trusted validators changes.</span></div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#a1f80283254917a595e4fda62ee746e79"> 117</a></span> <a class="code hl_function" href="classripple_1_1AmendmentTable.html#a1f80283254917a595e4fda62ee746e79">trustChanged</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/unordered_set.html">hash_set&lt;PublicKey&gt;</a> <span class="keyword">const</span>&amp; allTrusted) = 0;</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> </div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <span class="comment">// Called by the consensus code when we need to</span></div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> <span class="comment">// inject pseudo-transactions</span></div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <span class="keyword">virtual</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map&lt;uint256, std::uint32_t&gt;</a></div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#a530d29eb5abf5854c4f26211948599b2"> 122</a></span> <a class="code hl_function" href="classripple_1_1AmendmentTable.html#a530d29eb5abf5854c4f26211948599b2">doVoting</a>(</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <a class="code hl_class" href="classripple_1_1Rules.html">Rules</a> <span class="keyword">const</span>&amp; rules,</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</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="l00125" name="l00125"></a><span class="lineno"> 125</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set&lt;uint256&gt;</a> <span class="keyword">const</span>&amp; enabledAmendments,</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/map.html">majorityAmendments_t</a> <span class="keyword">const</span>&amp; majorityAmendments,</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt;<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;STValidation&gt;</a>&gt; <span class="keyword">const</span>&amp; valSet) = 0;</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> </div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> <span class="comment">// Called by the consensus code when we need to</span></div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> <span class="comment">// add feature entries to a validation</span></div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <span class="keyword">virtual</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;uint256&gt;</a></div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#a4783349db2b8d9ac7f1ab17e1928083e"> 132</a></span> <a class="code hl_function" href="classripple_1_1AmendmentTable.html#a4783349db2b8d9ac7f1ab17e1928083e">doValidation</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set&lt;uint256&gt;</a> <span class="keyword">const</span>&amp; enabled) <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> </div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <span class="comment">// The set of amendments to enable in the genesis ledger</span></div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <span class="comment">// This will return all known, non-vetoed amendments.</span></div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <span class="comment">// If we ever have two amendments that should not both be</span></div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <span class="comment">// enabled at the same time, we should ensure one is vetoed.</span></div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> <span class="keyword">virtual</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;uint256&gt;</a></div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#a5d4b2a78401a735cbd82edf30504d1d0"> 139</a></span> <a class="code hl_function" href="classripple_1_1AmendmentTable.html#a5d4b2a78401a735cbd82edf30504d1d0">getDesired</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> </div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="comment">// The function below adapts the API callers expect to the</span></div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <span class="comment">// internal amendment table API. This allows the amendment</span></div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="comment">// table implementation to be independent of the ledger</span></div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="comment">// implementation. These APIs will merge when the view code</span></div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="comment">// supports a full ledger API</span></div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> </div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00148" data-start="{" data-end="}">
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#a02fd625de19d6564a1250cbde00b0a28"> 148</a></span> <a class="code hl_function" href="classripple_1_1AmendmentTable.html#a02fd625de19d6564a1250cbde00b0a28">doVoting</a>(</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;ReadView const&gt;</a> <span class="keyword">const</span>&amp; lastClosedLedger,</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt;<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;STValidation&gt;</a>&gt; <span class="keyword">const</span>&amp; parentValidations,</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;SHAMap&gt;</a> <span class="keyword">const</span>&amp; initialPosition,</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <a class="code hl_class" href="classbeast_1_1Journal.html">beast::Journal</a> j)</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> {</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> <span class="comment">// Ask implementation what to do</span></div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <span class="keyword">auto</span> actions = <a class="code hl_function" href="classripple_1_1AmendmentTable.html#a530d29eb5abf5854c4f26211948599b2">doVoting</a>(</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> lastClosedLedger-&gt;rules(),</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> lastClosedLedger-&gt;parentCloseTime(),</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> <a class="code hl_function" href="namespaceripple.html#a6f8b0cab74710c17299c1d37f3e05b48">getEnabledAmendments</a>(*lastClosedLedger),</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> <a class="code hl_function" href="namespaceripple.html#ab6b00b336996c0b0a3fe2e8a8d5fa76a">getMajorityAmendments</a>(*lastClosedLedger),</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> parentValidations);</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> </div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> <span class="comment">// Inject appropriate pseudo-transactions</span></div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>&amp; it : actions)</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> {</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <a class="code hl_class" href="classripple_1_1STTx.html">STTx</a> amendTx(</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> ttAMENDMENT,</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> [&amp;it, seq = lastClosedLedger-&gt;seq() + 1](<span class="keyword">auto</span>&amp; obj) {</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> obj.setAccountID(sfAccount, AccountID());</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> obj.setFieldH256(sfAmendment, it.first);</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> obj.setFieldU32(sfLedgerSequence, seq);</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> </div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> if (it.second != 0)</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> obj.setFieldU32(sfFlags, it.second);</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> });</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> </div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> <a class="code hl_class" href="classripple_1_1Serializer.html">Serializer</a> s;</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> amendTx.<a class="code hl_function" href="classripple_1_1STObject.html#a7adccac3a1b54244ae210afe7c5916e8">add</a>(s);</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> </div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> JLOG(j.<a class="code hl_function" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;Amendments: Adding pseudo-transaction: &quot;</span></div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> &lt;&lt; amendTx.<a class="code hl_function" href="classripple_1_1STTx.html#ad314af66e2542db537b3b5de291d33c3">getTransactionID</a>() &lt;&lt; <span class="stringliteral">&quot;: &quot;</span></div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> &lt;&lt; <a class="code hl_function" href="namespaceripple.html#a86e358ce3f06ff049af13c2342791cf8">strHex</a>(s.<a class="code hl_function" href="classripple_1_1Serializer.html#a394c3299f6cfcebdaa4bc98ec0c602d6">slice</a>()) &lt;&lt; <span class="stringliteral">&quot;: &quot;</span> &lt;&lt; amendTx;</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> </div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> initialPosition-&gt;addGiveItem(</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> <a class="code hl_enumvalue" href="namespaceripple.html#ae0356b1de00f841c554c830be509dd58a9b447756a7d7ddf4e828beeb38d079f6">SHAMapNodeType::tnTRANSACTION_NM</a>,</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> <a class="code hl_function" href="namespaceripple.html#aa96b512548a1ae9fcd7493c52f19ce0f">make_shamapitem</a>(amendTx.<a class="code hl_function" href="classripple_1_1STTx.html#ad314af66e2542db537b3b5de291d33c3">getTransactionID</a>(), s.<a class="code hl_function" href="classripple_1_1Serializer.html#a394c3299f6cfcebdaa4bc98ec0c602d6">slice</a>()));</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> }</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> }</div>
</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span>};</div>
</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> </div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr&lt;AmendmentTable&gt;</a></div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span><a class="code hl_function" href="namespaceripple.html#ad41956ef004d64710296fd76a5dc9e06">make_AmendmentTable</a>(</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> Application&amp; app,</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</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="l00194" name="l00194"></a><span class="lineno"> 194</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;AmendmentTable::FeatureInfo&gt;</a> <span class="keyword">const</span>&amp; supported,</div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> Section <span class="keyword">const</span>&amp; enabled,</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> Section <span class="keyword">const</span>&amp; vetoed,</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> <a class="code hl_class" href="classbeast_1_1Journal.html">beast::Journal</a> journal);</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> </div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span>} <span class="comment">// namespace ripple</span></div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> </div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</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#l00148">json_value.h:149</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#l00059">Journal.h:60</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#l00328">Journal.h:328</a></div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html"><div class="ttname"><a href="classripple_1_1AmendmentTable.html">ripple::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#l00038">AmendmentTable.h:39</a></div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_a02fd625de19d6564a1250cbde00b0a28"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#a02fd625de19d6564a1250cbde00b0a28">ripple::AmendmentTable::doVoting</a></div><div class="ttdeci">void doVoting(std::shared_ptr&lt; ReadView const &gt; const &amp;lastClosedLedger, std::vector&lt; std::shared_ptr&lt; STValidation &gt; &gt; const &amp;parentValidations, std::shared_ptr&lt; SHAMap &gt; const &amp;initialPosition, beast::Journal j)</div><div class="ttdef"><b>Definition</b> <a href="AmendmentTable_8h_source.html#l00148">AmendmentTable.h:148</a></div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_a1f80283254917a595e4fda62ee746e79"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#a1f80283254917a595e4fda62ee746e79">ripple::AmendmentTable::trustChanged</a></div><div class="ttdeci">virtual void trustChanged(hash_set&lt; PublicKey &gt; const &amp;allTrusted)=0</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_a2b779a15190c7e9ba93ca99bada7093c"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#a2b779a15190c7e9ba93ca99bada7093c">ripple::AmendmentTable::getJson</a></div><div class="ttdeci">virtual Json::Value getJson(uint256 const &amp;amendment, bool isAdmin) const =0</div><div class="ttdoc">Returns a Json::objectValue.</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_a4783349db2b8d9ac7f1ab17e1928083e"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#a4783349db2b8d9ac7f1ab17e1928083e">ripple::AmendmentTable::doValidation</a></div><div class="ttdeci">virtual std::vector&lt; uint256 &gt; doValidation(std::set&lt; uint256 &gt; const &amp;enabled) const =0</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_a48f050b47af8f00cafd237e2cddb2929"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#a48f050b47af8f00cafd237e2cddb2929">ripple::AmendmentTable::doValidatedLedger</a></div><div class="ttdeci">virtual void doValidatedLedger(LedgerIndex ledgerSeq, std::set&lt; uint256 &gt; const &amp;enabled, majorityAmendments_t const &amp;majority)=0</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_a4f56e4335f1f02ab22f66e0d52dbdb24"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#a4f56e4335f1f02ab22f66e0d52dbdb24">ripple::AmendmentTable::firstUnsupportedExpected</a></div><div class="ttdeci">virtual std::optional&lt; NetClock::time_point &gt; firstUnsupportedExpected() const =0</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_a530d29eb5abf5854c4f26211948599b2"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#a530d29eb5abf5854c4f26211948599b2">ripple::AmendmentTable::doVoting</a></div><div class="ttdeci">virtual std::map&lt; uint256, std::uint32_t &gt; doVoting(Rules const &amp;rules, NetClock::time_point closeTime, std::set&lt; uint256 &gt; const &amp;enabledAmendments, majorityAmendments_t const &amp;majorityAmendments, std::vector&lt; std::shared_ptr&lt; STValidation &gt; &gt; const &amp;valSet)=0</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_a5a0a3c98955ce15af2458780544edb71"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#a5a0a3c98955ce15af2458780544edb71">ripple::AmendmentTable::veto</a></div><div class="ttdeci">virtual bool veto(uint256 const &amp;amendment)=0</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_a5d4b2a78401a735cbd82edf30504d1d0"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#a5d4b2a78401a735cbd82edf30504d1d0">ripple::AmendmentTable::getDesired</a></div><div class="ttdeci">virtual std::vector&lt; uint256 &gt; getDesired() const =0</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_a5fce75b79a87e541918be639a28f3c87"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#a5fce75b79a87e541918be639a28f3c87">ripple::AmendmentTable::isSupported</a></div><div class="ttdeci">virtual bool isSupported(uint256 const &amp;amendment) const =0</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_a6ac6934733758e569d25e1e136fb84d5"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#a6ac6934733758e569d25e1e136fb84d5">ripple::AmendmentTable::getJson</a></div><div class="ttdeci">virtual Json::Value getJson(bool isAdmin) const =0</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_a8eee69252a4b7961d0d8cd411896eeb9"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#a8eee69252a4b7961d0d8cd411896eeb9">ripple::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="aclassripple_1_1AmendmentTable_html_ac721ac20262609226483f1436b0df02f"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#ac721ac20262609226483f1436b0df02f">ripple::AmendmentTable::doValidatedLedger</a></div><div class="ttdeci">void doValidatedLedger(std::shared_ptr&lt; ReadView const &gt; const &amp;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#l00093">AmendmentTable.h:93</a></div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_ac9e23d71814bcf7c601f37e0b9323b1a"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#ac9e23d71814bcf7c601f37e0b9323b1a">ripple::AmendmentTable::enable</a></div><div class="ttdeci">virtual bool enable(uint256 const &amp;amendment)=0</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_aca7fd10cd15869ffea10ee5d769ad744"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#aca7fd10cd15869ffea10ee5d769ad744">ripple::AmendmentTable::find</a></div><div class="ttdeci">virtual uint256 find(std::string const &amp;name) const =0</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_ad57021ddc7e6f87d04dd57fba582eb31"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#ad57021ddc7e6f87d04dd57fba582eb31">ripple::AmendmentTable::unVeto</a></div><div class="ttdeci">virtual bool unVeto(uint256 const &amp;amendment)=0</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_ade548ac91394d89376f0a8bfb1ebd903"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#ade548ac91394d89376f0a8bfb1ebd903">ripple::AmendmentTable::isEnabled</a></div><div class="ttdeci">virtual bool isEnabled(uint256 const &amp;amendment) const =0</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_ae37ca6d253d452ae23a6e160d9180e05"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#ae37ca6d253d452ae23a6e160d9180e05">ripple::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="aclassripple_1_1AmendmentTable_html_aef6ef4d534e0ef300563731966ed7f1d"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#aef6ef4d534e0ef300563731966ed7f1d">ripple::AmendmentTable::~AmendmentTable</a></div><div class="ttdeci">virtual ~AmendmentTable()=default</div></div>
<div class="ttc" id="aclassripple_1_1Rules_html"><div class="ttname"><a href="classripple_1_1Rules.html">ripple::Rules</a></div><div class="ttdoc">Rules controlling protocol behavior.</div><div class="ttdef"><b>Definition</b> <a href="Rules_8h_source.html#l00037">Rules.h:38</a></div></div>
<div class="ttc" id="aclassripple_1_1STObject_html_a7adccac3a1b54244ae210afe7c5916e8"><div class="ttname"><a href="classripple_1_1STObject.html#a7adccac3a1b54244ae210afe7c5916e8">ripple::STObject::add</a></div><div class="ttdeci">void add(Serializer &amp;s) const override</div><div class="ttdef"><b>Definition</b> <a href="STObject_8cpp_source.html#l00141">STObject.cpp:141</a></div></div>
<div class="ttc" id="aclassripple_1_1STTx_html"><div class="ttname"><a href="classripple_1_1STTx.html">ripple::STTx</a></div><div class="ttdef"><b>Definition</b> <a href="STTx_8h_source.html#l00047">STTx.h:48</a></div></div>
<div class="ttc" id="aclassripple_1_1STTx_html_ad314af66e2542db537b3b5de291d33c3"><div class="ttname"><a href="classripple_1_1STTx.html#ad314af66e2542db537b3b5de291d33c3">ripple::STTx::getTransactionID</a></div><div class="ttdeci">uint256 getTransactionID() const</div><div class="ttdef"><b>Definition</b> <a href="STTx_8h_source.html#l00249">STTx.h:249</a></div></div>
<div class="ttc" id="aclassripple_1_1Serializer_html"><div class="ttname"><a href="classripple_1_1Serializer.html">ripple::Serializer</a></div><div class="ttdef"><b>Definition</b> <a href="Serializer_8h_source.html#l00040">Serializer.h:41</a></div></div>
<div class="ttc" id="aclassripple_1_1Serializer_html_a394c3299f6cfcebdaa4bc98ec0c602d6"><div class="ttname"><a href="classripple_1_1Serializer.html#a394c3299f6cfcebdaa4bc98ec0c602d6">ripple::Serializer::slice</a></div><div class="ttdeci">Slice slice() const noexcept</div><div class="ttdef"><b>Definition</b> <a href="Serializer_8h_source.html#l00066">Serializer.h:66</a></div></div>
<div class="ttc" id="aclassripple_1_1base__uint_html"><div class="ttname"><a href="classripple_1_1base__uint.html">ripple::base_uint&lt; 256 &gt;</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="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition</b> <a href="algorithm_8h_source.html#l00025">algorithm.h:25</a></div></div>
<div class="ttc" id="anamespaceripple_html_a4267716481f84b7fd7ea521266fa9ef8"><div class="ttname"><a href="namespaceripple.html#a4267716481f84b7fd7ea521266fa9ef8">ripple::isAdmin</a></div><div class="ttdeci">bool isAdmin(Port const &amp;port, Json::Value const &amp;params, beast::IP::Address const &amp;remoteIp)</div><div class="ttdef"><b>Definition</b> <a href="Role_8cpp_source.html#l00085">Role.cpp:85</a></div></div>
<div class="ttc" id="anamespaceripple_html_a6f8b0cab74710c17299c1d37f3e05b48"><div class="ttname"><a href="namespaceripple.html#a6f8b0cab74710c17299c1d37f3e05b48">ripple::getEnabledAmendments</a></div><div class="ttdeci">std::set&lt; uint256 &gt; getEnabledAmendments(ReadView const &amp;view)</div><div class="ttdef"><b>Definition</b> <a href="View_8cpp_source.html#l00921">View.cpp:921</a></div></div>
<div class="ttc" id="anamespaceripple_html_a86e358ce3f06ff049af13c2342791cf8"><div class="ttname"><a href="namespaceripple.html#a86e358ce3f06ff049af13c2342791cf8">ripple::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#l00030">strHex.h:30</a></div></div>
<div class="ttc" id="anamespaceripple_html_aa5778f9faa15e3677dcda7975d9db7c6"><div class="ttname"><a href="namespaceripple.html#aa5778f9faa15e3677dcda7975d9db7c6">ripple::VoteBehavior</a></div><div class="ttdeci">VoteBehavior</div><div class="ttdef"><b>Definition</b> <a href="Feature_8h_source.html#l00087">Feature.h:87</a></div></div>
<div class="ttc" id="anamespaceripple_html_aa96b512548a1ae9fcd7493c52f19ce0f"><div class="ttname"><a href="namespaceripple.html#aa96b512548a1ae9fcd7493c52f19ce0f">ripple::make_shamapitem</a></div><div class="ttdeci">boost::intrusive_ptr&lt; SHAMapItem &gt; make_shamapitem(uint256 const &amp;tag, Slice data)</div><div class="ttdef"><b>Definition</b> <a href="SHAMapItem_8h_source.html#l00161">SHAMapItem.h:161</a></div></div>
<div class="ttc" id="anamespaceripple_html_ab6b00b336996c0b0a3fe2e8a8d5fa76a"><div class="ttname"><a href="namespaceripple.html#ab6b00b336996c0b0a3fe2e8a8d5fa76a">ripple::getMajorityAmendments</a></div><div class="ttdeci">majorityAmendments_t getMajorityAmendments(ReadView const &amp;view)</div><div class="ttdef"><b>Definition</b> <a href="View_8cpp_source.html#l00938">View.cpp:938</a></div></div>
<div class="ttc" id="anamespaceripple_html_ad41956ef004d64710296fd76a5dc9e06"><div class="ttname"><a href="namespaceripple.html#ad41956ef004d64710296fd76a5dc9e06">ripple::make_AmendmentTable</a></div><div class="ttdeci">std::unique_ptr&lt; AmendmentTable &gt; make_AmendmentTable(Application &amp;app, std::chrono::seconds majorityTime, std::vector&lt; AmendmentTable::FeatureInfo &gt; const &amp;supported, Section const &amp;enabled, Section const &amp;vetoed, beast::Journal journal)</div><div class="ttdef"><b>Definition</b> <a href="AmendmentTable_8cpp_source.html#l01072">AmendmentTable.cpp:1072</a></div></div>
<div class="ttc" id="anamespaceripple_html_ae0356b1de00f841c554c830be509dd58a9b447756a7d7ddf4e828beeb38d079f6"><div class="ttname"><a href="namespaceripple.html#ae0356b1de00f841c554c830be509dd58a9b447756a7d7ddf4e828beeb38d079f6">ripple::SHAMapNodeType::tnTRANSACTION_NM</a></div><div class="ttdeci">@ tnTRANSACTION_NM</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="astructripple_1_1AmendmentTable_1_1FeatureInfo_html"><div class="ttname"><a href="structripple_1_1AmendmentTable_1_1FeatureInfo.html">ripple::AmendmentTable::FeatureInfo</a></div><div class="ttdef"><b>Definition</b> <a href="AmendmentTable_8h_source.html#l00041">AmendmentTable.h:42</a></div></div>
<div class="ttc" id="astructripple_1_1AmendmentTable_1_1FeatureInfo_html_a3cee968700e164ba39010f1cad09e4fc"><div class="ttname"><a href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a3cee968700e164ba39010f1cad09e4fc">ripple::AmendmentTable::FeatureInfo::feature</a></div><div class="ttdeci">uint256 const feature</div><div class="ttdef"><b>Definition</b> <a href="AmendmentTable_8h_source.html#l00050">AmendmentTable.h:50</a></div></div>
<div class="ttc" id="astructripple_1_1AmendmentTable_1_1FeatureInfo_html_a713ff87d8e021b7169583da3dcfb5722"><div class="ttname"><a href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a713ff87d8e021b7169583da3dcfb5722">ripple::AmendmentTable::FeatureInfo::FeatureInfo</a></div><div class="ttdeci">FeatureInfo(std::string const &amp;n, uint256 const &amp;f, VoteBehavior v)</div><div class="ttdef"><b>Definition</b> <a href="AmendmentTable_8h_source.html#l00044">AmendmentTable.h:44</a></div></div>
<div class="ttc" id="astructripple_1_1AmendmentTable_1_1FeatureInfo_html_a7506d3e3b6c259f0cda7a3e7c89e2978"><div class="ttname"><a href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a7506d3e3b6c259f0cda7a3e7c89e2978">ripple::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#l00049">AmendmentTable.h:49</a></div></div>
<div class="ttc" id="astructripple_1_1AmendmentTable_1_1FeatureInfo_html_a83f813e7003e2cbab12f4820d7cf1fc3"><div class="ttname"><a href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a83f813e7003e2cbab12f4820d7cf1fc3">ripple::AmendmentTable::FeatureInfo::vote</a></div><div class="ttdeci">VoteBehavior const vote</div><div class="ttdef"><b>Definition</b> <a href="AmendmentTable_8h_source.html#l00051">AmendmentTable.h:51</a></div></div>
<div class="ttc" id="astructripple_1_1AmendmentTable_1_1FeatureInfo_html_acb08526a26890eaa42c3908db2a957c0"><div class="ttname"><a href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#acb08526a26890eaa42c3908db2a957c0">ripple::AmendmentTable::FeatureInfo::FeatureInfo</a></div><div class="ttdeci">FeatureInfo()=delete</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&#160;<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>