mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 11:35:53 +00:00
313 lines
53 KiB
HTML
313 lines
53 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&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_df9c78dcf3f59a33b12284f95992a64b.html">ripple</a></li><li class="navelem"><a class="el" href="dir_9f69212e4c6e2ca9ec5ab59cd7b6275c.html">app</a></li><li class="navelem"><a class="el" href="dir_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> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">/*</span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> This file is part of rippled: https://github.com/ripple/rippled</span></div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> Copyright (c) 2012, 2013 Ripple Labs Inc.</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> Permission to use, copy, modify, and/or distribute this software for any</span></div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> purpose with or without fee is hereby granted, provided that the above</span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> copyright notice and this permission notice appear in all copies.</span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR</span></div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN</span></div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF</span></div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">*/</span></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">//==============================================================================</span></div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#ifndef RIPPLE_APP_MISC_AMENDMENTTABLE_H_INCLUDED</span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#define RIPPLE_APP_MISC_AMENDMENTTABLE_H_INCLUDED</span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  </div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <ripple/app/ledger/Ledger.h></span></div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <ripple/core/ConfigSections.h></span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <ripple/protocol/Feature.h></span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <ripple/protocol/Protocol.h></span></div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <ripple/protocol/STValidation.h></span></div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  </div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/optional.html">optional</a>></span></div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <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>  </div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html"> 37</a></span> <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> {</div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <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>  <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>  {</div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <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#a713ff87d8e021b7169583da3dcfb5722"> 43</a></span>  <a class="code" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#a713ff87d8e021b7169583da3dcfb5722">FeatureInfo</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>& n, <a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>& f, <a class="code" href="namespaceripple.html#aa5778f9faa15e3677dcda7975d9db7c6">VoteBehavior</a> v)</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  : <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#aa41afe8f64b2619bce3ee9c141e72827">vote</a>(v)</div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  {</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  }</div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </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>  <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>  <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#aa41afe8f64b2619bce3ee9c141e72827"> 50</a></span>  <a class="code" href="namespaceripple.html#aa5778f9faa15e3677dcda7975d9db7c6">VoteBehavior</a> <span class="keyword">const</span> <a class="code" href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#aa41afe8f64b2619bce3ee9c141e72827">vote</a>;</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  };</div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  </div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <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>  </div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <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>  <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>& name) <span class="keyword">const</span> = 0;</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  </div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <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>& amendment) = 0;</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <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>& amendment) = 0;</div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  </div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <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>& amendment) = 0;</div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  </div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <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>& amendment) <span class="keyword">const</span> = 0;</div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <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>& amendment) <span class="keyword">const</span> = 0;</div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  </div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <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>  </div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keyword">virtual</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<NetClock::time_point></a></div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <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>  </div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <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>  <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>  </div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <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>  <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>& amendment) <span class="keyword">const</span> = 0;</div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  </div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <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>  <a class="code" href="classripple_1_1AmendmentTable.html#ac721ac20262609226483f1436b0df02f">doValidatedLedger</a>(</div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<ReadView const></a> <span class="keyword">const</span>& lastValidatedLedger)</div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  {</div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordflow">if</span> (<a class="code" href="classripple_1_1AmendmentTable.html#ae37ca6d253d452ae23a6e160d9180e05">needValidatedLedger</a>(lastValidatedLedger->seq()))</div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <a class="code" href="classripple_1_1AmendmentTable.html#ac721ac20262609226483f1436b0df02f">doValidatedLedger</a>(</div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  lastValidatedLedger->seq(),</div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <a class="code" href="namespaceripple.html#a6f8b0cab74710c17299c1d37f3e05b48">getEnabledAmendments</a>(*lastValidatedLedger),</div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <a class="code" href="namespaceripple.html#ab6b00b336996c0b0a3fe2e8a8d5fa76a">getMajorityAmendments</a>(*lastValidatedLedger));</div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  }</div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  </div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <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>  </div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <a class="code" href="classripple_1_1AmendmentTable.html#ac721ac20262609226483f1436b0df02f">doValidatedLedger</a>(</div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <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>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set<uint256></a> <span class="keyword">const</span>& enabled,</div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/map.html">majorityAmendments_t</a> <span class="keyword">const</span>& majority) = 0;</div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  </div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="comment">// Called when the set of trusted validators changes.</span></div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="classripple_1_1AmendmentTable.html#a1f80283254917a595e4fda62ee746e79">trustChanged</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_set.html">hash_set<PublicKey></a> <span class="keyword">const</span>& allTrusted) = 0;</div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  </div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="comment">// Called by the consensus code when we need to</span></div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="comment">// inject pseudo-transactions</span></div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keyword">virtual</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map<uint256, std::uint32_t></a></div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <a class="code" href="classripple_1_1AmendmentTable.html#ab69ef448949faf9d80e80760d6574381">doVoting</a>(</div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="code" href="classripple_1_1Rules.html">Rules</a> <span class="keyword">const</span>& rules,</div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <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="l00124"></a><span class="lineno"> 124</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set<uint256></a> <span class="keyword">const</span>& enabledAmendments,</div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/map.html">majorityAmendments_t</a> <span class="keyword">const</span>& majorityAmendments,</div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a><<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<STValidation></a>> <span class="keyword">const</span>& valSet) = 0;</div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  </div>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="comment">// Called by the consensus code when we need to</span></div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="comment">// add feature entries to a validation</span></div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keyword">virtual</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<uint256></a></div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <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<uint256></a> <span class="keyword">const</span>& enabled) <span class="keyword">const</span> = 0;</div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  </div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="comment">// The set of amendments to enable in the genesis ledger</span></div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="comment">// This will return all known, non-vetoed amendments.</span></div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="comment">// If we ever have two amendments that should not both be</span></div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="comment">// enabled at the same time, we should ensure one is vetoed.</span></div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keyword">virtual</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<uint256></a></div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <a class="code" href="classripple_1_1AmendmentTable.html#ac12013d542d0fc1638f9ab4220896580">getDesired</a>() <span class="keyword">const</span> = 0;</div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  </div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="comment">// The function below adapts the API callers expect to the</span></div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="comment">// internal amendment table API. This allows the amendment</span></div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="comment">// table implementation to be independent of the ledger</span></div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="comment">// implementation. These APIs will merge when the view code</span></div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="comment">// supports a full ledger API</span></div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  </div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#ae4402ab8248766bc7556bdbb93225943"> 147</a></span>  <a class="code" href="classripple_1_1AmendmentTable.html#ae4402ab8248766bc7556bdbb93225943">doVoting</a>(</div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<ReadView const></a> <span class="keyword">const</span>& lastClosedLedger,</div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a><<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<STValidation></a>> <span class="keyword">const</span>& parentValidations,</div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<SHAMap></a> <span class="keyword">const</span>& initialPosition)</div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  {</div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="comment">// Ask implementation what to do</span></div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keyword">auto</span> actions = <a class="code" href="classripple_1_1AmendmentTable.html#ab69ef448949faf9d80e80760d6574381">doVoting</a>(</div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  lastClosedLedger->rules(),</div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  lastClosedLedger->parentCloseTime(),</div>
|
|
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <a class="code" href="namespaceripple.html#a6f8b0cab74710c17299c1d37f3e05b48">getEnabledAmendments</a>(*lastClosedLedger),</div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <a class="code" href="namespaceripple.html#ab6b00b336996c0b0a3fe2e8a8d5fa76a">getMajorityAmendments</a>(*lastClosedLedger),</div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  parentValidations);</div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  </div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="comment">// Inject appropriate pseudo-transactions</span></div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& it : actions)</div>
|
|
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  {</div>
|
|
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <a class="code" href="classripple_1_1STTx.html">STTx</a> amendTx(</div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <a class="code" href="namespaceripple.html#a2ce3074a39ea65126b82fc59baf43126a0c108e5d380e14099ad0299d5c0ee510">ttAMENDMENT</a>,</div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  [&it, seq = lastClosedLedger->seq() + 1](<span class="keyword">auto</span>& obj) {</div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  obj.setAccountID(sfAccount, AccountID());</div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  obj.setFieldH256(sfAmendment, it.first);</div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  obj.setFieldU32(sfLedgerSequence, seq);</div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  </div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  if (it.second != 0)</div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  obj.setFieldU32(sfFlags, it.second);</div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  });</div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  </div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <a class="code" href="classripple_1_1Serializer.html">Serializer</a> s;</div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  amendTx.<a class="code" href="classripple_1_1STObject.html#a7adccac3a1b54244ae210afe7c5916e8">add</a>(s);</div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  </div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  initialPosition->addGiveItem(</div>
|
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <a class="code" href="namespaceripple.html#ae0356b1de00f841c554c830be509dd58a9b447756a7d7ddf4e828beeb38d079f6">SHAMapNodeType::tnTRANSACTION_NM</a>,</div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <a class="code" href="namespaceripple.html#a0f98a7a60d7fb0c39572419ac15c959f">make_shamapitem</a>(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="l00180"></a><span class="lineno"> 180</span>  }</div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  }</div>
|
|
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> };</div>
|
|
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  </div>
|
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<AmendmentTable></a></div>
|
|
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <a class="code" href="namespaceripple.html#ad41956ef004d64710296fd76a5dc9e06">make_AmendmentTable</a>(</div>
|
|
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  Application& app,</div>
|
|
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::seconds</a> majorityTime,</div>
|
|
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<AmendmentTable::FeatureInfo></a> <span class="keyword">const</span>& supported,</div>
|
|
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  Section <span class="keyword">const</span>& enabled,</div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  Section <span class="keyword">const</span>& vetoed,</div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> journal);</div>
|
|
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  </div>
|
|
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> } <span class="comment">// namespace ripple</span></div>
|
|
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  </div>
|
|
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <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 &view)</div><div class="ttdef"><b>Definition:</b> <a href="View_8cpp_source.html#l00638">View.cpp:638</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1AmendmentTable_1_1FeatureInfo_html_aa41afe8f64b2619bce3ee9c141e72827"><div class="ttname"><a href="structripple_1_1AmendmentTable_1_1FeatureInfo.html#aa41afe8f64b2619bce3ee9c141e72827">ripple::AmendmentTable::FeatureInfo::vote</a></div><div class="ttdeci">const VoteBehavior 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="anamespaceripple_html_a6f8b0cab74710c17299c1d37f3e05b48"><div class="ttname"><a href="namespaceripple.html#a6f8b0cab74710c17299c1d37f3e05b48">ripple::getEnabledAmendments</a></div><div class="ttdeci">std::set< uint256 > getEnabledAmendments(ReadView const &view)</div><div class="ttdef"><b>Definition:</b> <a href="View_8cpp_source.html#l00621">View.cpp:621</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< uint256, std::uint32_t > doVoting(Rules const &rules, NetClock::time_point closeTime, std::set< uint256 > const &enabledAmendments, majorityAmendments_t const &majorityAmendments, std::vector< std::shared_ptr< STValidation >> const &valSet)=0</div></div>
|
|
<div class="ttc" id="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 &amendment)=0</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 class="ttdoc">STL class.</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 &name) const =0</div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a0f98a7a60d7fb0c39572419ac15c959f"><div class="ttname"><a href="namespaceripple.html#a0f98a7a60d7fb0c39572419ac15c959f">ripple::make_shamapitem</a></div><div class="ttdeci">boost::intrusive_ptr< SHAMapItem > make_shamapitem(uint256 const &tag, Slice data)</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapItem_8h_source.html#l00160">SHAMapItem.h:160</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 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< ReadView const > const &lastClosedLedger, std::vector< std::shared_ptr< STValidation >> const &parentValidations, std::shared_ptr< SHAMap > const &initialPosition)</div><div class="ttdef"><b>Definition:</b> <a href="AmendmentTable_8h_source.html#l00147">AmendmentTable.h:147</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_a1f80283254917a595e4fda62ee746e79"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#a1f80283254917a595e4fda62ee746e79">ripple::AmendmentTable::trustChanged</a></div><div class="ttdeci">virtual void trustChanged(hash_set< PublicKey > const &allTrusted)=0</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< ReadView const > const &lastValidatedLedger)</div><div class="ttdoc">Called when a new fully-validated ledger is accepted.</div><div class="ttdef"><b>Definition:</b> <a href="AmendmentTable_8h_source.html#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#l00198">TxFormats.h:198</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< 256 ></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< uint256 > doValidation(std::set< uint256 > const &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 &amendment)=0</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#l00069">Feature.h:69</a></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< NetClock::time_point > 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 &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#l00064">Serializer.h:64</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#l00045">STTx.h:45</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 &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#l00191">STTx.h:191</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 &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#l00040">Serializer.h:40</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 &s) const override</div><div class="ttdef"><b>Definition:</b> <a href="STObject_8cpp_source.html#l00085">STObject.cpp:85</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="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="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#l00033">Rules.h:33</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< AmendmentTable > make_AmendmentTable(Application &app, std::chrono::seconds majorityTime, std::vector< AmendmentTable::FeatureInfo > const &supported, Section const &enabled, Section const &vetoed, beast::Journal journal)</div><div class="ttdef"><b>Definition:</b> <a href="AmendmentTable_8cpp_source.html#l00973">AmendmentTable.cpp:973</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 &n, uint256 const &f, VoteBehavior 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="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< uint256 > 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  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.17
|
|
</small></address>
|
|
</body>
|
|
</html>
|