mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 03:26:01 +00:00
429 lines
79 KiB
HTML
429 lines
79 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: 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&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">FeeVoteImpl.cpp</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">#include <ripple/app/ledger/Ledger.h></span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <ripple/app/main/Application.h></span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <ripple/app/misc/FeeVote.h></span></div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <ripple/basics/BasicConfig.h></span></div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <ripple/beast/utility/Journal.h></span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <ripple/protocol/STValidation.h></span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <ripple/protocol/st.h></span></div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  </div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  </div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">namespace </span>detail {</div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1VotableValue.html"> 32</a></span> <span class="keyword">class </span><a class="code" href="classripple_1_1detail_1_1VotableValue.html">VotableValue</a></div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> {</div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="keyword">private</span>:</div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1VotableValue.html#adc60b0c780baaafb5dbbae750d0c1159"> 35</a></span>  <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="l00036"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1VotableValue.html#a229ae5ddd4ef2a1259ab4861e0ceed4f"> 36</a></span>  <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="l00037"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1VotableValue.html#a6d33931d5c2b4d7d91573848f91feb1b"> 37</a></span>  <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="l00038"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1VotableValue.html#af2753cd7363a4a68bf6c0deda43dd789"> 38</a></span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map<value_type, int></a> <a class="code" href="classripple_1_1detail_1_1VotableValue.html#af2753cd7363a4a68bf6c0deda43dd789">mVoteMap</a>;</div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  </div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1VotableValue.html#a4041f660d3bcbf57e3f6947cb7ae5103"> 41</a></span>  <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="l00042"></a><span class="lineno"> 42</span>  : <a class="code" href="classripple_1_1detail_1_1VotableValue.html#a229ae5ddd4ef2a1259ab4861e0ceed4f">mCurrent</a>(<a class="code" href="namespaceripple.html#a6434c1a0fd22b77e2e4a228c0eca79eba43b5c9175984c071f30b873fdce0a000">current</a>), <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>  {</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="comment">// Add our vote</span></div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  ++<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>  }</div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <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>  <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>  {</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  ++<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>  }</div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  </div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <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>  <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>  {</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <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>  }</div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  </div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <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>  <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> };</div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  </div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <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> <a class="code" href="classripple_1_1detail_1_1VotableValue.html#a44c6c7d10b3a14713af1e2dfac9a6b54">VotableValue::getVotes</a>() const -> <a class="code" href="classripple_1_1XRPAmount.html">value_type</a></div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> {</div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <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="l00068"></a><span class="lineno"> 68</span>  <span class="keywordtype">int</span> weight = 0;</div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& [key, val] : <a class="code" href="classripple_1_1detail_1_1VotableValue.html#af2753cd7363a4a68bf6c0deda43dd789">mVoteMap</a>)</div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  {</div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="comment">// Take most voted value between current and target, inclusive</span></div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordflow">if</span> ((key <= <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>)) &&</div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  (key >= <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>)) && (val > weight))</div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  {</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  ourVote = key;</div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  weight = val;</div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  }</div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  }</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="keywordflow">return</span> ourVote;</div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> }</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="comment">// namespace detail</span></div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  </div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  </div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classripple_1_1FeeVoteImpl.html"> 87</a></span> <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="l00088"></a><span class="lineno"> 88</span> {</div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="keyword">private</span>:</div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classripple_1_1FeeVoteImpl.html#a385f588cb201f7ac41bb6c3751c07ecd"> 90</a></span>  Setup <a class="code" href="classripple_1_1FeeVoteImpl.html#a385f588cb201f7ac41bb6c3751c07ecd">target_</a>;</div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classripple_1_1FeeVoteImpl.html#a2de72b0b3f3a4dc5b412843d25fc57be"> 91</a></span>  <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="l00092"></a><span class="lineno"> 92</span>  </div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <a class="code" href="classripple_1_1FeeVoteImpl.html#ad0d05ada35919d89d0fd63ed76bed35d">FeeVoteImpl</a>(Setup <span class="keyword">const</span>& setup, <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> journal);</div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <a class="code" href="classripple_1_1FeeVoteImpl.html#a87db6cbe91285e207fc9c752ed33bb78">doValidation</a>(<a class="code" href="structripple_1_1Fees.html">Fees</a> <span class="keyword">const</span>& lastFees, <a class="code" href="classripple_1_1STValidation.html">STValidation</a>& val) <span class="keyword">override</span>;</div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  </div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="classripple_1_1FeeVoteImpl.html#ad264dda6949150323ec3360ef094ecc5">doVoting</a>(</div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</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="l00102"></a><span class="lineno"> 102</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="l00103"></a><span class="lineno"> 103</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) <span class="keyword">override</span>;</div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> };</div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  </div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="comment">//--------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  </div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classripple_1_1FeeVoteImpl.html#ad0d05ada35919d89d0fd63ed76bed35d"> 108</a></span> <a class="code" href="classripple_1_1FeeVoteImpl.html#ad0d05ada35919d89d0fd63ed76bed35d">FeeVoteImpl::FeeVoteImpl</a>(Setup <span class="keyword">const</span>& setup, <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> journal)</div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  : target_(setup), journal_(journal)</div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> {</div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> }</div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  </div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="classripple_1_1FeeVoteImpl.html#a87db6cbe91285e207fc9c752ed33bb78"> 114</a></span> <a class="code" href="classripple_1_1FeeVoteImpl.html#a87db6cbe91285e207fc9c752ed33bb78">FeeVoteImpl::doValidation</a>(<a class="code" href="structripple_1_1Fees.html">Fees</a> <span class="keyword">const</span>& lastFees, <a class="code" href="classripple_1_1STValidation.html">STValidation</a>& v)</div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> {</div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="comment">// Values should always be in a valid range (because the voting process</span></div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="comment">// will ignore out-of-range values) but if we detect such a case, we do</span></div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="comment">// not send a value.</span></div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keywordflow">if</span> (lastFees.<a class="code" href="structripple_1_1Fees.html#a64c9587f977c872e926a58401d7d8224">base</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="l00120"></a><span class="lineno"> 120</span>  {</div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  JLOG(<a class="code" href="classripple_1_1FeeVoteImpl.html#a2de72b0b3f3a4dc5b412843d25fc57be">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a87d6bd59020d94110027dcab3d9e3357">info</a>())</div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  << <span class="stringliteral">"Voting for base fee of "</span> << <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="l00123"></a><span class="lineno"> 123</span>  </div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> f = <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>.<a class="code" href="classripple_1_1XRPAmount.html#aa608049c16639d1e142dabfb0a7313a5">dropsAs</a><<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint64_t</a>>())</div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  v.<a class="code" href="classripple_1_1STObject.html#ac0e2e3ed7f92a9f21aed2eda6d1ea5c6">setFieldU64</a>(<a class="code" href="namespaceripple.html#a1deca314689daca8b7eb3df5ffd53b74">sfBaseFee</a>, *f);</div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  }</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="keywordflow">if</span> (lastFees.<a class="code" href="structripple_1_1Fees.html#acb07843d0d0e3ccacd7cf51d5296fe40">accountReserve</a>(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="l00129"></a><span class="lineno"> 129</span>  {</div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  JLOG(<a class="code" href="classripple_1_1FeeVoteImpl.html#a2de72b0b3f3a4dc5b412843d25fc57be">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a87d6bd59020d94110027dcab3d9e3357">info</a>())</div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  << <span class="stringliteral">"Voting for base reserve of "</span> << <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="l00132"></a><span class="lineno"> 132</span>  </div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> f = <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>.<a class="code" href="classripple_1_1XRPAmount.html#aa608049c16639d1e142dabfb0a7313a5">dropsAs</a><<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a>>())</div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  v.<a class="code" href="classripple_1_1STObject.html#acd1aac04649d694a3524faf2ddebf843">setFieldU32</a>(<a class="code" href="namespaceripple.html#a9155cdcb2a25876442863f8a8aaee0af">sfReserveBase</a>, *f);</div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  }</div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  </div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordflow">if</span> (lastFees.<a class="code" href="structripple_1_1Fees.html#a6d48ec23cfbe4eacac46fbfaa8ce67f9">increment</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="l00138"></a><span class="lineno"> 138</span>  {</div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  JLOG(<a class="code" href="classripple_1_1FeeVoteImpl.html#a2de72b0b3f3a4dc5b412843d25fc57be">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a87d6bd59020d94110027dcab3d9e3357">info</a>())</div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  << <span class="stringliteral">"Voting for reserve increment of "</span> << <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>  </div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> f = <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>.<a class="code" href="classripple_1_1XRPAmount.html#aa608049c16639d1e142dabfb0a7313a5">dropsAs</a><<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a>>())</div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  v.<a class="code" href="classripple_1_1STObject.html#acd1aac04649d694a3524faf2ddebf843">setFieldU32</a>(<a class="code" href="namespaceripple.html#af14fef7bb70d9e685fdd0df4efc112bf">sfReserveIncrement</a>, *f);</div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</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>  </div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="classripple_1_1FeeVoteImpl.html#ad264dda6949150323ec3360ef094ecc5"> 148</a></span> <a class="code" href="classripple_1_1FeeVoteImpl.html#ad264dda6949150323ec3360ef094ecc5">FeeVoteImpl::doVoting</a>(</div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</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="l00150"></a><span class="lineno"> 150</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>& <a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>,</div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</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="l00152"></a><span class="lineno"> 152</span> {</div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="comment">// LCL must be flag ledger</span></div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  assert(<a class="code" href="namespaceripple.html#a81aef0121745f69cf76b866c91c2639c">isFlagLedger</a>(lastClosedLedger->seq()));</div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  </div>
|
|
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <a class="code" href="classripple_1_1detail_1_1VotableValue.html">detail::VotableValue</a> baseFeeVote(</div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  lastClosedLedger->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="l00158"></a><span class="lineno"> 158</span>  </div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <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>  lastClosedLedger->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="l00161"></a><span class="lineno"> 161</span>  </div>
|
|
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <a class="code" href="classripple_1_1detail_1_1VotableValue.html">detail::VotableValue</a> incReserveVote(</div>
|
|
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  lastClosedLedger->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="l00164"></a><span class="lineno"> 164</span>  </div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& val : <a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>)</div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  {</div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="keywordflow">if</span> (val->isTrusted())</div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  {</div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keywordflow">if</span> (val->isFieldPresent(<a class="code" href="namespaceripple.html#a1deca314689daca8b7eb3df5ffd53b74">sfBaseFee</a>))</div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  {</div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <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="l00172"></a><span class="lineno"> 172</span>  <span class="keyword">auto</span> <span class="keyword">const</span> vote = val->getFieldU64(<a class="code" href="namespaceripple.html#a1deca314689daca8b7eb3df5ffd53b74">sfBaseFee</a>);</div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="keywordflow">if</span> (vote <= <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/numeric_limits.html">std::numeric_limits<xrptype>::max</a>() &&</div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <a class="code" href="namespaceripple.html#a2ad36218df31bca30cc7212166c77432">isLegalAmount</a>(<a class="code" href="classripple_1_1XRPAmount.html">XRPAmount</a>{unsafe_cast<xrptype>(vote)}))</div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  baseFeeVote.<a class="code" href="classripple_1_1detail_1_1VotableValue.html#ae39cb1b77a2ff486ea88331c60b35f0b">addVote</a>(</div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <a class="code" href="classripple_1_1XRPAmount.html">XRPAmount</a>{unsafe_cast<XRPAmount::value_type>(vote)});</div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keywordflow">else</span></div>
|
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="comment">// Invalid amounts will be treated as if they're</span></div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="comment">// not provided. Don't throw because this value is</span></div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="comment">// provided by an external entity.</span></div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  baseFeeVote.<a class="code" href="classripple_1_1detail_1_1VotableValue.html#a8b88a947782854403df68ac5a5530021">noVote</a>();</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>  <span class="keywordflow">else</span></div>
|
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  {</div>
|
|
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  baseFeeVote.<a class="code" href="classripple_1_1detail_1_1VotableValue.html#a8b88a947782854403df68ac5a5530021">noVote</a>();</div>
|
|
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  }</div>
|
|
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  </div>
|
|
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keywordflow">if</span> (val->isFieldPresent(<a class="code" href="namespaceripple.html#a9155cdcb2a25876442863f8a8aaee0af">sfReserveBase</a>))</div>
|
|
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  {</div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  baseReserveVote.<a class="code" href="classripple_1_1detail_1_1VotableValue.html#ae39cb1b77a2ff486ea88331c60b35f0b">addVote</a>(</div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <a class="code" href="classripple_1_1XRPAmount.html">XRPAmount</a>{val->getFieldU32(<a class="code" href="namespaceripple.html#a9155cdcb2a25876442863f8a8aaee0af">sfReserveBase</a>)});</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="keywordflow">else</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>  baseReserveVote.<a class="code" href="classripple_1_1detail_1_1VotableValue.html#a8b88a947782854403df68ac5a5530021">noVote</a>();</div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  }</div>
|
|
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  </div>
|
|
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keywordflow">if</span> (val->isFieldPresent(<a class="code" href="namespaceripple.html#af14fef7bb70d9e685fdd0df4efc112bf">sfReserveIncrement</a>))</div>
|
|
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  {</div>
|
|
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  incReserveVote.<a class="code" href="classripple_1_1detail_1_1VotableValue.html#ae39cb1b77a2ff486ea88331c60b35f0b">addVote</a>(</div>
|
|
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <a class="code" href="classripple_1_1XRPAmount.html">XRPAmount</a>{val->getFieldU32(<a class="code" href="namespaceripple.html#af14fef7bb70d9e685fdd0df4efc112bf">sfReserveIncrement</a>)});</div>
|
|
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  }</div>
|
|
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <span class="keywordflow">else</span></div>
|
|
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  {</div>
|
|
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  incReserveVote.<a class="code" href="classripple_1_1detail_1_1VotableValue.html#a8b88a947782854403df68ac5a5530021">noVote</a>();</div>
|
|
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  }</div>
|
|
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  }</div>
|
|
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  }</div>
|
|
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  </div>
|
|
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="comment">// choose our positions</span></div>
|
|
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <span class="comment">// If any of the values are invalid, send the current values.</span></div>
|
|
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <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#aa608049c16639d1e142dabfb0a7313a5">dropsAs</a><<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint64_t</a>>(</div>
|
|
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  lastClosedLedger->fees().base);</div>
|
|
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <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#aa608049c16639d1e142dabfb0a7313a5">dropsAs</a><<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a>>(</div>
|
|
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  lastClosedLedger->fees().accountReserve(0));</div>
|
|
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <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#aa608049c16639d1e142dabfb0a7313a5">dropsAs</a><<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a>>(</div>
|
|
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  lastClosedLedger->fees().increment);</div>
|
|
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  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="l00219"></a><span class="lineno"> 219</span>  <span class="keyword">auto</span> <span class="keyword">const</span> seq = lastClosedLedger->info().seq + 1;</div>
|
|
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  </div>
|
|
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="comment">// add transactions to our position</span></div>
|
|
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="keywordflow">if</span> ((baseFee != lastClosedLedger->fees().base) ||</div>
|
|
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  (baseReserve != lastClosedLedger->fees().accountReserve(0)) ||</div>
|
|
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  (incReserve != lastClosedLedger->fees().increment))</div>
|
|
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  {</div>
|
|
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  JLOG(<a class="code" href="classripple_1_1FeeVoteImpl.html#a2de72b0b3f3a4dc5b412843d25fc57be">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) << <span class="stringliteral">"We are voting for a fee change: "</span> << baseFee</div>
|
|
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  << <span class="stringliteral">"/"</span> << baseReserve << <span class="stringliteral">"/"</span> << incReserve;</div>
|
|
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  </div>
|
|
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <a class="code" href="classripple_1_1STTx.html">STTx</a> feeTx(</div>
|
|
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <a class="code" href="namespaceripple.html#a2ce3074a39ea65126b82fc59baf43126aded2ff2e2fb748fa8f007ca05719d8f8">ttFEE</a>,</div>
|
|
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  [seq, baseFee, baseReserve, incReserve, feeUnits](<span class="keyword">auto</span>& obj) {</div>
|
|
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  obj[<a class="code" href="namespaceripple.html#a5bab99595719d22579e10d21cf048eb0">sfAccount</a>] = <a class="code" href="namespaceripple.html#a00ae0d729cb3e35b6bcac9a27ebb5284">AccountID</a>();</div>
|
|
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  obj[<a class="code" href="namespaceripple.html#a4a189668d64758cfcac4022778e496f5">sfLedgerSequence</a>] = seq;</div>
|
|
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  obj[<a class="code" href="namespaceripple.html#a1deca314689daca8b7eb3df5ffd53b74">sfBaseFee</a>] = baseFee;</div>
|
|
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  obj[<a class="code" href="namespaceripple.html#a9155cdcb2a25876442863f8a8aaee0af">sfReserveBase</a>] = baseReserve;</div>
|
|
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  obj[<a class="code" href="namespaceripple.html#af14fef7bb70d9e685fdd0df4efc112bf">sfReserveIncrement</a>] = incReserve;</div>
|
|
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  obj[<a class="code" href="namespaceripple.html#a4b768acab2bb710274a46ca13815564f">sfReferenceFeeUnits</a>] = feeUnits.fee();</div>
|
|
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  });</div>
|
|
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  </div>
|
|
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <a class="code" href="classripple_1_1base__uint.html">uint256</a> txID = feeTx.getTransactionID();</div>
|
|
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  </div>
|
|
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  JLOG(<a class="code" href="classripple_1_1FeeVoteImpl.html#a2de72b0b3f3a4dc5b412843d25fc57be">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) << <span class="stringliteral">"Vote: "</span> << txID;</div>
|
|
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  </div>
|
|
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <a class="code" href="classripple_1_1Serializer.html">Serializer</a> s;</div>
|
|
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  feeTx.add(s);</div>
|
|
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  </div>
|
|
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="keywordflow">if</span> (!initialPosition->addGiveItem(</div>
|
|
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <a class="code" href="namespaceripple.html#ae0356b1de00f841c554c830be509dd58a9b447756a7d7ddf4e828beeb38d079f6">SHAMapNodeType::tnTRANSACTION_NM</a>,</div>
|
|
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  std::make_shared<SHAMapItem>(txID, s.<a class="code" href="classripple_1_1Serializer.html#a394c3299f6cfcebdaa4bc98ec0c602d6">slice</a>())))</div>
|
|
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  {</div>
|
|
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  JLOG(<a class="code" href="classripple_1_1FeeVoteImpl.html#a2de72b0b3f3a4dc5b412843d25fc57be">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) << <span class="stringliteral">"Ledger already had fee change"</span>;</div>
|
|
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  }</div>
|
|
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  }</div>
|
|
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span> }</div>
|
|
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  </div>
|
|
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  </div>
|
|
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span> <a class="code" href="structripple_1_1FeeVote_1_1Setup.html">FeeVote::Setup</a></div>
|
|
<div class="line"><a name="l00259"></a><span class="lineno"><a class="line" href="namespaceripple.html#acbafe6bd675116b7d1c63c314fcd369d"> 259</a></span> <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>& section)</div>
|
|
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span> {</div>
|
|
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <a class="code" href="structripple_1_1FeeVote_1_1Setup.html">FeeVote::Setup</a> setup;</div>
|
|
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  {</div>
|
|
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint64_t</a> temp;</div>
|
|
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keywordflow">if</span> (<a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>(temp, <span class="stringliteral">"reference_fee"</span>, section) &&</div>
|
|
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  temp <= <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/numeric_limits.html">std::numeric_limits<XRPAmount::value_type>::max</a>())</div>
|
|
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  setup.<a class="code" href="structripple_1_1FeeVote_1_1Setup.html#a97f426b8d134160cbe1ba12478574007">reference_fee</a> = temp;</div>
|
|
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  }</div>
|
|
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  {</div>
|
|
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> temp;</div>
|
|
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keywordflow">if</span> (<a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>(temp, <span class="stringliteral">"account_reserve"</span>, section))</div>
|
|
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  setup.<a class="code" href="structripple_1_1FeeVote_1_1Setup.html#a8a44488a31dc71056448b1e25392b34e">account_reserve</a> = temp;</div>
|
|
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <span class="keywordflow">if</span> (<a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>(temp, <span class="stringliteral">"owner_reserve"</span>, section))</div>
|
|
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  setup.<a class="code" href="structripple_1_1FeeVote_1_1Setup.html#a4a66b205dae39ec733f4f17490808072">owner_reserve</a> = temp;</div>
|
|
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  }</div>
|
|
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="keywordflow">return</span> setup;</div>
|
|
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span> }</div>
|
|
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  </div>
|
|
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<FeeVote></a></div>
|
|
<div class="line"><a name="l00279"></a><span class="lineno"><a class="line" href="namespaceripple.html#a0255816875fa12eac9b8dccf1fbcf592"> 279</a></span> <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>& setup, <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> journal)</div>
|
|
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span> {</div>
|
|
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <span class="keywordflow">return</span> std::make_unique<FeeVoteImpl>(setup, journal);</div>
|
|
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span> }</div>
|
|
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  </div>
|
|
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span> } <span class="comment">// namespace 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 &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#l00259">FeeVoteImpl.cpp:259</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#l00042">BasicConfig.h:42</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="anamespaceripple_html_a81aef0121745f69cf76b866c91c2639c"><div class="ttname"><a href="namespaceripple.html#a81aef0121745f69cf76b866c91c2639c">ripple::isFlagLedger</a></div><div class="ttdeci">bool isFlagLedger(LedgerIndex seq)</div><div class="ttdoc">Returns true if the given ledgerIndex is a flag ledgerIndex.</div><div class="ttdef"><b>Definition:</b> <a href="Ledger_8cpp_source.html#l00913">Ledger.cpp:913</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a9155cdcb2a25876442863f8a8aaee0af"><div class="ttname"><a href="namespaceripple.html#a9155cdcb2a25876442863f8a8aaee0af">ripple::sfReserveBase</a></div><div class="ttdeci">const SF_UINT32 sfReserveBase</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 &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#l00047">SystemParameters.h:47</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a4a189668d64758cfcac4022778e496f5"><div class="ttname"><a href="namespaceripple.html#a4a189668d64758cfcac4022778e496f5">ripple::sfLedgerSequence</a></div><div class="ttdeci">const SF_UINT32 sfLedgerSequence</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< FeeVote > make_FeeVote(FeeVote::Setup const &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#l00279">FeeVoteImpl.cpp:279</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_a2ce3074a39ea65126b82fc59baf43126aded2ff2e2fb748fa8f007ca05719d8f8"><div class="ttname"><a href="namespaceripple.html#a2ce3074a39ea65126b82fc59baf43126aded2ff2e2fb748fa8f007ca05719d8f8">ripple::ttFEE</a></div><div class="ttdeci">@ ttFEE</div><div class="ttdoc">This system-generated transaction type is used to update the network's fee settings.</div><div class="ttdef"><b>Definition:</b> <a href="TxFormats_8h_source.html#l00137">TxFormats.h:137</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1FeeVoteImpl_html_a87db6cbe91285e207fc9c752ed33bb78"><div class="ttname"><a href="classripple_1_1FeeVoteImpl.html#a87db6cbe91285e207fc9c752ed33bb78">ripple::FeeVoteImpl::doValidation</a></div><div class="ttdeci">void doValidation(Fees const &lastFees, STValidation &val) override</div><div class="ttdoc">Add local fee preference to validation.</div><div class="ttdef"><b>Definition:</b> <a href="FeeVoteImpl_8cpp_source.html#l00114">FeeVoteImpl.cpp:114</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#l00327">Journal.h:327</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#l00041">FeeVoteImpl.cpp:41</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#l00087">FeeVoteImpl.cpp:87</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_1STValidation_html"><div class="ttname"><a href="classripple_1_1STValidation.html">ripple::STValidation</a></div><div class="ttdef"><b>Definition:</b> <a href="STValidation_8h_source.html#l00044">STValidation.h:44</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1Fees_html_a6d48ec23cfbe4eacac46fbfaa8ce67f9"><div class="ttname"><a href="structripple_1_1Fees.html#a6d48ec23cfbe4eacac46fbfaa8ce67f9">ripple::Fees::increment</a></div><div class="ttdeci">XRPAmount increment</div><div class="ttdef"><b>Definition:</b> <a href="ReadView_8h_source.html#l00053">ReadView.h:53</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< 256 ></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#l00036">FeeVoteImpl.cpp:36</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1Fees_html"><div class="ttname"><a href="structripple_1_1Fees.html">ripple::Fees</a></div><div class="ttdoc">Reflects the fee settings for a particular ledger.</div><div class="ttdef"><b>Definition:</b> <a href="ReadView_8h_source.html#l00048">ReadView.h:48</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#l00035">FeeVoteImpl.cpp:35</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#l00091">FeeVoteImpl.cpp:91</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_af14fef7bb70d9e685fdd0df4efc112bf"><div class="ttname"><a href="namespaceripple.html#af14fef7bb70d9e685fdd0df4efc112bf">ripple::sfReserveIncrement</a></div><div class="ttdeci">const SF_UINT32 sfReserveIncrement</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#l00053">XRPAmount.h:53</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#l00037">FeeVoteImpl.cpp:37</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#l00032">FeeVoteImpl.cpp:32</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 &target, std::string const &name, Section const &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#l00313">BasicConfig.h:313</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Serializer_html_a394c3299f6cfcebdaa4bc98ec0c602d6"><div class="ttname"><a href="classripple_1_1Serializer.html#a394c3299f6cfcebdaa4bc98ec0c602d6">ripple::Serializer::slice</a></div><div class="ttdeci">Slice slice() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00063">Serializer.h:63</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#l00321">Journal.h:321</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1XRPAmount_html_aa608049c16639d1e142dabfb0a7313a5"><div class="ttname"><a href="classripple_1_1XRPAmount.html#aa608049c16639d1e142dabfb0a7313a5">ripple::XRPAmount::dropsAs</a></div><div class="ttdeci">std::optional< Dest > dropsAs() const</div><div class="ttdef"><b>Definition:</b> <a href="XRPAmount_8h_source.html#l00182">XRPAmount.h:182</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 &setup, beast::Journal journal)</div><div class="ttdef"><b>Definition:</b> <a href="FeeVoteImpl_8cpp_source.html#l00108">FeeVoteImpl.cpp:108</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#l00090">FeeVoteImpl.cpp:90</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#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::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#l00070">FeeUnits.h:70</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< value_type, int > mVoteMap</div><div class="ttdef"><b>Definition:</b> <a href="FeeVoteImpl_8cpp_source.html#l00038">FeeVoteImpl.cpp:38</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#l00039">Serializer.h:39</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a1deca314689daca8b7eb3df5ffd53b74"><div class="ttname"><a href="namespaceripple.html#a1deca314689daca8b7eb3df5ffd53b74">ripple::sfBaseFee</a></div><div class="ttdeci">const SF_UINT64 sfBaseFee</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_1Fees_html_acb07843d0d0e3ccacd7cf51d5296fe40"><div class="ttname"><a href="structripple_1_1Fees.html#acb07843d0d0e3ccacd7cf51d5296fe40">ripple::Fees::accountReserve</a></div><div class="ttdeci">XRPAmount accountReserve(std::size_t ownerCount) const</div><div class="ttdoc">Returns the account reserve given the owner count, in drops.</div><div class="ttdef"><b>Definition:</b> <a href="ReadView_8h_source.html#l00066">ReadView.h:66</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a4b768acab2bb710274a46ca13815564f"><div class="ttname"><a href="namespaceripple.html#a4b768acab2bb710274a46ca13815564f">ripple::sfReferenceFeeUnits</a></div><div class="ttdeci">const SF_UINT32 sfReferenceFeeUnits</div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a5bab99595719d22579e10d21cf048eb0"><div class="ttname"><a href="namespaceripple.html#a5bab99595719d22579e10d21cf048eb0">ripple::sfAccount</a></div><div class="ttdeci">const SF_ACCOUNT sfAccount</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="aclassripple_1_1STObject_html_ac0e2e3ed7f92a9f21aed2eda6d1ea5c6"><div class="ttname"><a href="classripple_1_1STObject.html#ac0e2e3ed7f92a9f21aed2eda6d1ea5c6">ripple::STObject::setFieldU64</a></div><div class="ttdeci">void setFieldU64(SField const &field, std::uint64_t)</div><div class="ttdef"><b>Definition:</b> <a href="STObject_8cpp_source.html#l00665">STObject.cpp:665</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_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_1STObject_html_acd1aac04649d694a3524faf2ddebf843"><div class="ttname"><a href="classripple_1_1STObject.html#acd1aac04649d694a3524faf2ddebf843">ripple::STObject::setFieldU32</a></div><div class="ttdeci">void setFieldU32(SField const &field, std::uint32_t)</div><div class="ttdef"><b>Definition:</b> <a href="STObject_8cpp_source.html#l00659">STObject.cpp:659</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a00ae0d729cb3e35b6bcac9a27ebb5284"><div class="ttname"><a href="namespaceripple.html#a00ae0d729cb3e35b6bcac9a27ebb5284">ripple::AccountID</a></div><div class="ttdeci">base_uint< 160, detail::AccountIDTag > 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#l00047">AccountID.h:47</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1Fees_html_a64c9587f977c872e926a58401d7d8224"><div class="ttname"><a href="structripple_1_1Fees.html#a64c9587f977c872e926a58401d7d8224">ripple::Fees::base</a></div><div class="ttdeci">XRPAmount base</div><div class="ttdef"><b>Definition:</b> <a href="ReadView_8h_source.html#l00050">ReadView.h:50</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1FeeVoteImpl_html_ad264dda6949150323ec3360ef094ecc5"><div class="ttname"><a href="classripple_1_1FeeVoteImpl.html#ad264dda6949150323ec3360ef094ecc5">ripple::FeeVoteImpl::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) 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#l00148">FeeVoteImpl.cpp:148</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  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.17
|
|
</small></address>
|
|
</body>
|
|
</html>
|