mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 19:45:53 +00:00
deploy: 020b285808
This commit is contained in:
429
FeeVoteImpl_8cpp_source.html
Normal file
429
FeeVoteImpl_8cpp_source.html
Normal 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&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/protocol/st.h></span></div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <ripple/app/misc/FeeVote.h></span></div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <ripple/app/main/Application.h></span></div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <ripple/protocol/STValidation.h></span></div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <ripple/basics/BasicConfig.h></span></div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <ripple/beast/utility/Journal.h></span></div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  </div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <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>  </div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">namespace </span>detail {</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1VotableValue.html"> 31</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="l00032"></a><span class="lineno"> 32</span> {</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <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>  <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>  <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>  <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>  <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="l00038"></a><span class="lineno"> 38</span>  </div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1VotableValue.html#a4041f660d3bcbf57e3f6947cb7ae5103"> 40</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="l00041"></a><span class="lineno"> 41</span>  : <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>  , <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</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  -> <a class="code" href="classripple_1_1XRPAmount.html">value_type</a></div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> {</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</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="l00069"></a><span class="lineno"> 69</span>  <span class="keywordtype">int</span> weight = 0;</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</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="l00071"></a><span class="lineno"> 71</span>  {</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <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>  <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="l00074"></a><span class="lineno"> 74</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>)) &&</div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  (val > weight))</div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  {</div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  ourVote = key;</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  weight = val;</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>  }</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>  <span class="keywordflow">return</span> ourVote;</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</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> }</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  </div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  </div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classripple_1_1FeeVoteImpl.html"> 89</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="l00090"></a><span class="lineno"> 90</span> {</div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <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>  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>  <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>  </div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</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="l00097"></a><span class="lineno"> 97</span>  </div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <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<ReadView const></a> <span class="keyword">const</span>& lastClosedLedger,</div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="structripple_1_1STValidation_1_1FeeSettings.html">STValidation::FeeSettings</a>& fees) <span class="keyword">override</span>;</div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  </div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <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<ReadView const></a> <span class="keyword">const</span>& lastClosedLedger,</div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<STValidation::pointer></a> <span class="keyword">const</span>& parentValidations,</div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</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="l00106"></a><span class="lineno"> 106</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"> 108</span> <span class="comment">//--------------------------------------------------------------------------</span></div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  </div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classripple_1_1FeeVoteImpl.html#ad0d05ada35919d89d0fd63ed76bed35d"> 110</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="l00111"></a><span class="lineno"> 111</span>  : target_ (setup)</div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  , journal_ (journal)</div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> {</div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> }</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="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> <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>  <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="l00119"></a><span class="lineno"> 119</span>  <a class="code" href="structripple_1_1STValidation_1_1FeeSettings.html">STValidation::FeeSettings</a>& fees)</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>  <span class="keywordflow">if</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="l00122"></a><span class="lineno"> 122</span>  {</div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</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="l00124"></a><span class="lineno"> 124</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="l00125"></a><span class="lineno"> 125</span>  </div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  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>  }</div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  </div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordflow">if</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="l00130"></a><span class="lineno"> 130</span>  {</div>
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</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="l00132"></a><span class="lineno"> 132</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="l00133"></a><span class="lineno"> 133</span>  </div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  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>  }</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> (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="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>  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>  }</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> <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> <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>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<ReadView const></a> <span class="keyword">const</span>& lastClosedLedger,</div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<STValidation::pointer></a> <span class="keyword">const</span>& <a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>,</div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<SHAMap></a> <span class="keyword">const</span>& initialPosition)</div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> {</div>
|
||||
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="comment">// LCL must be flag ledger</span></div>
|
||||
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  assert ((lastClosedLedger->info().seq % 256) == 0);</div>
|
||||
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  </div>
|
||||
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <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>  lastClosedLedger->fees().base,</div>
|
||||
<div class="line"><a name="l00157"></a><span class="lineno"> 157</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="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),</div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</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="l00162"></a><span class="lineno"> 162</span>  </div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <a class="code" href="classripple_1_1detail_1_1VotableValue.html">detail::VotableValue</a> incReserveVote (</div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  lastClosedLedger->fees().increment,</div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"> 165</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="l00166"></a><span class="lineno"> 166</span>  </div>
|
||||
<div class="line"><a name="l00167"></a><span class="lineno"> 167</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="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->isTrusted ())</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="keywordflow">if</span> (val->isFieldPresent (<a class="code" href="namespaceripple.html#ae1860b879bd20588ab7b31546e4441a1">sfBaseFee</a>))</div>
|
||||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  {</div>
|
||||
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <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>  <span class="keyword">auto</span> <span class="keyword">const</span> vote = val->getFieldU64 (<a class="code" href="namespaceripple.html#ae1860b879bd20588ab7b31546e4441a1">sfBaseFee</a>);</div>
|
||||
<div class="line"><a name="l00175"></a><span class="lineno"> 175</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="l00176"></a><span class="lineno"> 176</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="l00177"></a><span class="lineno"> 177</span>  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>  unsafe_cast<XRPAmount::value_type>(vote)});</div>
|
||||
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keywordflow">else</span></div>
|
||||
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="comment">// Invalid amounts will be treated as if they're</span></div>
|
||||
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="comment">// not provided. Don't throw because this value is</span></div>
|
||||
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="comment">// provided by an external entity.</span></div>
|
||||
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  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>  }</div>
|
||||
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keywordflow">else</span></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>  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>  }</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>  <span class="keywordflow">if</span> (val->isFieldPresent (<a class="code" href="namespaceripple.html#a62820bfff4e83bb84a86533d1e102df1">sfReserveBase</a>))</div>
|
||||
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  {</div>
|
||||
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  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>  val->getFieldU32(<a class="code" href="namespaceripple.html#a62820bfff4e83bb84a86533d1e102df1">sfReserveBase</a>)});</div>
|
||||
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  }</div>
|
||||
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keywordflow">else</span></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>  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>  }</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>  <span class="keywordflow">if</span> (val->isFieldPresent (<a class="code" href="namespaceripple.html#a7728fc7a6b58ab2649923ca61da8e2b6">sfReserveIncrement</a>))</div>
|
||||
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  {</div>
|
||||
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  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>  val->getFieldU32 (<a class="code" href="namespaceripple.html#a7728fc7a6b58ab2649923ca61da8e2b6">sfReserveIncrement</a>)});</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>  <span class="keywordflow">else</span></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>  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>  }</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>  }</div>
|
||||
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  </div>
|
||||
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="comment">// choose our positions</span></div>
|
||||
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <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>  <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><<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint64_t</a>>(</div>
|
||||
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  lastClosedLedger->fees().base);</div>
|
||||
<div class="line"><a name="l00216"></a><span class="lineno"> 216</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#a5b66cfca6453b8dba59712100a037f61">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().accountReserve(0));</div>
|
||||
<div class="line"><a name="l00218"></a><span class="lineno"> 218</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#a5b66cfca6453b8dba59712100a037f61">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="l00219"></a><span class="lineno"> 219</span>  lastClosedLedger->fees().increment);</div>
|
||||
<div class="line"><a name="l00220"></a><span class="lineno"> 220</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="l00221"></a><span class="lineno"> 221</span>  <span class="keyword">auto</span> <span class="keyword">const</span> seq = lastClosedLedger->info().seq + 1;</div>
|
||||
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  </div>
|
||||
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="comment">// add transactions to our position</span></div>
|
||||
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="keywordflow">if</span> ((baseFee != lastClosedLedger->fees().base) ||</div>
|
||||
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  (baseReserve != lastClosedLedger->fees().accountReserve(0)) ||</div>
|
||||
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  (incReserve != lastClosedLedger->fees().increment))</div>
|
||||
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  {</div>
|
||||
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  JLOG(<a class="code" href="classripple_1_1FeeVoteImpl.html#a2de72b0b3f3a4dc5b412843d25fc57be">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) <<</div>
|
||||
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="stringliteral">"We are voting for a fee change: "</span> << baseFee <<</div>
|
||||
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="stringliteral">"/"</span> << baseReserve <<</div>
|
||||
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <span class="stringliteral">"/"</span> << incReserve;</div>
|
||||
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  </div>
|
||||
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <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>  [seq,baseFee,baseReserve,incReserve,feeUnits](<span class="keyword">auto</span>& obj)</div>
|
||||
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  {</div>
|
||||
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  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>  obj[<a class="code" href="namespaceripple.html#a1932b552a7e76eba44a31bdcdd4a5315">sfLedgerSequence</a>] = seq;</div>
|
||||
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  obj[<a class="code" href="namespaceripple.html#ae1860b879bd20588ab7b31546e4441a1">sfBaseFee</a>] = baseFee;</div>
|
||||
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  obj[<a class="code" href="namespaceripple.html#a62820bfff4e83bb84a86533d1e102df1">sfReserveBase</a>] = baseReserve;</div>
|
||||
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  obj[<a class="code" href="namespaceripple.html#a7728fc7a6b58ab2649923ca61da8e2b6">sfReserveIncrement</a>] = incReserve;</div>
|
||||
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  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>  });</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_1base__uint.html">uint256</a> txID = feeTx.getTransactionID ();</div>
|
||||
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  </div>
|
||||
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  JLOG(<a class="code" href="classripple_1_1FeeVoteImpl.html#a2de72b0b3f3a4dc5b412843d25fc57be">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) <<</div>
|
||||
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="stringliteral">"Vote: "</span> << txID;</div>
|
||||
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  </div>
|
||||
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <a class="code" href="classripple_1_1Serializer.html">Serializer</a> s;</div>
|
||||
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  feeTx.add (s);</div>
|
||||
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  </div>
|
||||
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <span class="keyword">auto</span> tItem = std::make_shared<SHAMapItem> (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>  </div>
|
||||
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="keywordflow">if</span> (!initialPosition->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>  {</div>
|
||||
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  JLOG(<a class="code" href="classripple_1_1FeeVoteImpl.html#a2de72b0b3f3a4dc5b412843d25fc57be">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) <<</div>
|
||||
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <span class="stringliteral">"Ledger already had fee change"</span>;</div>
|
||||
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  }</div>
|
||||
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  }</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>  </div>
|
||||
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
||||
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  </div>
|
||||
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span> <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> <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="l00266"></a><span class="lineno"> 266</span> {</div>
|
||||
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <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>  {</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::uint64_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">"reference_fee"</span>, section) &&</div>
|
||||
<div class="line"><a name="l00271"></a><span class="lineno"> 271</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="l00272"></a><span class="lineno"> 272</span>  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>  }</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>  <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>  <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="l00277"></a><span class="lineno"> 277</span>  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>  <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="l00279"></a><span class="lineno"> 279</span>  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>  }</div>
|
||||
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <span class="keywordflow">return</span> setup;</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> <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="l00285"></a><span class="lineno"><a class="line" href="namespaceripple.html#a0255816875fa12eac9b8dccf1fbcf592"> 285</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="l00286"></a><span class="lineno"> 286</span> {</div>
|
||||
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <span class="keywordflow">return</span> std::make_unique<FeeVoteImpl> (setup, journal);</div>
|
||||
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span> }</div>
|
||||
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  </div>
|
||||
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span> } <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 &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< ReadView const > const &lastClosedLedger, STValidation::FeeSettings &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< XRPAmount > 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 &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< 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#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, "Account")</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< 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#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, "ReserveBase")</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< ReadView const > const &lastClosedLedger, std::vector< STValidation::pointer > 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#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< 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#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 &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#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, "LedgerSequence")</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, "ReferenceFeeUnits")</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 &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< value_type, int > 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< XRPAmount > 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, "ReserveIncrement")</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 & 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< XRPAmount > 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, "BaseFee")</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< Dest > 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  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.17
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user