This commit is contained in:
nbougalis
2020-04-15 21:15:02 +00:00
commit 4ad595bf18
12373 changed files with 1478990 additions and 0 deletions

View File

@@ -0,0 +1,429 @@
<!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: FeeVoteImpl.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr 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">FeeVoteImpl.cpp</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">#include &lt;ripple/protocol/st.h&gt;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &lt;ripple/app/misc/FeeVote.h&gt;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;ripple/app/main/Application.h&gt;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;ripple/protocol/STValidation.h&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;ripple/basics/BasicConfig.h&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;ripple/beast/utility/Journal.h&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; </div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</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="keyword">namespace </span>detail {</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"><a class="line" href="classripple_1_1detail_1_1VotableValue.html"> 31</a></span>&#160;<span class="keyword">class </span><a class="code" href="classripple_1_1detail_1_1VotableValue.html">VotableValue</a></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;{</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1VotableValue.html#adc60b0c780baaafb5dbbae750d0c1159"> 34</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classripple_1_1XRPAmount.html">value_type</a> = <a class="code" href="classripple_1_1XRPAmount.html">XRPAmount</a>;</div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1VotableValue.html#a229ae5ddd4ef2a1259ab4861e0ceed4f"> 35</a></span>&#160; <a class="code" href="classripple_1_1XRPAmount.html">value_type</a> <span class="keyword">const</span> <a class="code" href="classripple_1_1detail_1_1VotableValue.html#a229ae5ddd4ef2a1259ab4861e0ceed4f">mCurrent</a>; <span class="comment">// The current setting</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1VotableValue.html#a6d33931d5c2b4d7d91573848f91feb1b"> 36</a></span>&#160; <a class="code" href="classripple_1_1XRPAmount.html">value_type</a> <span class="keyword">const</span> <a class="code" href="classripple_1_1detail_1_1VotableValue.html#a6d33931d5c2b4d7d91573848f91feb1b">mTarget</a>; <span class="comment">// The setting we want</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1VotableValue.html#af2753cd7363a4a68bf6c0deda43dd789"> 37</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map &lt;value_type, int&gt;</a> <a class="code" href="classripple_1_1detail_1_1VotableValue.html#af2753cd7363a4a68bf6c0deda43dd789">mVoteMap</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="classripple_1_1detail_1_1VotableValue.html#a4041f660d3bcbf57e3f6947cb7ae5103"> 40</a></span>&#160; <a class="code" href="classripple_1_1detail_1_1VotableValue.html#a4041f660d3bcbf57e3f6947cb7ae5103">VotableValue</a> (<a class="code" href="classripple_1_1XRPAmount.html">value_type</a> current, <a class="code" href="classripple_1_1XRPAmount.html">value_type</a> target)</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; : <a class="code" href="classripple_1_1detail_1_1VotableValue.html#a229ae5ddd4ef2a1259ab4861e0ceed4f">mCurrent</a> (<a class="code" href="namespaceripple.html#a6434c1a0fd22b77e2e4a228c0eca79eba43b5c9175984c071f30b873fdce0a000">current</a>)</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; , <a class="code" href="classripple_1_1detail_1_1VotableValue.html#a6d33931d5c2b4d7d91573848f91feb1b">mTarget</a> (target)</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; {</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <span class="comment">// Add our vote</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; ++<a class="code" href="classripple_1_1detail_1_1VotableValue.html#af2753cd7363a4a68bf6c0deda43dd789">mVoteMap</a>[<a class="code" href="classripple_1_1detail_1_1VotableValue.html#a6d33931d5c2b4d7d91573848f91feb1b">mTarget</a>];</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"> 48</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1VotableValue.html#ae39cb1b77a2ff486ea88331c60b35f0b"> 49</a></span>&#160; <a class="code" href="classripple_1_1detail_1_1VotableValue.html#ae39cb1b77a2ff486ea88331c60b35f0b">addVote</a>(<a class="code" href="classripple_1_1XRPAmount.html">value_type</a> vote)</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; {</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; ++<a class="code" href="classripple_1_1detail_1_1VotableValue.html#af2753cd7363a4a68bf6c0deda43dd789">mVoteMap</a>[vote];</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; </div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1VotableValue.html#a8b88a947782854403df68ac5a5530021"> 55</a></span>&#160; <a class="code" href="classripple_1_1detail_1_1VotableValue.html#a8b88a947782854403df68ac5a5530021">noVote</a>()</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; {</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <a class="code" href="classripple_1_1detail_1_1VotableValue.html#ae39cb1b77a2ff486ea88331c60b35f0b">addVote</a> (<a class="code" href="classripple_1_1detail_1_1VotableValue.html#a229ae5ddd4ef2a1259ab4861e0ceed4f">mCurrent</a>);</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; }</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <a class="code" href="classripple_1_1detail_1_1VotableValue.html#adc60b0c780baaafb5dbbae750d0c1159">value_type</a></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <a class="code" href="classripple_1_1detail_1_1VotableValue.html#a44c6c7d10b3a14713af1e2dfac9a6b54">getVotes</a>() <span class="keyword">const</span>;</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; </div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;<span class="keyword">auto</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1VotableValue.html#a44c6c7d10b3a14713af1e2dfac9a6b54"> 65</a></span>&#160;<a class="code" href="classripple_1_1detail_1_1VotableValue.html#a44c6c7d10b3a14713af1e2dfac9a6b54">VotableValue::getVotes</a>() const</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; -&gt; <a class="code" href="classripple_1_1XRPAmount.html">value_type</a></div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;{</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <a class="code" href="classripple_1_1XRPAmount.html">value_type</a> ourVote = <a class="code" href="classripple_1_1detail_1_1VotableValue.html#a229ae5ddd4ef2a1259ab4861e0ceed4f">mCurrent</a>;</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <span class="keywordtype">int</span> weight = 0;</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>&amp; [key, val] : <a class="code" href="classripple_1_1detail_1_1VotableValue.html#af2753cd7363a4a68bf6c0deda43dd789">mVoteMap</a>)</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; {</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <span class="comment">// Take most voted value between current and target, inclusive</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <span class="keywordflow">if</span> ((key &lt;= <a class="codeRef" href="http://en.cppreference.com/w/cpp/algorithm/max.html">std::max</a> (<a class="code" href="classripple_1_1detail_1_1VotableValue.html#a6d33931d5c2b4d7d91573848f91feb1b">mTarget</a>, <a class="code" href="classripple_1_1detail_1_1VotableValue.html#a229ae5ddd4ef2a1259ab4861e0ceed4f">mCurrent</a>)) &amp;&amp;</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; (key &gt;= <a class="codeRef" href="http://en.cppreference.com/w/cpp/algorithm/min.html">std::min</a> (<a class="code" href="classripple_1_1detail_1_1VotableValue.html#a6d33931d5c2b4d7d91573848f91feb1b">mTarget</a>, <a class="code" href="classripple_1_1detail_1_1VotableValue.html#a229ae5ddd4ef2a1259ab4861e0ceed4f">mCurrent</a>)) &amp;&amp;</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; (val &gt; weight))</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; {</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; ourVote = key;</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; weight = val;</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; }</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <span class="keywordflow">return</span> ourVote;</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;}</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;}</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classripple_1_1FeeVoteImpl.html"> 89</a></span>&#160;<span class="keyword">class </span><a class="code" href="classripple_1_1FeeVoteImpl.html">FeeVoteImpl</a> : <span class="keyword">public</span> <a class="code" href="classripple_1_1FeeVote.html">FeeVote</a></div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;{</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classripple_1_1FeeVoteImpl.html#a385f588cb201f7ac41bb6c3751c07ecd"> 92</a></span>&#160; Setup <a class="code" href="classripple_1_1FeeVoteImpl.html#a385f588cb201f7ac41bb6c3751c07ecd">target_</a>;</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classripple_1_1FeeVoteImpl.html#a2de72b0b3f3a4dc5b412843d25fc57be"> 93</a></span>&#160; <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> <span class="keyword">const</span> <a class="code" href="classripple_1_1FeeVoteImpl.html#a2de72b0b3f3a4dc5b412843d25fc57be">journal_</a>;</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="keyword">public</span>:</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <a class="code" href="classripple_1_1FeeVoteImpl.html#ad0d05ada35919d89d0fd63ed76bed35d">FeeVoteImpl</a> (Setup <span class="keyword">const</span>&amp; setup, <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> journal);</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <a class="code" href="classripple_1_1FeeVoteImpl.html#addedc27fb3c25ae2583ccdf52aff7a5b">doValidation</a> (<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="l00100"></a><span class="lineno"> 100</span>&#160; <a class="code" href="structripple_1_1STValidation_1_1FeeSettings.html">STValidation::FeeSettings</a>&amp; fees) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; </div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <a class="code" href="classripple_1_1FeeVoteImpl.html#a981ed162d0241aabd97e367ead808f0b">doVoting</a> (<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="l00104"></a><span class="lineno"> 104</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;STValidation::pointer&gt;</a> <span class="keyword">const</span>&amp; parentValidations,</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</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) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;};</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="comment">//--------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; </div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classripple_1_1FeeVoteImpl.html#ad0d05ada35919d89d0fd63ed76bed35d"> 110</a></span>&#160;<a class="code" href="classripple_1_1FeeVoteImpl.html#ad0d05ada35919d89d0fd63ed76bed35d">FeeVoteImpl::FeeVoteImpl</a> (Setup <span class="keyword">const</span>&amp; setup, <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> journal)</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; : target_ (setup)</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; , journal_ (journal)</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;}</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="classripple_1_1FeeVoteImpl.html#addedc27fb3c25ae2583ccdf52aff7a5b"> 117</a></span>&#160;<a class="code" href="classripple_1_1FeeVoteImpl.html#addedc27fb3c25ae2583ccdf52aff7a5b">FeeVoteImpl::doValidation</a>(</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</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="l00119"></a><span class="lineno"> 119</span>&#160; <a class="code" href="structripple_1_1STValidation_1_1FeeSettings.html">STValidation::FeeSettings</a>&amp; fees)</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;{</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keywordflow">if</span> (lastClosedLedger-&gt;fees().base != <a class="code" href="classripple_1_1FeeVoteImpl.html#a385f588cb201f7ac41bb6c3751c07ecd">target_</a>.<a class="code" href="structripple_1_1FeeVote_1_1Setup.html#a97f426b8d134160cbe1ba12478574007">reference_fee</a>)</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; {</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; JLOG(<a class="code" href="classripple_1_1FeeVoteImpl.html#a2de72b0b3f3a4dc5b412843d25fc57be">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a87d6bd59020d94110027dcab3d9e3357">info</a>()) &lt;&lt;</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="stringliteral">&quot;Voting for base fee of &quot;</span> &lt;&lt; <a class="code" href="classripple_1_1FeeVoteImpl.html#a385f588cb201f7ac41bb6c3751c07ecd">target_</a>.<a class="code" href="structripple_1_1FeeVote_1_1Setup.html#a97f426b8d134160cbe1ba12478574007">reference_fee</a>;</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; fees.<a class="code" href="structripple_1_1STValidation_1_1FeeSettings.html#abcbc955d4d7e08d68a7877ef2cab0ea2">baseFee</a> = <a class="code" href="classripple_1_1FeeVoteImpl.html#a385f588cb201f7ac41bb6c3751c07ecd">target_</a>.<a class="code" href="structripple_1_1FeeVote_1_1Setup.html#a97f426b8d134160cbe1ba12478574007">reference_fee</a>;</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; }</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="keywordflow">if</span> (lastClosedLedger-&gt;fees().accountReserve(0) != <a class="code" href="classripple_1_1FeeVoteImpl.html#a385f588cb201f7ac41bb6c3751c07ecd">target_</a>.<a class="code" href="structripple_1_1FeeVote_1_1Setup.html#a8a44488a31dc71056448b1e25392b34e">account_reserve</a>)</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; {</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; JLOG(<a class="code" href="classripple_1_1FeeVoteImpl.html#a2de72b0b3f3a4dc5b412843d25fc57be">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a87d6bd59020d94110027dcab3d9e3357">info</a>()) &lt;&lt;</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="stringliteral">&quot;Voting for base reserve of &quot;</span> &lt;&lt; <a class="code" href="classripple_1_1FeeVoteImpl.html#a385f588cb201f7ac41bb6c3751c07ecd">target_</a>.<a class="code" href="structripple_1_1FeeVote_1_1Setup.html#a8a44488a31dc71056448b1e25392b34e">account_reserve</a>;</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; fees.<a class="code" href="structripple_1_1STValidation_1_1FeeSettings.html#a327cdfe94ca815834e14e5dab32a9a0c">reserveBase</a> = <a class="code" href="classripple_1_1FeeVoteImpl.html#a385f588cb201f7ac41bb6c3751c07ecd">target_</a>.<a class="code" href="structripple_1_1FeeVote_1_1Setup.html#a8a44488a31dc71056448b1e25392b34e">account_reserve</a>;</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; </div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <span class="keywordflow">if</span> (lastClosedLedger-&gt;fees().increment != <a class="code" href="classripple_1_1FeeVoteImpl.html#a385f588cb201f7ac41bb6c3751c07ecd">target_</a>.<a class="code" href="structripple_1_1FeeVote_1_1Setup.html#a4a66b205dae39ec733f4f17490808072">owner_reserve</a>)</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; {</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; JLOG(<a class="code" href="classripple_1_1FeeVoteImpl.html#a2de72b0b3f3a4dc5b412843d25fc57be">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a87d6bd59020d94110027dcab3d9e3357">info</a>()) &lt;&lt;</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="stringliteral">&quot;Voting for reserve increment of &quot;</span> &lt;&lt; <a class="code" href="classripple_1_1FeeVoteImpl.html#a385f588cb201f7ac41bb6c3751c07ecd">target_</a>.<a class="code" href="structripple_1_1FeeVote_1_1Setup.html#a4a66b205dae39ec733f4f17490808072">owner_reserve</a>;</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; fees.<a class="code" href="structripple_1_1STValidation_1_1FeeSettings.html#a779e0add4d5a14c39de14fee750ec63b">reserveIncrement</a> = <a class="code" href="classripple_1_1FeeVoteImpl.html#a385f588cb201f7ac41bb6c3751c07ecd">target_</a>.<a class="code" href="structripple_1_1FeeVote_1_1Setup.html#a4a66b205dae39ec733f4f17490808072">owner_reserve</a>;</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; }</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160;}</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; </div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classripple_1_1FeeVoteImpl.html#a981ed162d0241aabd97e367ead808f0b"> 147</a></span>&#160;<a class="code" href="classripple_1_1FeeVoteImpl.html#a981ed162d0241aabd97e367ead808f0b">FeeVoteImpl::doVoting</a>(</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</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="l00149"></a><span class="lineno"> 149</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;STValidation::pointer&gt;</a> <span class="keyword">const</span>&amp; <a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>,</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</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="l00151"></a><span class="lineno"> 151</span>&#160;{</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <span class="comment">// LCL must be flag ledger</span></div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; assert ((lastClosedLedger-&gt;info().seq % 256) == 0);</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; </div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <a class="code" href="classripple_1_1detail_1_1VotableValue.html">detail::VotableValue</a> baseFeeVote (</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; lastClosedLedger-&gt;fees().base,</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; <a class="code" href="classripple_1_1FeeVoteImpl.html#a385f588cb201f7ac41bb6c3751c07ecd">target_</a>.<a class="code" href="structripple_1_1FeeVote_1_1Setup.html#a97f426b8d134160cbe1ba12478574007">reference_fee</a>);</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_1detail_1_1VotableValue.html">detail::VotableValue</a> baseReserveVote(</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; lastClosedLedger-&gt;fees().accountReserve(0),</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <a class="code" href="classripple_1_1FeeVoteImpl.html#a385f588cb201f7ac41bb6c3751c07ecd">target_</a>.<a class="code" href="structripple_1_1FeeVote_1_1Setup.html#a8a44488a31dc71056448b1e25392b34e">account_reserve</a>);</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; </div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <a class="code" href="classripple_1_1detail_1_1VotableValue.html">detail::VotableValue</a> incReserveVote (</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; lastClosedLedger-&gt;fees().increment,</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <a class="code" href="classripple_1_1FeeVoteImpl.html#a385f588cb201f7ac41bb6c3751c07ecd">target_</a>.<a class="code" href="structripple_1_1FeeVote_1_1Setup.html#a4a66b205dae39ec733f4f17490808072">owner_reserve</a>);</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; </div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>&amp; val : <a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>)</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; <span class="keywordflow">if</span> (val-&gt;isTrusted ())</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; {</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <span class="keywordflow">if</span> (val-&gt;isFieldPresent (<a class="code" href="namespaceripple.html#ae1860b879bd20588ab7b31546e4441a1">sfBaseFee</a>))</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; <span class="keyword">using</span> xrptype = <a class="code" href="classripple_1_1XRPAmount.html#a298f0e53b7fbc6cb08fe8ced77ecfb2f">XRPAmount::value_type</a>;</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> vote = val-&gt;getFieldU64 (<a class="code" href="namespaceripple.html#ae1860b879bd20588ab7b31546e4441a1">sfBaseFee</a>);</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <span class="keywordflow">if</span> (vote &lt;= <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/numeric_limits.html">std::numeric_limits&lt;xrptype&gt;::max</a>() &amp;&amp;</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; <a class="code" href="namespaceripple.html#a2ad36218df31bca30cc7212166c77432">isLegalAmount</a>(<a class="code" href="classripple_1_1XRPAmount.html">XRPAmount</a>{unsafe_cast&lt;xrptype&gt;(vote)}))</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; baseFeeVote.<a class="code" href="classripple_1_1detail_1_1VotableValue.html#ae39cb1b77a2ff486ea88331c60b35f0b">addVote</a>(<a class="code" href="classripple_1_1XRPAmount.html">XRPAmount</a>{</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; unsafe_cast&lt;XRPAmount::value_type&gt;(vote)});</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <span class="comment">// Invalid amounts will be treated as if they&#39;re</span></div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; <span class="comment">// not provided. Don&#39;t throw because this value is</span></div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="comment">// provided by an external entity.</span></div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; baseFeeVote.<a class="code" href="classripple_1_1detail_1_1VotableValue.html#a8b88a947782854403df68ac5a5530021">noVote</a>();</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; }</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; {</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; baseFeeVote.<a class="code" href="classripple_1_1detail_1_1VotableValue.html#a8b88a947782854403df68ac5a5530021">noVote</a> ();</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; }</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="keywordflow">if</span> (val-&gt;isFieldPresent (<a class="code" href="namespaceripple.html#a62820bfff4e83bb84a86533d1e102df1">sfReserveBase</a>))</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; baseReserveVote.<a class="code" href="classripple_1_1detail_1_1VotableValue.html#ae39cb1b77a2ff486ea88331c60b35f0b">addVote</a>(<a class="code" href="classripple_1_1XRPAmount.html">XRPAmount</a>{</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; val-&gt;getFieldU32(<a class="code" href="namespaceripple.html#a62820bfff4e83bb84a86533d1e102df1">sfReserveBase</a>)});</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; }</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; {</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; baseReserveVote.<a class="code" href="classripple_1_1detail_1_1VotableValue.html#a8b88a947782854403df68ac5a5530021">noVote</a> ();</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; }</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; </div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; <span class="keywordflow">if</span> (val-&gt;isFieldPresent (<a class="code" href="namespaceripple.html#a7728fc7a6b58ab2649923ca61da8e2b6">sfReserveIncrement</a>))</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; {</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; incReserveVote.<a class="code" href="classripple_1_1detail_1_1VotableValue.html#ae39cb1b77a2ff486ea88331c60b35f0b">addVote</a> (<a class="code" href="classripple_1_1XRPAmount.html">XRPAmount</a>{</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; val-&gt;getFieldU32 (<a class="code" href="namespaceripple.html#a7728fc7a6b58ab2649923ca61da8e2b6">sfReserveIncrement</a>)});</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; }</div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; {</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; incReserveVote.<a class="code" href="classripple_1_1detail_1_1VotableValue.html#a8b88a947782854403df68ac5a5530021">noVote</a> ();</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; }</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; }</div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; }</div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; </div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; <span class="comment">// choose our positions</span></div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; <span class="comment">// If any of the values are invalid, send the current values.</span></div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> baseFee = baseFeeVote.<a class="code" href="classripple_1_1detail_1_1VotableValue.html#a44c6c7d10b3a14713af1e2dfac9a6b54">getVotes</a> ().<a class="code" href="classripple_1_1XRPAmount.html#a5b66cfca6453b8dba59712100a037f61">dropsAs</a>&lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint64_t</a>&gt;(</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; lastClosedLedger-&gt;fees().base);</div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> baseReserve = baseReserveVote.<a class="code" href="classripple_1_1detail_1_1VotableValue.html#a44c6c7d10b3a14713af1e2dfac9a6b54">getVotes</a> ().<a class="code" href="classripple_1_1XRPAmount.html#a5b66cfca6453b8dba59712100a037f61">dropsAs</a>&lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a>&gt;(</div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160; lastClosedLedger-&gt;fees().accountReserve(0));</div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> incReserve = incReserveVote.<a class="code" href="classripple_1_1detail_1_1VotableValue.html#a44c6c7d10b3a14713af1e2dfac9a6b54">getVotes</a> ().<a class="code" href="classripple_1_1XRPAmount.html#a5b66cfca6453b8dba59712100a037f61">dropsAs</a>&lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a>&gt;(</div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160; lastClosedLedger-&gt;fees().increment);</div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; constexpr <a class="code" href="classripple_1_1feeunit_1_1TaggedFee.html">FeeUnit32</a> feeUnits = <a class="code" href="structripple_1_1FeeVote_1_1Setup.html#ab89006acb6fbedb779f1efe3ca08f957">Setup::reference_fee_units</a>;</div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> seq = lastClosedLedger-&gt;info().seq + 1;</div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; </div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160; <span class="comment">// add transactions to our position</span></div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160; <span class="keywordflow">if</span> ((baseFee != lastClosedLedger-&gt;fees().base) ||</div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160; (baseReserve != lastClosedLedger-&gt;fees().accountReserve(0)) ||</div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160; (incReserve != lastClosedLedger-&gt;fees().increment))</div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160; {</div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160; JLOG(<a class="code" href="classripple_1_1FeeVoteImpl.html#a2de72b0b3f3a4dc5b412843d25fc57be">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) &lt;&lt;</div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160; <span class="stringliteral">&quot;We are voting for a fee change: &quot;</span> &lt;&lt; baseFee &lt;&lt;</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; <span class="stringliteral">&quot;/&quot;</span> &lt;&lt; baseReserve &lt;&lt;</div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160; <span class="stringliteral">&quot;/&quot;</span> &lt;&lt; incReserve;</div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160; </div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160; <a class="code" href="classripple_1_1STTx.html">STTx</a> feeTx (<a class="code" href="namespaceripple.html#a48e7bc26e67dbb8709698c89f67a9264aded2ff2e2fb748fa8f007ca05719d8f8">ttFEE</a>,</div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160; [seq,baseFee,baseReserve,incReserve,feeUnits](<span class="keyword">auto</span>&amp; obj)</div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160; {</div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160; obj[<a class="code" href="namespaceripple.html#af0fe0cd9ec9c5f73998088d7d133c394">sfAccount</a>] = <a class="code" href="namespaceripple.html#a16ab89d505feb8a59bf35abddfe1fb2c">AccountID</a>();</div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160; obj[<a class="code" href="namespaceripple.html#a1932b552a7e76eba44a31bdcdd4a5315">sfLedgerSequence</a>] = seq;</div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160; obj[<a class="code" href="namespaceripple.html#ae1860b879bd20588ab7b31546e4441a1">sfBaseFee</a>] = baseFee;</div>
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160; obj[<a class="code" href="namespaceripple.html#a62820bfff4e83bb84a86533d1e102df1">sfReserveBase</a>] = baseReserve;</div>
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160; obj[<a class="code" href="namespaceripple.html#a7728fc7a6b58ab2649923ca61da8e2b6">sfReserveIncrement</a>] = incReserve;</div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160; obj[<a class="code" href="namespaceripple.html#ac07aad796b465989ac66dd4702216fa3">sfReferenceFeeUnits</a>] = feeUnits.fee();</div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160; });</div>
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160; </div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> txID = feeTx.getTransactionID ();</div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160; </div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160; JLOG(<a class="code" href="classripple_1_1FeeVoteImpl.html#a2de72b0b3f3a4dc5b412843d25fc57be">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) &lt;&lt;</div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160; <span class="stringliteral">&quot;Vote: &quot;</span> &lt;&lt; txID;</div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160; </div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160; <a class="code" href="classripple_1_1Serializer.html">Serializer</a> s;</div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160; feeTx.add (s);</div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160; </div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160; <span class="keyword">auto</span> tItem = std::make_shared&lt;SHAMapItem&gt; (txID, s.<a class="code" href="classripple_1_1Serializer.html#a5f8c275ba7cfa80e56671b6935e29242">peekData</a> ());</div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160; </div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160; <span class="keywordflow">if</span> (!initialPosition-&gt;addGiveItem (tItem, <span class="keyword">true</span>, <span class="keyword">false</span>))</div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160; {</div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160; JLOG(<a class="code" href="classripple_1_1FeeVoteImpl.html#a2de72b0b3f3a4dc5b412843d25fc57be">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) &lt;&lt;</div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160; <span class="stringliteral">&quot;Ledger already had fee change&quot;</span>;</div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160; }</div>
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160; }</div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160;}</div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160; </div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160; </div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160;<a class="code" href="structripple_1_1FeeVote_1_1Setup.html">FeeVote::Setup</a></div>
<div class="line"><a name="l00265"></a><span class="lineno"><a class="line" href="namespaceripple.html#acbafe6bd675116b7d1c63c314fcd369d"> 265</a></span>&#160;<a class="code" href="namespaceripple.html#acbafe6bd675116b7d1c63c314fcd369d">setup_FeeVote</a> (<a class="code" href="classripple_1_1Section.html">Section</a> <span class="keyword">const</span>&amp; section)</div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160;{</div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160; <a class="code" href="structripple_1_1FeeVote_1_1Setup.html">FeeVote::Setup</a> setup;</div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>&#160; {</div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint64_t</a> temp;</div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>(temp, <span class="stringliteral">&quot;reference_fee&quot;</span>, section) &amp;&amp;</div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>&#160; temp &lt;= <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/numeric_limits.html">std::numeric_limits&lt;XRPAmount::value_type&gt;::max</a>())</div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160; setup.<a class="code" href="structripple_1_1FeeVote_1_1Setup.html#a97f426b8d134160cbe1ba12478574007">reference_fee</a> = temp;</div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160; }</div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160; {</div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> temp;</div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>(temp, <span class="stringliteral">&quot;account_reserve&quot;</span>, section))</div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160; setup.<a class="code" href="structripple_1_1FeeVote_1_1Setup.html#a8a44488a31dc71056448b1e25392b34e">account_reserve</a> = temp;</div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>(temp, <span class="stringliteral">&quot;owner_reserve&quot;</span>, section))</div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>&#160; setup.<a class="code" href="structripple_1_1FeeVote_1_1Setup.html#a4a66b205dae39ec733f4f17490808072">owner_reserve</a> = temp;</div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160; }</div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160; <span class="keywordflow">return</span> setup;</div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160;}</div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160; </div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160;<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr&lt;FeeVote&gt;</a></div>
<div class="line"><a name="l00285"></a><span class="lineno"><a class="line" href="namespaceripple.html#a0255816875fa12eac9b8dccf1fbcf592"> 285</a></span>&#160;<a class="code" href="namespaceripple.html#a0255816875fa12eac9b8dccf1fbcf592">make_FeeVote</a> (<a class="code" href="structripple_1_1FeeVote_1_1Setup.html">FeeVote::Setup</a> <span class="keyword">const</span>&amp; setup, <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> journal)</div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160;{</div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160; <span class="keywordflow">return</span> std::make_unique&lt;FeeVoteImpl&gt; (setup, journal);</div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160;}</div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>&#160; </div>
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160;} <span class="comment">// ripple</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="anamespaceripple_html_acbafe6bd675116b7d1c63c314fcd369d"><div class="ttname"><a href="namespaceripple.html#acbafe6bd675116b7d1c63c314fcd369d">ripple::setup_FeeVote</a></div><div class="ttdeci">FeeVote::Setup setup_FeeVote(Section const &amp;section)</div><div class="ttdoc">Build FeeVote::Setup from a config section.</div><div class="ttdef"><b>Definition:</b> <a href="FeeVoteImpl_8cpp_source.html#l00265">FeeVoteImpl.cpp:265</a></div></div>
<div class="ttc" id="aclassripple_1_1Section_html"><div class="ttname"><a href="classripple_1_1Section.html">ripple::Section</a></div><div class="ttdoc">Holds a collection of configuration values.</div><div class="ttdef"><b>Definition:</b> <a href="BasicConfig_8h_source.html#l00043">BasicConfig.h:43</a></div></div>
<div class="ttc" id="astructripple_1_1FeeVote_1_1Setup_html_a4a66b205dae39ec733f4f17490808072"><div class="ttname"><a href="structripple_1_1FeeVote_1_1Setup.html#a4a66b205dae39ec733f4f17490808072">ripple::FeeVote::Setup::owner_reserve</a></div><div class="ttdeci">XRPAmount owner_reserve</div><div class="ttdoc">The per-owned item reserve requirement in drops.</div><div class="ttdef"><b>Definition:</b> <a href="FeeVote_8h_source.html#l00052">FeeVote.h:52</a></div></div>
<div class="ttc" id="aclassripple_1_1FeeVoteImpl_html_addedc27fb3c25ae2583ccdf52aff7a5b"><div class="ttname"><a href="classripple_1_1FeeVoteImpl.html#addedc27fb3c25ae2583ccdf52aff7a5b">ripple::FeeVoteImpl::doValidation</a></div><div class="ttdeci">void doValidation(std::shared_ptr&lt; ReadView const &gt; const &amp;lastClosedLedger, STValidation::FeeSettings &amp;fees) override</div><div class="ttdoc">Add local fee preference to validation.</div><div class="ttdef"><b>Definition:</b> <a href="FeeVoteImpl_8cpp_source.html#l00117">FeeVoteImpl.cpp:117</a></div></div>
<div class="ttc" id="astructripple_1_1STValidation_1_1FeeSettings_html_a327cdfe94ca815834e14e5dab32a9a0c"><div class="ttname"><a href="structripple_1_1STValidation_1_1FeeSettings.html#a327cdfe94ca815834e14e5dab32a9a0c">ripple::STValidation::FeeSettings::reserveBase</a></div><div class="ttdeci">boost::optional&lt; XRPAmount &gt; reserveBase</div><div class="ttdef"><b>Definition:</b> <a href="STValidation_8h_source.html#l00105">STValidation.h:105</a></div></div>
<div class="ttc" id="ashared_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="anamespaceripple_html_a2ad36218df31bca30cc7212166c77432"><div class="ttname"><a href="namespaceripple.html#a2ad36218df31bca30cc7212166c77432">ripple::isLegalAmount</a></div><div class="ttdeci">bool isLegalAmount(XRPAmount const &amp;amount)</div><div class="ttdoc">Returns true if the amount does not exceed the initial XRP in existence.</div><div class="ttdef"><b>Definition:</b> <a href="SystemParameters_8h_source.html#l00049">SystemParameters.h:49</a></div></div>
<div class="ttc" id="anamespaceripple_html_a0255816875fa12eac9b8dccf1fbcf592"><div class="ttname"><a href="namespaceripple.html#a0255816875fa12eac9b8dccf1fbcf592">ripple::make_FeeVote</a></div><div class="ttdeci">std::unique_ptr&lt; FeeVote &gt; make_FeeVote(FeeVote::Setup const &amp;setup, beast::Journal journal)</div><div class="ttdoc">Create an instance of the FeeVote logic.</div><div class="ttdef"><b>Definition:</b> <a href="FeeVoteImpl_8cpp_source.html#l00285">FeeVoteImpl.cpp:285</a></div></div>
<div class="ttc" id="aclassripple_1_1FeeVote_html"><div class="ttname"><a href="classripple_1_1FeeVote.html">ripple::FeeVote</a></div><div class="ttdoc">Manager to process fee votes.</div><div class="ttdef"><b>Definition:</b> <a href="FeeVote_8h_source.html#l00032">FeeVote.h:32</a></div></div>
<div class="ttc" id="astructripple_1_1FeeVote_1_1Setup_html_a97f426b8d134160cbe1ba12478574007"><div class="ttname"><a href="structripple_1_1FeeVote_1_1Setup.html#a97f426b8d134160cbe1ba12478574007">ripple::FeeVote::Setup::reference_fee</a></div><div class="ttdeci">XRPAmount reference_fee</div><div class="ttdoc">The cost of a reference transaction in drops.</div><div class="ttdef"><b>Definition:</b> <a href="FeeVote_8h_source.html#l00043">FeeVote.h:43</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_1detail_1_1VotableValue_html_a8b88a947782854403df68ac5a5530021"><div class="ttname"><a href="classripple_1_1detail_1_1VotableValue.html#a8b88a947782854403df68ac5a5530021">ripple::detail::VotableValue::noVote</a></div><div class="ttdeci">void noVote()</div><div class="ttdef"><b>Definition:</b> <a href="FeeVoteImpl_8cpp_source.html#l00055">FeeVoteImpl.cpp:55</a></div></div>
<div class="ttc" id="anamespaceripple_html_af0fe0cd9ec9c5f73998088d7d133c394"><div class="ttname"><a href="namespaceripple.html#af0fe0cd9ec9c5f73998088d7d133c394">ripple::sfAccount</a></div><div class="ttdeci">const SF_Account sfAccount(access, STI_ACCOUNT, 1, &quot;Account&quot;)</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00460">SField.h:460</a></div></div>
<div class="ttc" id="anamespaceripple_html_a16ab89d505feb8a59bf35abddfe1fb2c"><div class="ttname"><a href="namespaceripple.html#a16ab89d505feb8a59bf35abddfe1fb2c">ripple::AccountID</a></div><div class="ttdeci">base_uint&lt; 160, detail::AccountIDTag &gt; AccountID</div><div class="ttdoc">A 160-bit unsigned that uniquely identifies an account.</div><div class="ttdef"><b>Definition:</b> <a href="AccountID_8h_source.html#l00048">AccountID.h:48</a></div></div>
<div class="ttc" id="aclassbeast_1_1Journal_html_ad8fefe3e8ad583e1ed1bf02094ac3d8f"><div class="ttname"><a href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">beast::Journal::warn</a></div><div class="ttdeci">Stream warn() const</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00302">Journal.h:302</a></div></div>
<div class="ttc" id="astructripple_1_1FeeVote_1_1Setup_html"><div class="ttname"><a href="structripple_1_1FeeVote_1_1Setup.html">ripple::FeeVote::Setup</a></div><div class="ttdoc">Fee schedule to vote for.</div><div class="ttdef"><b>Definition:</b> <a href="FeeVote_8h_source.html#l00040">FeeVote.h:40</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1VotableValue_html_a4041f660d3bcbf57e3f6947cb7ae5103"><div class="ttname"><a href="classripple_1_1detail_1_1VotableValue.html#a4041f660d3bcbf57e3f6947cb7ae5103">ripple::detail::VotableValue::VotableValue</a></div><div class="ttdeci">VotableValue(value_type current, value_type target)</div><div class="ttdef"><b>Definition:</b> <a href="FeeVoteImpl_8cpp_source.html#l00040">FeeVoteImpl.cpp:40</a></div></div>
<div class="ttc" id="anamespaceripple_html_a62820bfff4e83bb84a86533d1e102df1"><div class="ttname"><a href="namespaceripple.html#a62820bfff4e83bb84a86533d1e102df1">ripple::sfReserveBase</a></div><div class="ttdeci">const SF_U32 sfReserveBase(access, STI_UINT32, 31, &quot;ReserveBase&quot;)</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00368">SField.h:368</a></div></div>
<div class="ttc" id="aclassripple_1_1FeeVoteImpl_html"><div class="ttname"><a href="classripple_1_1FeeVoteImpl.html">ripple::FeeVoteImpl</a></div><div class="ttdef"><b>Definition:</b> <a href="FeeVoteImpl_8cpp_source.html#l00089">FeeVoteImpl.cpp:89</a></div></div>
<div class="ttc" id="aclassripple_1_1FeeVoteImpl_html_a981ed162d0241aabd97e367ead808f0b"><div class="ttname"><a href="classripple_1_1FeeVoteImpl.html#a981ed162d0241aabd97e367ead808f0b">ripple::FeeVoteImpl::doVoting</a></div><div class="ttdeci">void doVoting(std::shared_ptr&lt; ReadView const &gt; const &amp;lastClosedLedger, std::vector&lt; STValidation::pointer &gt; const &amp;parentValidations, std::shared_ptr&lt; SHAMap &gt; const &amp;initialPosition) override</div><div class="ttdoc">Cast our local vote on the fee.</div><div class="ttdef"><b>Definition:</b> <a href="FeeVoteImpl_8cpp_source.html#l00147">FeeVoteImpl.cpp:147</a></div></div>
<div class="ttc" id="anamespaceripple_html_a48e7bc26e67dbb8709698c89f67a9264aded2ff2e2fb748fa8f007ca05719d8f8"><div class="ttname"><a href="namespaceripple.html#a48e7bc26e67dbb8709698c89f67a9264aded2ff2e2fb748fa8f007ca05719d8f8">ripple::ttFEE</a></div><div class="ttdeci">@ ttFEE</div><div class="ttdef"><b>Definition:</b> <a href="TxFormats_8h_source.html#l00061">TxFormats.h:61</a></div></div>
<div class="ttc" id="aclassripple_1_1base__uint_html"><div class="ttname"><a href="classripple_1_1base__uint.html">ripple::base_uint&lt; 256 &gt;</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1VotableValue_html_a229ae5ddd4ef2a1259ab4861e0ceed4f"><div class="ttname"><a href="classripple_1_1detail_1_1VotableValue.html#a229ae5ddd4ef2a1259ab4861e0ceed4f">ripple::detail::VotableValue::mCurrent</a></div><div class="ttdeci">const value_type mCurrent</div><div class="ttdef"><b>Definition:</b> <a href="FeeVoteImpl_8cpp_source.html#l00035">FeeVoteImpl.cpp:35</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1VotableValue_html_adc60b0c780baaafb5dbbae750d0c1159"><div class="ttname"><a href="classripple_1_1detail_1_1VotableValue.html#adc60b0c780baaafb5dbbae750d0c1159">ripple::detail::VotableValue::value_type</a></div><div class="ttdeci">XRPAmount value_type</div><div class="ttdef"><b>Definition:</b> <a href="FeeVoteImpl_8cpp_source.html#l00034">FeeVoteImpl.cpp:34</a></div></div>
<div class="ttc" id="aclassripple_1_1FeeVoteImpl_html_a2de72b0b3f3a4dc5b412843d25fc57be"><div class="ttname"><a href="classripple_1_1FeeVoteImpl.html#a2de72b0b3f3a4dc5b412843d25fc57be">ripple::FeeVoteImpl::journal_</a></div><div class="ttdeci">const beast::Journal journal_</div><div class="ttdef"><b>Definition:</b> <a href="FeeVoteImpl_8cpp_source.html#l00093">FeeVoteImpl.cpp:93</a></div></div>
<div class="ttc" id="aclassripple_1_1XRPAmount_html_a298f0e53b7fbc6cb08fe8ced77ecfb2f"><div class="ttname"><a href="classripple_1_1XRPAmount.html#a298f0e53b7fbc6cb08fe8ced77ecfb2f">ripple::XRPAmount::value_type</a></div><div class="ttdeci">std::int64_t value_type</div><div class="ttdef"><b>Definition:</b> <a href="XRPAmount_8h_source.html#l00054">XRPAmount.h:54</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1VotableValue_html_a6d33931d5c2b4d7d91573848f91feb1b"><div class="ttname"><a href="classripple_1_1detail_1_1VotableValue.html#a6d33931d5c2b4d7d91573848f91feb1b">ripple::detail::VotableValue::mTarget</a></div><div class="ttdeci">const value_type mTarget</div><div class="ttdef"><b>Definition:</b> <a href="FeeVoteImpl_8cpp_source.html#l00036">FeeVoteImpl.cpp:36</a></div></div>
<div class="ttc" id="astructripple_1_1FeeVote_1_1Setup_html_a8a44488a31dc71056448b1e25392b34e"><div class="ttname"><a href="structripple_1_1FeeVote_1_1Setup.html#a8a44488a31dc71056448b1e25392b34e">ripple::FeeVote::Setup::account_reserve</a></div><div class="ttdeci">XRPAmount account_reserve</div><div class="ttdoc">The account reserve requirement in drops.</div><div class="ttdef"><b>Definition:</b> <a href="FeeVote_8h_source.html#l00049">FeeVote.h:49</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1VotableValue_html"><div class="ttname"><a href="classripple_1_1detail_1_1VotableValue.html">ripple::detail::VotableValue</a></div><div class="ttdef"><b>Definition:</b> <a href="FeeVoteImpl_8cpp_source.html#l00031">FeeVoteImpl.cpp:31</a></div></div>
<div class="ttc" id="anamespaceripple_html_a53f80df10254751781250aa20704e98f"><div class="ttname"><a href="namespaceripple.html#a53f80df10254751781250aa20704e98f">ripple::set</a></div><div class="ttdeci">bool set(T &amp;target, std::string const &amp;name, Section const &amp;section)</div><div class="ttdoc">Set a value from a configuration Section If the named value is not found or doesn't parse as a T,...</div><div class="ttdef"><b>Definition:</b> <a href="BasicConfig_8h_source.html#l00271">BasicConfig.h:271</a></div></div>
<div class="ttc" id="anamespaceripple_html_a1932b552a7e76eba44a31bdcdd4a5315"><div class="ttname"><a href="namespaceripple.html#a1932b552a7e76eba44a31bdcdd4a5315">ripple::sfLedgerSequence</a></div><div class="ttdeci">const SF_U32 sfLedgerSequence(access, STI_UINT32, 6, &quot;LedgerSequence&quot;)</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00342">SField.h:342</a></div></div>
<div class="ttc" id="aclassbeast_1_1Journal_html_a87d6bd59020d94110027dcab3d9e3357"><div class="ttname"><a href="classbeast_1_1Journal.html#a87d6bd59020d94110027dcab3d9e3357">beast::Journal::info</a></div><div class="ttdeci">Stream info() const</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00297">Journal.h:297</a></div></div>
<div class="ttc" id="anamespaceripple_html_ac07aad796b465989ac66dd4702216fa3"><div class="ttname"><a href="namespaceripple.html#ac07aad796b465989ac66dd4702216fa3">ripple::sfReferenceFeeUnits</a></div><div class="ttdeci">const SF_U32 sfReferenceFeeUnits(access, STI_UINT32, 30, &quot;ReferenceFeeUnits&quot;)</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00367">SField.h:367</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="aclassripple_1_1FeeVoteImpl_html_ad0d05ada35919d89d0fd63ed76bed35d"><div class="ttname"><a href="classripple_1_1FeeVoteImpl.html#ad0d05ada35919d89d0fd63ed76bed35d">ripple::FeeVoteImpl::FeeVoteImpl</a></div><div class="ttdeci">FeeVoteImpl(Setup const &amp;setup, beast::Journal journal)</div><div class="ttdef"><b>Definition:</b> <a href="FeeVoteImpl_8cpp_source.html#l00110">FeeVoteImpl.cpp:110</a></div></div>
<div class="ttc" id="aclassripple_1_1FeeVoteImpl_html_a385f588cb201f7ac41bb6c3751c07ecd"><div class="ttname"><a href="classripple_1_1FeeVoteImpl.html#a385f588cb201f7ac41bb6c3751c07ecd">ripple::FeeVoteImpl::target_</a></div><div class="ttdeci">Setup target_</div><div class="ttdef"><b>Definition:</b> <a href="FeeVoteImpl_8cpp_source.html#l00092">FeeVoteImpl.cpp:92</a></div></div>
<div class="ttc" id="anamespaceripple_html_a6434c1a0fd22b77e2e4a228c0eca79eba43b5c9175984c071f30b873fdce0a000"><div class="ttname"><a href="namespaceripple.html#a6434c1a0fd22b77e2e4a228c0eca79eba43b5c9175984c071f30b873fdce0a000">ripple::ValStatus::current</a></div><div class="ttdeci">@ current</div><div class="ttdoc">This was a new validation and was added.</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#l00060">Journal.h:60</a></div></div>
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint64_t</a></div></div>
<div class="ttc" id="aclassripple_1_1feeunit_1_1TaggedFee_html"><div class="ttname"><a href="classripple_1_1feeunit_1_1TaggedFee.html">ripple::feeunit::TaggedFee</a></div><div class="ttdef"><b>Definition:</b> <a href="FeeUnits_8h_source.html#l00072">FeeUnits.h:72</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="astructripple_1_1FeeVote_1_1Setup_html_ab89006acb6fbedb779f1efe3ca08f957"><div class="ttname"><a href="structripple_1_1FeeVote_1_1Setup.html#ab89006acb6fbedb779f1efe3ca08f957">ripple::FeeVote::Setup::reference_fee_units</a></div><div class="ttdeci">static constexpr FeeUnit32 reference_fee_units</div><div class="ttdoc">The cost of a reference transaction in fee units.</div><div class="ttdef"><b>Definition:</b> <a href="FeeVote_8h_source.html#l00046">FeeVote.h:46</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1VotableValue_html_af2753cd7363a4a68bf6c0deda43dd789"><div class="ttname"><a href="classripple_1_1detail_1_1VotableValue.html#af2753cd7363a4a68bf6c0deda43dd789">ripple::detail::VotableValue::mVoteMap</a></div><div class="ttdeci">std::map&lt; value_type, int &gt; mVoteMap</div><div class="ttdef"><b>Definition:</b> <a href="FeeVoteImpl_8cpp_source.html#l00037">FeeVoteImpl.cpp:37</a></div></div>
<div class="ttc" id="amin_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/min.html">std::min</a></div><div class="ttdeci">T min(T... args)</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#l00043">Serializer.h:43</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_1detail_1_1VotableValue_html_a44c6c7d10b3a14713af1e2dfac9a6b54"><div class="ttname"><a href="classripple_1_1detail_1_1VotableValue.html#a44c6c7d10b3a14713af1e2dfac9a6b54">ripple::detail::VotableValue::getVotes</a></div><div class="ttdeci">value_type getVotes() const</div><div class="ttdef"><b>Definition:</b> <a href="FeeVoteImpl_8cpp_source.html#l00065">FeeVoteImpl.cpp:65</a></div></div>
<div class="ttc" id="astructripple_1_1STValidation_1_1FeeSettings_html_abcbc955d4d7e08d68a7877ef2cab0ea2"><div class="ttname"><a href="structripple_1_1STValidation_1_1FeeSettings.html#abcbc955d4d7e08d68a7877ef2cab0ea2">ripple::STValidation::FeeSettings::baseFee</a></div><div class="ttdeci">boost::optional&lt; XRPAmount &gt; baseFee</div><div class="ttdef"><b>Definition:</b> <a href="STValidation_8h_source.html#l00104">STValidation.h:104</a></div></div>
<div class="ttc" id="anamespaceripple_html_a7728fc7a6b58ab2649923ca61da8e2b6"><div class="ttname"><a href="namespaceripple.html#a7728fc7a6b58ab2649923ca61da8e2b6">ripple::sfReserveIncrement</a></div><div class="ttdeci">const SF_U32 sfReserveIncrement(access, STI_UINT32, 32, &quot;ReserveIncrement&quot;)</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00369">SField.h:369</a></div></div>
<div class="ttc" id="aclassripple_1_1Serializer_html_a5f8c275ba7cfa80e56671b6935e29242"><div class="ttname"><a href="classripple_1_1Serializer.html#a5f8c275ba7cfa80e56671b6935e29242">ripple::Serializer::peekData</a></div><div class="ttdeci">Blob const &amp; peekData() const</div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00173">Serializer.h:173</a></div></div>
<div class="ttc" id="amax_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/max.html">std::max</a></div><div class="ttdeci">T max(T... args)</div></div>
<div class="ttc" id="astructripple_1_1STValidation_1_1FeeSettings_html_a779e0add4d5a14c39de14fee750ec63b"><div class="ttname"><a href="structripple_1_1STValidation_1_1FeeSettings.html#a779e0add4d5a14c39de14fee750ec63b">ripple::STValidation::FeeSettings::reserveIncrement</a></div><div class="ttdeci">boost::optional&lt; XRPAmount &gt; reserveIncrement</div><div class="ttdef"><b>Definition:</b> <a href="STValidation_8h_source.html#l00106">STValidation.h:106</a></div></div>
<div class="ttc" id="anamespaceripple_html_ae1860b879bd20588ab7b31546e4441a1"><div class="ttname"><a href="namespaceripple.html#ae1860b879bd20588ab7b31546e4441a1">ripple::sfBaseFee</a></div><div class="ttdeci">const SF_U64 sfBaseFee(access, STI_UINT64, 5, &quot;BaseFee&quot;)</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00383">SField.h:383</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_1XRPAmount_html_a5b66cfca6453b8dba59712100a037f61"><div class="ttname"><a href="classripple_1_1XRPAmount.html#a5b66cfca6453b8dba59712100a037f61">ripple::XRPAmount::dropsAs</a></div><div class="ttdeci">boost::optional&lt; Dest &gt; dropsAs() const</div><div class="ttdef"><b>Definition:</b> <a href="XRPAmount_8h_source.html#l00196">XRPAmount.h:196</a></div></div>
<div class="ttc" id="astructripple_1_1STValidation_1_1FeeSettings_html"><div class="ttname"><a href="structripple_1_1STValidation_1_1FeeSettings.html">ripple::STValidation::FeeSettings</a></div><div class="ttdoc">Fees to set when issuing a new validation.</div><div class="ttdef"><b>Definition:</b> <a href="STValidation_8h_source.html#l00101">STValidation.h:101</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1VotableValue_html_ae39cb1b77a2ff486ea88331c60b35f0b"><div class="ttname"><a href="classripple_1_1detail_1_1VotableValue.html#ae39cb1b77a2ff486ea88331c60b35f0b">ripple::detail::VotableValue::addVote</a></div><div class="ttdeci">void addVote(value_type vote)</div><div class="ttdef"><b>Definition:</b> <a href="FeeVoteImpl_8cpp_source.html#l00049">FeeVoteImpl.cpp:49</a></div></div>
<div class="ttc" id="anumeric_limits_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/numeric_limits.html">std::numeric_limits</a></div></div>
<div class="ttc" id="aclassripple_1_1XRPAmount_html"><div class="ttname"><a href="classripple_1_1XRPAmount.html">ripple::XRPAmount</a></div><div class="ttdef"><b>Definition:</b> <a href="XRPAmount_8h_source.html#l00046">XRPAmount.h:46</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>