Files
rippled/AmendmentTable_8h_source.html
2021-10-07 19:31:50 +00:00

307 lines
51 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">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: 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 style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">rippled
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_df9c78dcf3f59a33b12284f95992a64b.html">ripple</a></li><li class="navelem"><a class="el" href="dir_9f69212e4c6e2ca9ec5ab59cd7b6275c.html">app</a></li><li class="navelem"><a class="el" href="dir_29f79f6f29a0be0eebc6c46bea51c866.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 name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> This file is part of rippled: https://github.com/ripple/rippled</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> Copyright (c) 2012, 2013 Ripple Labs Inc.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> Permission to use, copy, modify, and/or distribute this software for any</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> purpose with or without fee is hereby granted, provided that the above</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> copyright notice and this permission notice appear in all copies.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> THE SOFTWARE IS PROVIDED &quot;AS IS&quot; AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#ifndef RIPPLE_APP_MISC_AMENDMENTTABLE_H_INCLUDED</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#define RIPPLE_APP_MISC_AMENDMENTTABLE_H_INCLUDED</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;ripple/app/ledger/Ledger.h&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;ripple/core/ConfigSections.h&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;ripple/protocol/Feature.h&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;ripple/protocol/Protocol.h&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;ripple/protocol/STValidation.h&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<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 name="l00030"></a><span class="lineno"> 30</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html"> 37</a></span>&#160;<span class="keyword">class </span><a class="code" href="classripple_1_1AmendmentTable.html">AmendmentTable</a></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;{</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html"> 40</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html">FeatureInfo</a></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; {</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <a class="code" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#acb08526a26890eaa42c3908db2a957c0">FeatureInfo</a>() = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a748e48c7b0a3ed30548b254ad6db2fd6"> 43</a></span>&#160; <a class="code" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a748e48c7b0a3ed30548b254ad6db2fd6">FeatureInfo</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; n, <a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; f, <a class="code" href="namespaceripple.html#afaf9aac668f4e0805bc2911291e29e9f">DefaultVote</a> v)</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; : <a class="code" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#aeb9acbcc9a7b2eaa32a51dace735b55d">name</a>(n), <a class="code" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a430a68bc818bfd1eb118d92d551b7c33">feature</a>(f), <a class="code" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a26217a16832f890a25e2998b5c15e36b">vote</a>(v)</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; {</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; }</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#aeb9acbcc9a7b2eaa32a51dace735b55d"> 48</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span> <a class="code" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#aeb9acbcc9a7b2eaa32a51dace735b55d">name</a>;</div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a430a68bc818bfd1eb118d92d551b7c33"> 49</a></span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span> <a class="code" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a430a68bc818bfd1eb118d92d551b7c33">feature</a>;</div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a26217a16832f890a25e2998b5c15e36b"> 50</a></span>&#160; <a class="code" href="namespaceripple.html#afaf9aac668f4e0805bc2911291e29e9f">DefaultVote</a> <span class="keyword">const</span> <a class="code" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a26217a16832f890a25e2998b5c15e36b">vote</a>;</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; };</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keyword">virtual</span> <a class="code" href="classripple_1_1AmendmentTable.html#aef6ef4d534e0ef300563731966ed7f1d">~AmendmentTable</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="keyword">virtual</span> <a class="code" href="classripple_1_1base__uint.html">uint256</a></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#aca7fd10cd15869ffea10ee5d769ad744">find</a>(<a class="codeRef" 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 name="l00057"></a><span class="lineno"> 57</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#a5a0a3c98955ce15af2458780544edb71">veto</a>(<a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; amendment) = 0;</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#ad57021ddc7e6f87d04dd57fba582eb31">unVeto</a>(<a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; amendment) = 0;</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#ac9e23d71814bcf7c601f37e0b9323b1a">enable</a>(<a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; amendment) = 0;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#ade548ac91394d89376f0a8bfb1ebd903">isEnabled</a>(<a class="code" 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 name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#a5fce75b79a87e541918be639a28f3c87">isSupported</a>(<a class="code" 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 name="l00070"></a><span class="lineno"> 70</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#a8eee69252a4b7961d0d8cd411896eeb9">hasUnsupportedEnabled</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <span class="keyword">virtual</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;NetClock::time_point&gt;</a></div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#af59e59a074e1dbef4faf0eef0c9dcfa7">firstUnsupportedExpected</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="keyword">virtual</span> <a class="code" href="classJson_1_1Value.html">Json::Value</a></div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#ac63a31d38346fba5d5ca78c4894af31a">getJson</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <span class="keyword">virtual</span> <a class="code" href="classJson_1_1Value.html">Json::Value</a></div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#ac63a31d38346fba5d5ca78c4894af31a">getJson</a>(<a class="code" 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 name="l00089"></a><span class="lineno"> 89</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#ac721ac20262609226483f1436b0df02f"> 92</a></span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#ac721ac20262609226483f1436b0df02f">doValidatedLedger</a>(</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <a class="codeRef" 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 name="l00094"></a><span class="lineno"> 94</span>&#160; {</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="classripple_1_1AmendmentTable.html#ae37ca6d253d452ae23a6e160d9180e05">needValidatedLedger</a>(lastValidatedLedger-&gt;seq()))</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#ac721ac20262609226483f1436b0df02f">doValidatedLedger</a>(</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; lastValidatedLedger-&gt;seq(),</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <a class="code" href="namespaceripple.html#a6f8b0cab74710c17299c1d37f3e05b48">getEnabledAmendments</a>(*lastValidatedLedger),</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <a class="code" href="namespaceripple.html#ab6b00b336996c0b0a3fe2e8a8d5fa76a">getMajorityAmendments</a>(*lastValidatedLedger));</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; }</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; </div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#ae37ca6d253d452ae23a6e160d9180e05">needValidatedLedger</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">LedgerIndex</a> seq) <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#ac721ac20262609226483f1436b0df02f">doValidatedLedger</a>(</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">LedgerIndex</a> ledgerSeq,</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <a class="codeRef" 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 name="l00112"></a><span class="lineno"> 112</span>&#160; <a class="codeRef" 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 name="l00113"></a><span class="lineno"> 113</span>&#160; </div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="comment">// Called by the consensus code when we need to</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="comment">// inject pseudo-transactions</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keyword">virtual</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map&lt;uint256, std::uint32_t&gt;</a></div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#ab69ef448949faf9d80e80760d6574381">doVoting</a>(</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <a class="code" href="classripple_1_1Rules.html">Rules</a> <span class="keyword">const</span>&amp; rules,</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/chrono/time_point.html">NetClock::time_point</a> closeTime,</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <a class="codeRef" 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 name="l00121"></a><span class="lineno"> 121</span>&#160; <a class="codeRef" 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 name="l00122"></a><span class="lineno"> 122</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt;<a class="codeRef" 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 name="l00123"></a><span class="lineno"> 123</span>&#160; </div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="comment">// Called by the consensus code when we need to</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <span class="comment">// add feature entries to a validation</span></div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="keyword">virtual</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;uint256&gt;</a></div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#af8412c322ac2c2f3410548358630c9d7">doValidation</a>(<a class="codeRef" 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 name="l00128"></a><span class="lineno"> 128</span>&#160; </div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="comment">// The set of amendments to enable in the genesis ledger</span></div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <span class="comment">// This will return all known, non-vetoed amendments.</span></div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="comment">// If we ever have two amendments that should not both be</span></div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="comment">// enabled at the same time, we should ensure one is vetoed.</span></div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <span class="keyword">virtual</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;uint256&gt;</a></div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#ac12013d542d0fc1638f9ab4220896580">getDesired</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; </div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <span class="comment">// The function below adapts the API callers expect to the</span></div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <span class="comment">// internal amendment table API. This allows the amendment</span></div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="comment">// table implementation to be independent of the ledger</span></div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="comment">// implementation. These APIs will merge when the view code</span></div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="comment">// supports a full ledger API</span></div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; </div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#ae4402ab8248766bc7556bdbb93225943"> 143</a></span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#ae4402ab8248766bc7556bdbb93225943">doVoting</a>(</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <a class="codeRef" 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 name="l00145"></a><span class="lineno"> 145</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt;<a class="codeRef" 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 name="l00146"></a><span class="lineno"> 146</span>&#160; <a class="codeRef" 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 name="l00147"></a><span class="lineno"> 147</span>&#160; {</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <span class="comment">// Ask implementation what to do</span></div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="keyword">auto</span> actions = <a class="code" href="classripple_1_1AmendmentTable.html#ab69ef448949faf9d80e80760d6574381">doVoting</a>(</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; lastClosedLedger-&gt;rules(),</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; lastClosedLedger-&gt;parentCloseTime(),</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <a class="code" href="namespaceripple.html#a6f8b0cab74710c17299c1d37f3e05b48">getEnabledAmendments</a>(*lastClosedLedger),</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; <a class="code" href="namespaceripple.html#ab6b00b336996c0b0a3fe2e8a8d5fa76a">getMajorityAmendments</a>(*lastClosedLedger),</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; parentValidations);</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; </div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="comment">// Inject appropriate pseudo-transactions</span></div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>&amp; it : actions)</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; {</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; <a class="code" href="classripple_1_1STTx.html">STTx</a> amendTx(</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <a class="code" href="namespaceripple.html#a2ce3074a39ea65126b82fc59baf43126a0c108e5d380e14099ad0299d5c0ee510">ttAMENDMENT</a>,</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; [&amp;it, seq = lastClosedLedger-&gt;seq() + 1](<span class="keyword">auto</span>&amp; obj) {</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; obj.setAccountID(sfAccount, AccountID());</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; obj.setFieldH256(sfAmendment, it.first);</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; obj.setFieldU32(sfLedgerSequence, seq);</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; </div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; if (it.second != 0)</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; obj.setFieldU32(sfFlags, it.second);</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; });</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; </div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <a class="code" href="classripple_1_1Serializer.html">Serializer</a> s;</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; amendTx.<a class="code" href="classripple_1_1STObject.html#a04978b5398a7b54a93dba72826b9e849">add</a>(s);</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; </div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; initialPosition-&gt;addGiveItem(</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <a class="code" href="namespaceripple.html#ae0356b1de00f841c554c830be509dd58a9b447756a7d7ddf4e828beeb38d079f6">SHAMapNodeType::tnTRANSACTION_NM</a>,</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; std::make_shared&lt;SHAMapItem&gt;(</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; amendTx.<a class="code" href="classripple_1_1STTx.html#ad314af66e2542db537b3b5de291d33c3">getTransactionID</a>(), s.<a class="code" href="classripple_1_1Serializer.html#a394c3299f6cfcebdaa4bc98ec0c602d6">slice</a>()));</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; }</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; }</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160;};</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; </div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr&lt;AmendmentTable&gt;</a></div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160;<a class="code" href="namespaceripple.html#ad41956ef004d64710296fd76a5dc9e06">make_AmendmentTable</a>(</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; Application&amp; app,</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::seconds</a> majorityTime,</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; <a class="codeRef" 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 name="l00186"></a><span class="lineno"> 186</span>&#160; Section <span class="keyword">const</span>&amp; enabled,</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; Section <span class="keyword">const</span>&amp; vetoed,</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> journal);</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; </div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160;} <span class="comment">// namespace ripple</span></div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; </div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="astructripple_1_1AmendmentTable_1_1FeatureInfo_html_aeb9acbcc9a7b2eaa32a51dace735b55d"><div class="ttname"><a href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#aeb9acbcc9a7b2eaa32a51dace735b55d">ripple::AmendmentTable::FeatureInfo::name</a></div><div class="ttdeci">const std::string name</div><div class="ttdef"><b>Definition:</b> <a href="AmendmentTable_8h_source.html#l00048">AmendmentTable.h:48</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#l00621">View.cpp:621</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#l00604">View.cpp:604</a></div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_ab69ef448949faf9d80e80760d6574381"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#ab69ef448949faf9d80e80760d6574381">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="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="ashared_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="astructripple_1_1AmendmentTable_1_1FeatureInfo_html_a430a68bc818bfd1eb118d92d551b7c33"><div class="ttname"><a href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a430a68bc818bfd1eb118d92d551b7c33">ripple::AmendmentTable::FeatureInfo::feature</a></div><div class="ttdeci">const uint256 feature</div><div class="ttdef"><b>Definition:</b> <a href="AmendmentTable_8h_source.html#l00049">AmendmentTable.h:49</a></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_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="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_ae4402ab8248766bc7556bdbb93225943"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#ae4402ab8248766bc7556bdbb93225943">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)</div><div class="ttdef"><b>Definition:</b> <a href="AmendmentTable_8h_source.html#l00143">AmendmentTable.h:143</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="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#l00092">AmendmentTable.h:92</a></div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_ac63a31d38346fba5d5ca78c4894af31a"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#ac63a31d38346fba5d5ca78c4894af31a">ripple::AmendmentTable::getJson</a></div><div class="ttdeci">virtual Json::Value getJson() const =0</div></div>
<div class="ttc" id="anamespaceripple_html_a2ce3074a39ea65126b82fc59baf43126a0c108e5d380e14099ad0299d5c0ee510"><div class="ttname"><a href="namespaceripple.html#a2ce3074a39ea65126b82fc59baf43126a0c108e5d380e14099ad0299d5c0ee510">ripple::ttAMENDMENT</a></div><div class="ttdeci">@ ttAMENDMENT</div><div class="ttdoc">This system-generated transaction type is used to update the status of the various amendments.</div><div class="ttdef"><b>Definition:</b> <a href="TxFormats_8h_source.html#l00131">TxFormats.h:131</a></div></div>
<div class="ttc" id="astructripple_1_1AmendmentTable_1_1FeatureInfo_html_a748e48c7b0a3ed30548b254ad6db2fd6"><div class="ttname"><a href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a748e48c7b0a3ed30548b254ad6db2fd6">ripple::AmendmentTable::FeatureInfo::FeatureInfo</a></div><div class="ttdeci">FeatureInfo(std::string const &amp;n, uint256 const &amp;f, DefaultVote v)</div><div class="ttdef"><b>Definition:</b> <a href="AmendmentTable_8h_source.html#l00043">AmendmentTable.h:43</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="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="aclassripple_1_1AmendmentTable_html_af8412c322ac2c2f3410548358630c9d7"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#af8412c322ac2c2f3410548358630c9d7">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_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_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_1AmendmentTable_html_af59e59a074e1dbef4faf0eef0c9dcfa7"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#af59e59a074e1dbef4faf0eef0c9dcfa7">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_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_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#l00063">Serializer.h:63</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="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#l00043">STTx.h:43</a></div></div>
<div class="ttc" id="aclassbeast_1_1Journal_html"><div class="ttname"><a href="classbeast_1_1Journal.html">beast::Journal</a></div><div class="ttdoc">A generic endpoint for log messages.</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00058">Journal.h:58</a></div></div>
<div class="ttc" id="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 class="ttdoc">STL class.</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="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#l00040">AmendmentTable.h:40</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#l00118">STTx.h:118</a></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_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_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#l00039">Serializer.h:39</a></div></div>
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
<div class="ttc" id="aclassripple_1_1STObject_html_a04978b5398a7b54a93dba72826b9e849"><div class="ttname"><a href="classripple_1_1STObject.html#a04978b5398a7b54a93dba72826b9e849">ripple::STObject::add</a></div><div class="ttdeci">virtual void add(Serializer &amp;s) const override</div><div class="ttdef"><b>Definition:</b> <a href="STObject_8h_source.html#l00352">STObject.h:352</a></div></div>
<div class="ttc" id="astructripple_1_1AmendmentTable_1_1FeatureInfo_html_a26217a16832f890a25e2998b5c15e36b"><div class="ttname"><a href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a26217a16832f890a25e2998b5c15e36b">ripple::AmendmentTable::FeatureInfo::vote</a></div><div class="ttdeci">const DefaultVote vote</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_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="anamespaceripple_html_afaf9aac668f4e0805bc2911291e29e9f"><div class="ttname"><a href="namespaceripple.html#afaf9aac668f4e0805bc2911291e29e9f">ripple::DefaultVote</a></div><div class="ttdeci">DefaultVote</div><div class="ttdef"><b>Definition:</b> <a href="Feature_8h_source.html#l00069">Feature.h:69</a></div></div>
<div class="ttc" id="aclassripple_1_1Rules_html"><div class="ttname"><a href="classripple_1_1Rules.html">ripple::Rules</a></div><div class="ttdoc">Rules controlling protocol behavior.</div><div class="ttdef"><b>Definition:</b> <a href="ReadView_8h_source.html#l00131">ReadView.h:131</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="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#l00789">AmendmentTable.cpp:789</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#l00037">AmendmentTable.h:37</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 class="ttdoc">STL class.</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="aset_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/set.html">std::set</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_ac12013d542d0fc1638f9ab4220896580"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#ac12013d542d0fc1638f9ab4220896580">ripple::AmendmentTable::getDesired</a></div><div class="ttdeci">virtual std::vector&lt; uint256 &gt; getDesired() const =0</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#l00145">json_value.h:145</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>