mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 19:45:53 +00:00
497 lines
89 KiB
HTML
497 lines
89 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: NegativeUNLVote.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">NegativeUNLVote.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) 2020 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/consensus/RCLValidations.h></span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <ripple/app/ledger/Ledger.h></span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <ripple/app/misc/NegativeUNLVote.h></span></div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  </div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classripple_1_1NegativeUNLVote.html#afb3ed2c981663495ad603c103040fbf1"> 26</a></span> <a class="code" href="classripple_1_1NegativeUNLVote.html#afb3ed2c981663495ad603c103040fbf1">NegativeUNLVote::NegativeUNLVote</a>(<a class="code" href="classripple_1_1base__uint.html">NodeID</a> <span class="keyword">const</span>& myId, <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> j)</div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  : myId_(myId), j_(j)</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> }</div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classripple_1_1NegativeUNLVote.html#ac58c464cefde1519ac23d1b51aa28833"> 32</a></span> <a class="code" href="classripple_1_1NegativeUNLVote.html#ac58c464cefde1519ac23d1b51aa28833">NegativeUNLVote::doVoting</a>(</div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Ledger const></a> <span class="keyword">const</span>& prevLedger,</div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_set.html">hash_set<PublicKey></a> <span class="keyword">const</span>& unlKeys,</div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <a class="code" href="classripple_1_1Validations.html">RCLValidations</a>& validations,</div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</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>& initialSet)</div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> {</div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="comment">// Voting steps:</span></div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="comment">// -- build a reliability score table of validators</span></div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="comment">// -- process the table and find all candidates to disable or to re-enable</span></div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="comment">// -- pick one to disable and one to re-enable if any</span></div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="comment">// -- if found candidates, add ttUNL_MODIFY Tx</span></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">// Build NodeID set for internal use.</span></div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="comment">// Build NodeID to PublicKey map for lookup before creating ttUNL_MODIFY Tx.</span></div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_set.html">hash_set<NodeID></a> unlNodeIDs;</div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_map.html">hash_map<NodeID, PublicKey></a> nidToKeyMap;</div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& k : unlKeys)</div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  {</div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keyword">auto</span> nid = <a class="code" href="namespaceripple.html#a984ddd646f1e1a5032a9a17f96c6fc55">calcNodeID</a>(k);</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  nidToKeyMap.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_map/emplace.html">emplace</a>(nid, k);</div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  unlNodeIDs.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_set/emplace.html">emplace</a>(nid);</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>  </div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="comment">// Build a reliability score table of validators</span></div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordflow">if</span> (<a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a><<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_map.html">hash_map<NodeID, std::uint32_t></a>> scoreTable =</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="classripple_1_1NegativeUNLVote.html#a4293d7509ebb8528e12faeee020f0bf0">buildScoreTable</a>(prevLedger, unlNodeIDs, validations))</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>  <span class="comment">// build next negUnl</span></div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keyword">auto</span> negUnlKeys = prevLedger->negativeUNL();</div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keyword">auto</span> negUnlToDisable = prevLedger->validatorToDisable();</div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keyword">auto</span> negUnlToReEnable = prevLedger->validatorToReEnable();</div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordflow">if</span> (negUnlToDisable)</div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  negUnlKeys.insert(*negUnlToDisable);</div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordflow">if</span> (negUnlToReEnable)</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  negUnlKeys.erase(*negUnlToReEnable);</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="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_set.html">hash_set<NodeID></a> negUnlNodeIDs;</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>& k : negUnlKeys)</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="keyword">auto</span> nid = <a class="code" href="namespaceripple.html#a984ddd646f1e1a5032a9a17f96c6fc55">calcNodeID</a>(k);</div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  negUnlNodeIDs.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_set/emplace.html">emplace</a>(nid);</div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordflow">if</span> (!nidToKeyMap.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_map/count.html">count</a>(nid))</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>  nidToKeyMap.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_map/emplace.html">emplace</a>(nid, k);</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>  }</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>  <span class="keyword">auto</span> <span class="keyword">const</span> seq = prevLedger->info().seq + 1;</div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <a class="code" href="classripple_1_1NegativeUNLVote.html#a715cdaf670c930941605e79e41f37a12">purgeNewValidators</a>(seq);</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="comment">// Process the table and find all candidates to disable or to re-enable</span></div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keyword">auto</span> <span class="keyword">const</span> candidates =</div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <a class="code" href="classripple_1_1NegativeUNLVote.html#aad6b405da7214440280177d02be243ff">findAllCandidates</a>(unlNodeIDs, negUnlNodeIDs, *scoreTable);</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>  <span class="comment">// Pick one to disable and one to re-enable if any, add ttUNL_MODIFY Tx</span></div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordflow">if</span> (!candidates.toDisableCandidates.empty())</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">auto</span> n =</div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <a class="code" href="classripple_1_1NegativeUNLVote.html#a34a78d1a576f170278ca9daae7b60b0b">choose</a>(prevLedger->info().hash, candidates.toDisableCandidates);</div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  assert(nidToKeyMap.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_map/count.html">count</a>(n));</div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <a class="code" href="classripple_1_1NegativeUNLVote.html#af8a85a2853312bc4b1ff9852a2498bd4">addTx</a>(seq, nidToKeyMap[n], <a class="code" href="classripple_1_1NegativeUNLVote.html#a4fc6405fdb02e58c350e175b6d58e7cfabe47f804b7bde80da32af12f772dc7c5">ToDisable</a>, initialSet);</div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  }</div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  </div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordflow">if</span> (!candidates.toReEnableCandidates.empty())</div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  {</div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keyword">auto</span> n = <a class="code" href="classripple_1_1NegativeUNLVote.html#a34a78d1a576f170278ca9daae7b60b0b">choose</a>(</div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  prevLedger->info().hash, candidates.toReEnableCandidates);</div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  assert(nidToKeyMap.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_map/count.html">count</a>(n));</div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="classripple_1_1NegativeUNLVote.html#af8a85a2853312bc4b1ff9852a2498bd4">addTx</a>(seq, nidToKeyMap[n], <a class="code" href="classripple_1_1NegativeUNLVote.html#a4fc6405fdb02e58c350e175b6d58e7cfa50aab7a54a0d4bee43c5e3fcedd50d13">ToReEnable</a>, initialSet);</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>  }</div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</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> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classripple_1_1NegativeUNLVote.html#af8a85a2853312bc4b1ff9852a2498bd4"> 106</a></span> <a class="code" href="classripple_1_1NegativeUNLVote.html#af8a85a2853312bc4b1ff9852a2498bd4">NegativeUNLVote::addTx</a>(</div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">LedgerIndex</a> seq,</div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="classripple_1_1PublicKey.html">PublicKey</a> <span class="keyword">const</span>& vp,</div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <a class="code" href="classripple_1_1NegativeUNLVote.html#a4fc6405fdb02e58c350e175b6d58e7cf">NegativeUNLModify</a> modify,</div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</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>& initialSet)</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>  <a class="code" href="classripple_1_1STTx.html">STTx</a> negUnlTx(<a class="code" href="namespaceripple.html#a48e7bc26e67dbb8709698c89f67a9264a2b1632b6f19b0e05c73086acb1731b48">ttUNL_MODIFY</a>, [&](<span class="keyword">auto</span>& obj) {</div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  obj.setFieldU8(<a class="code" href="namespaceripple.html#ac4249fe49fd110562adb330d3122e163">sfUNLModifyDisabling</a>, modify == <a class="code" href="classripple_1_1NegativeUNLVote.html#a4fc6405fdb02e58c350e175b6d58e7cfabe47f804b7bde80da32af12f772dc7c5">ToDisable</a> ? 1 : 0);</div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  obj.setFieldU32(<a class="code" href="namespaceripple.html#a4a189668d64758cfcac4022778e496f5">sfLedgerSequence</a>, seq);</div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  obj.setFieldVL(<a class="code" href="namespaceripple.html#a5da1d364939981da98850cde32786ca8">sfUNLModifyValidator</a>, vp.<a class="code" href="classripple_1_1PublicKey.html#ae0bcc607176a440ec63a86bae5767036">slice</a>());</div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  });</div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  </div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <a class="code" href="classripple_1_1base__uint.html">uint256</a> txID = negUnlTx.getTransactionID();</div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <a class="code" href="classripple_1_1Serializer.html">Serializer</a> s;</div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  negUnlTx.add(s);</div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keywordflow">if</span> (!initialSet->addGiveItem(</div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="code" href="namespaceripple.html#ae0356b1de00f841c554c830be509dd58a9b447756a7d7ddf4e828beeb38d079f6">SHAMapNodeType::tnTRANSACTION_NM</a>,</div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  std::make_shared<SHAMapItem>(txID, s.<a class="code" href="classripple_1_1Serializer.html#a5f8c275ba7cfa80e56671b6935e29242">peekData</a>())))</div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  {</div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  JLOG(<a class="code" href="classripple_1_1NegativeUNLVote.html#a045ac9f409d032963fedb01a724b4f6f">j_</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) << <span class="stringliteral">"N-UNL: ledger seq="</span> << seq</div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  << <span class="stringliteral">", add ttUNL_MODIFY tx failed"</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">else</span></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_1NegativeUNLVote.html#a045ac9f409d032963fedb01a724b4f6f">j_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) << <span class="stringliteral">"N-UNL: ledger seq="</span> << seq</div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  << <span class="stringliteral">", add a ttUNL_MODIFY Tx with txID: "</span> << txID</div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  << <span class="stringliteral">", the validator to "</span></div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  << (modify == <a class="code" href="classripple_1_1NegativeUNLVote.html#a4fc6405fdb02e58c350e175b6d58e7cfabe47f804b7bde80da32af12f772dc7c5">ToDisable</a> ? <span class="stringliteral">"disable: "</span> : <span class="stringliteral">"re-enable: "</span>)</div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  << vp;</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>  </div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <a class="code" href="classripple_1_1base__uint.html">NodeID</a></div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="classripple_1_1NegativeUNLVote.html#a34a78d1a576f170278ca9daae7b60b0b"> 139</a></span> <a class="code" href="classripple_1_1NegativeUNLVote.html#a34a78d1a576f170278ca9daae7b60b0b">NegativeUNLVote::choose</a>(</div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>& randomPadData,</div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<NodeID></a> <span class="keyword">const</span>& candidates)</div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> {</div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  assert(!candidates.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector/empty.html">empty</a>());</div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  static_assert(<a class="code" href="classripple_1_1base__uint.html#a4b9e8d36a37963d48be8f081d99257bf">NodeID::bytes</a> <= <a class="code" href="classripple_1_1base__uint.html#a4b9e8d36a37963d48be8f081d99257bf">uint256::bytes</a>);</div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <a class="code" href="classripple_1_1base__uint.html">NodeID</a> randomPad = <a class="code" href="classripple_1_1base__uint.html#a4e9de7a706374a3d016b89c9ecb4f80d">NodeID::fromVoid</a>(randomPadData.<a class="code" href="classripple_1_1base__uint.html#a5342507fe2fb5ac55d578e7e98863f70">data</a>());</div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <a class="code" href="classripple_1_1base__uint.html">NodeID</a> txNodeID = candidates[0];</div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 1; j < candidates.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>(); ++j)</div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  {</div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keywordflow">if</span> ((candidates[j] ^ randomPad) < (txNodeID ^ randomPad))</div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  {</div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  txNodeID = candidates[j];</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>  }</div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordflow">return</span> txNodeID;</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>  </div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<hash_map<NodeID, std::uint32_t></a>></div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="classripple_1_1NegativeUNLVote.html#a4293d7509ebb8528e12faeee020f0bf0"> 158</a></span> <a class="code" href="classripple_1_1NegativeUNLVote.html#a4293d7509ebb8528e12faeee020f0bf0">NegativeUNLVote::buildScoreTable</a>(</div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Ledger const></a> <span class="keyword">const</span>& prevLedger,</div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_set.html">hash_set<NodeID></a> <span class="keyword">const</span>& unl,</div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="code" href="classripple_1_1Validations.html">RCLValidations</a>& validations)</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>  <span class="comment">// Find agreed validation messages received for</span></div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="comment">// the last FLAG_LEDGER_INTERVAL (i.e. 256) ledgers,</span></div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="comment">// for every validator, and fill the score table.</span></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="comment">// Ask the validation container to keep enough validation message history</span></div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="comment">// for next time.</span></div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keyword">auto</span> <span class="keyword">const</span> seq = prevLedger->info().seq + 1;</div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  validations.<a class="code" href="classripple_1_1Validations.html#ab80be66f69d9a14f41e9b2f314106a41">setSeqToKeep</a>(seq - 1);</div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  </div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="comment">// Find FLAG_LEDGER_INTERVAL (i.e. 256) previous ledger hashes</span></div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="keyword">auto</span> <span class="keyword">const</span> hashIndex = prevLedger->read(<a class="code" href="namespaceripple_1_1keylet.html#acda2d89a44551845c5be38291e5c9e8b">keylet::skip</a>());</div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keywordflow">if</span> (!hashIndex || !hashIndex->isFieldPresent(<a class="code" href="namespaceripple.html#ab44eddba949c362c1be0f959ee9a2117">sfHashes</a>))</div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  {</div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  JLOG(<a class="code" href="classripple_1_1NegativeUNLVote.html#a045ac9f409d032963fedb01a724b4f6f">j_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) << <span class="stringliteral">"N-UNL: ledger "</span> << seq << <span class="stringliteral">" no history."</span>;</div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keywordflow">return</span> {};</div>
|
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  }</div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keyword">auto</span> <span class="keyword">const</span> ledgerAncestors = hashIndex->getFieldV256(<a class="code" href="namespaceripple.html#ab44eddba949c362c1be0f959ee9a2117">sfHashes</a>).value();</div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="keyword">auto</span> <span class="keyword">const</span> numAncestors = ledgerAncestors.size();</div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="keywordflow">if</span> (numAncestors < <a class="code" href="namespaceripple.html#a9a1e35684311191adb2870e2d88030fc">FLAG_LEDGER_INTERVAL</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>  JLOG(<a class="code" href="classripple_1_1NegativeUNLVote.html#a045ac9f409d032963fedb01a724b4f6f">j_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) << <span class="stringliteral">"N-UNL: ledger "</span> << seq</div>
|
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  << <span class="stringliteral">" not enough history. Can trace back only "</span></div>
|
|
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  << numAncestors << <span class="stringliteral">" ledgers."</span>;</div>
|
|
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keywordflow">return</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>  </div>
|
|
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="comment">// have enough ledger ancestors, build the score table</span></div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_map.html">hash_map<NodeID, std::uint32_t></a> scoreTable;</div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& k : unl)</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>  scoreTable[k] = 0;</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>  </div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="comment">// Query the validation container for every ledger hash and fill</span></div>
|
|
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="comment">// the score table.</span></div>
|
|
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < <a class="code" href="namespaceripple.html#a9a1e35684311191adb2870e2d88030fc">FLAG_LEDGER_INTERVAL</a>; ++i)</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">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& v : validations.<a class="code" href="classripple_1_1Validations.html#a86ce52398a951c7df913b254eb8e9a2c">getTrustedForLedger</a>(</div>
|
|
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  ledgerAncestors[numAncestors - 1 - i]))</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">if</span> (scoreTable.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_map/count.html">count</a>(v->getNodeID()))</div>
|
|
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  ++scoreTable[v->getNodeID()];</div>
|
|
<div class="line"><a name="l00205"></a><span class="lineno"> 205</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>  </div>
|
|
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="comment">// Return false if the validation message history or local node's</span></div>
|
|
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <span class="comment">// participation in the history is not good.</span></div>
|
|
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="keyword">auto</span> <span class="keyword">const</span> myValidationCount = [&]() -> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> {</div>
|
|
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> it = scoreTable.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_map/find.html">find</a>(<a class="code" href="classripple_1_1NegativeUNLVote.html#a31a627b1220b08b6ee258bbb6bfed61c">myId_</a>); it != scoreTable.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_map/end.html">end</a>())</div>
|
|
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">return</span> it->second;</div>
|
|
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <span class="keywordflow">return</span> 0;</div>
|
|
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  }();</div>
|
|
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="keywordflow">if</span> (myValidationCount < <a class="code" href="classripple_1_1NegativeUNLVote.html#afd511e1daa58039d360430adf4043f0a">negativeUNLMinLocalValsToVote</a>)</div>
|
|
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  {</div>
|
|
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  JLOG(<a class="code" href="classripple_1_1NegativeUNLVote.html#a045ac9f409d032963fedb01a724b4f6f">j_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) << <span class="stringliteral">"N-UNL: ledger "</span> << seq</div>
|
|
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  << <span class="stringliteral">". Local node only issued "</span> << myValidationCount</div>
|
|
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  << <span class="stringliteral">" validations in last "</span> << <a class="code" href="namespaceripple.html#a9a1e35684311191adb2870e2d88030fc">FLAG_LEDGER_INTERVAL</a></div>
|
|
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  << <span class="stringliteral">" ledgers."</span></div>
|
|
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  << <span class="stringliteral">" The reliability measurement could be wrong."</span>;</div>
|
|
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="keywordflow">return</span> {};</div>
|
|
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  }</div>
|
|
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (</div>
|
|
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  myValidationCount > <a class="code" href="classripple_1_1NegativeUNLVote.html#afd511e1daa58039d360430adf4043f0a">negativeUNLMinLocalValsToVote</a> &&</div>
|
|
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  myValidationCount <= <a class="code" href="namespaceripple.html#a9a1e35684311191adb2870e2d88030fc">FLAG_LEDGER_INTERVAL</a>)</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>  <span class="keywordflow">return</span> scoreTable;</div>
|
|
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  }</div>
|
|
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keywordflow">else</span></div>
|
|
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  {</div>
|
|
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <span class="comment">// cannot happen because validations.getTrustedForLedger does not</span></div>
|
|
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <span class="comment">// return multiple validations of the same ledger from a validator.</span></div>
|
|
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  JLOG(<a class="code" href="classripple_1_1NegativeUNLVote.html#a045ac9f409d032963fedb01a724b4f6f">j_</a>.<a class="code" href="classbeast_1_1Journal.html#a49b0713e65bb8e2c51b76fbf16252afe">error</a>()) << <span class="stringliteral">"N-UNL: ledger "</span> << seq << <span class="stringliteral">". Local node issued "</span></div>
|
|
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  << myValidationCount << <span class="stringliteral">" validations in last "</span></div>
|
|
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  << <a class="code" href="namespaceripple.html#a9a1e35684311191adb2870e2d88030fc">FLAG_LEDGER_INTERVAL</a> << <span class="stringliteral">" ledgers. Too many!"</span>;</div>
|
|
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <span class="keywordflow">return</span> {};</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>  </div>
|
|
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span> <a class="code" href="structripple_1_1NegativeUNLVote_1_1Candidates.html">NegativeUNLVote::Candidates</a> <span class="keyword">const</span></div>
|
|
<div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="classripple_1_1NegativeUNLVote.html#aad6b405da7214440280177d02be243ff"> 242</a></span> <a class="code" href="classripple_1_1NegativeUNLVote.html#aad6b405da7214440280177d02be243ff">NegativeUNLVote::findAllCandidates</a>(</div>
|
|
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_set.html">hash_set<NodeID></a> <span class="keyword">const</span>& unl,</div>
|
|
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_set.html">hash_set<NodeID></a> <span class="keyword">const</span>& negUnl,</div>
|
|
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_map.html">hash_map<NodeID, std::uint32_t></a> <span class="keyword">const</span>& scoreTable)</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="comment">// Compute if need to find more validators to disable</span></div>
|
|
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="keyword">auto</span> <span class="keyword">const</span> canAdd = [&]() -> <span class="keywordtype">bool</span> {</div>
|
|
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <span class="keyword">auto</span> <span class="keyword">const</span> maxNegativeListed = <span class="keyword">static_cast<</span><a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a><span class="keyword">></span>(</div>
|
|
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/numeric/math/ceil.html">std::ceil</a>(unl.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_set/size.html">size</a>() * <a class="code" href="classripple_1_1NegativeUNLVote.html#af2de75b9bfd6f9725a3dce10979fc128">negativeUNLMaxListed</a>));</div>
|
|
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> negativeListed = 0;</div>
|
|
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& n : unl)</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> (negUnl.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_set/count.html">count</a>(n))</div>
|
|
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  ++negativeListed;</div>
|
|
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  }</div>
|
|
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <span class="keywordtype">bool</span> <span class="keyword">const</span> result = negativeListed < maxNegativeListed;</div>
|
|
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  JLOG(<a class="code" href="classripple_1_1NegativeUNLVote.html#a045ac9f409d032963fedb01a724b4f6f">j_</a>.<a class="code" href="classbeast_1_1Journal.html#abbe082bd27ca0f1d1365af2824e4f85b">trace</a>()) << <span class="stringliteral">"N-UNL: nodeId "</span> << <a class="code" href="classripple_1_1NegativeUNLVote.html#a31a627b1220b08b6ee258bbb6bfed61c">myId_</a> << <span class="stringliteral">" lowWaterMark "</span></div>
|
|
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  << <a class="code" href="classripple_1_1NegativeUNLVote.html#ab76d9fbc4b6a779ef802d683ce6aff5f">negativeUNLLowWaterMark</a> << <span class="stringliteral">" highWaterMark "</span></div>
|
|
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  << <a class="code" href="classripple_1_1NegativeUNLVote.html#a2f5602017495d3901ff8d662c38891af">negativeUNLHighWaterMark</a> << <span class="stringliteral">" canAdd "</span> << result</div>
|
|
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  << <span class="stringliteral">" negativeListed "</span> << negativeListed</div>
|
|
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  << <span class="stringliteral">" maxNegativeListed "</span> << maxNegativeListed;</div>
|
|
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <span class="keywordflow">return</span> result;</div>
|
|
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  }();</div>
|
|
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  </div>
|
|
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  <a class="code" href="structripple_1_1NegativeUNLVote_1_1Candidates.html">Candidates</a> candidates;</div>
|
|
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& [nodeId, score] : scoreTable)</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>  JLOG(<a class="code" href="classripple_1_1NegativeUNLVote.html#a045ac9f409d032963fedb01a724b4f6f">j_</a>.<a class="code" href="classbeast_1_1Journal.html#abbe082bd27ca0f1d1365af2824e4f85b">trace</a>()) << <span class="stringliteral">"N-UNL: node "</span> << nodeId << <span class="stringliteral">" score "</span> << score;</div>
|
|
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  </div>
|
|
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <span class="comment">// Find toDisable Candidates: check if</span></div>
|
|
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <span class="comment">// (1) canAdd,</span></div>
|
|
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <span class="comment">// (2) has less than negativeUNLLowWaterMark validations,</span></div>
|
|
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <span class="comment">// (3) is not in negUnl, and</span></div>
|
|
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="comment">// (4) is not a new validator.</span></div>
|
|
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="keywordflow">if</span> (canAdd && score < <a class="code" href="classripple_1_1NegativeUNLVote.html#ab76d9fbc4b6a779ef802d683ce6aff5f">negativeUNLLowWaterMark</a> &&</div>
|
|
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  !negUnl.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_set/count.html">count</a>(nodeId) && !<a class="code" href="classripple_1_1NegativeUNLVote.html#ad06aac6b466a08700b51ab59c5200108">newValidators_</a>.count(nodeId))</div>
|
|
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  {</div>
|
|
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  JLOG(<a class="code" href="classripple_1_1NegativeUNLVote.html#a045ac9f409d032963fedb01a724b4f6f">j_</a>.<a class="code" href="classbeast_1_1Journal.html#abbe082bd27ca0f1d1365af2824e4f85b">trace</a>()) << <span class="stringliteral">"N-UNL: toDisable candidate "</span> << nodeId;</div>
|
|
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  candidates.<a class="code" href="structripple_1_1NegativeUNLVote_1_1Candidates.html#afea2b484af350492a9d2a692afdbdc87">toDisableCandidates</a>.push_back(nodeId);</div>
|
|
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  }</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>  <span class="comment">// Find toReEnable Candidates: check if</span></div>
|
|
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="comment">// (1) has more than negativeUNLHighWaterMark validations,</span></div>
|
|
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <span class="comment">// (2) is in negUnl</span></div>
|
|
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <span class="keywordflow">if</span> (score > <a class="code" href="classripple_1_1NegativeUNLVote.html#a2f5602017495d3901ff8d662c38891af">negativeUNLHighWaterMark</a> && negUnl.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_set/count.html">count</a>(nodeId))</div>
|
|
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  {</div>
|
|
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  JLOG(<a class="code" href="classripple_1_1NegativeUNLVote.html#a045ac9f409d032963fedb01a724b4f6f">j_</a>.<a class="code" href="classbeast_1_1Journal.html#abbe082bd27ca0f1d1365af2824e4f85b">trace</a>()) << <span class="stringliteral">"N-UNL: toReEnable candidate "</span> << nodeId;</div>
|
|
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  candidates.<a class="code" href="structripple_1_1NegativeUNLVote_1_1Candidates.html#a938109d6a0f59356dcc6e36588ce40a9">toReEnableCandidates</a>.push_back(nodeId);</div>
|
|
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  }</div>
|
|
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  }</div>
|
|
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  </div>
|
|
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <span class="comment">// If a negative UNL validator is removed from nodes' UNLs, it is no longer</span></div>
|
|
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <span class="comment">// a validator. It should be removed from the negative UNL too.</span></div>
|
|
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  <span class="comment">// Note that even if it is still offline and in minority nodes' UNLs, it</span></div>
|
|
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <span class="comment">// will not be re-added to the negative UNL. Because the UNLModify Tx will</span></div>
|
|
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <span class="comment">// not be included in the agreed TxSet of a ledger.</span></div>
|
|
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  <span class="comment">//</span></div>
|
|
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <span class="comment">// Find this kind of toReEnable Candidate if did not find any toReEnable</span></div>
|
|
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  <span class="comment">// candidate yet: check if</span></div>
|
|
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <span class="comment">// (1) is in negUnl</span></div>
|
|
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  <span class="comment">// (2) is not in unl.</span></div>
|
|
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <span class="keywordflow">if</span> (candidates.<a class="code" href="structripple_1_1NegativeUNLVote_1_1Candidates.html#a938109d6a0f59356dcc6e36588ce40a9">toReEnableCandidates</a>.empty())</div>
|
|
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  {</div>
|
|
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& n : negUnl)</div>
|
|
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  {</div>
|
|
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <span class="keywordflow">if</span> (!unl.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_set/count.html">count</a>(n))</div>
|
|
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  {</div>
|
|
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  candidates.<a class="code" href="structripple_1_1NegativeUNLVote_1_1Candidates.html#a938109d6a0f59356dcc6e36588ce40a9">toReEnableCandidates</a>.push_back(n);</div>
|
|
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  }</div>
|
|
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  }</div>
|
|
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  }</div>
|
|
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  <span class="keywordflow">return</span> candidates;</div>
|
|
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span> }</div>
|
|
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  </div>
|
|
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00317"></a><span class="lineno"><a class="line" href="classripple_1_1NegativeUNLVote.html#af279cb391bcbed65e431f14d6322441c"> 317</a></span> <a class="code" href="classripple_1_1NegativeUNLVote.html#af279cb391bcbed65e431f14d6322441c">NegativeUNLVote::newValidators</a>(</div>
|
|
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">LedgerIndex</a> seq,</div>
|
|
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_set.html">hash_set<NodeID></a> <span class="keyword">const</span>& nowTrusted)</div>
|
|
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span> {</div>
|
|
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lock(<a class="code" href="classripple_1_1NegativeUNLVote.html#aa8c381a7b9dd1ea9ac0c06e03b89ca35">mutex_</a>);</div>
|
|
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& n : nowTrusted)</div>
|
|
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  {</div>
|
|
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  <span class="keywordflow">if</span> (<a class="code" href="classripple_1_1NegativeUNLVote.html#ad06aac6b466a08700b51ab59c5200108">newValidators_</a>.find(n) == <a class="code" href="classripple_1_1NegativeUNLVote.html#ad06aac6b466a08700b51ab59c5200108">newValidators_</a>.end())</div>
|
|
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  {</div>
|
|
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  JLOG(<a class="code" href="classripple_1_1NegativeUNLVote.html#a045ac9f409d032963fedb01a724b4f6f">j_</a>.<a class="code" href="classbeast_1_1Journal.html#abbe082bd27ca0f1d1365af2824e4f85b">trace</a>()) << <span class="stringliteral">"N-UNL: add a new validator "</span> << n</div>
|
|
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  << <span class="stringliteral">" at ledger seq="</span> << seq;</div>
|
|
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <a class="code" href="classripple_1_1NegativeUNLVote.html#ad06aac6b466a08700b51ab59c5200108">newValidators_</a>[n] = seq;</div>
|
|
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  }</div>
|
|
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  }</div>
|
|
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span> }</div>
|
|
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  </div>
|
|
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00334"></a><span class="lineno"><a class="line" href="classripple_1_1NegativeUNLVote.html#a715cdaf670c930941605e79e41f37a12"> 334</a></span> <a class="code" href="classripple_1_1NegativeUNLVote.html#a715cdaf670c930941605e79e41f37a12">NegativeUNLVote::purgeNewValidators</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">LedgerIndex</a> seq)</div>
|
|
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span> {</div>
|
|
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lock(<a class="code" href="classripple_1_1NegativeUNLVote.html#aa8c381a7b9dd1ea9ac0c06e03b89ca35">mutex_</a>);</div>
|
|
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  <span class="keyword">auto</span> i = <a class="code" href="classripple_1_1NegativeUNLVote.html#ad06aac6b466a08700b51ab59c5200108">newValidators_</a>.begin();</div>
|
|
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  <span class="keywordflow">while</span> (i != <a class="code" href="classripple_1_1NegativeUNLVote.html#ad06aac6b466a08700b51ab59c5200108">newValidators_</a>.end())</div>
|
|
<div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  {</div>
|
|
<div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  <span class="keywordflow">if</span> (seq - i->second > <a class="code" href="classripple_1_1NegativeUNLVote.html#ab62eededf03134ab139bed2a3e4712b2">newValidatorDisableSkip</a>)</div>
|
|
<div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  {</div>
|
|
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  i = <a class="code" href="classripple_1_1NegativeUNLVote.html#ad06aac6b466a08700b51ab59c5200108">newValidators_</a>.erase(i);</div>
|
|
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  }</div>
|
|
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  <span class="keywordflow">else</span></div>
|
|
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  {</div>
|
|
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  ++i;</div>
|
|
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  }</div>
|
|
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  }</div>
|
|
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span> }</div>
|
|
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  </div>
|
|
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span> } <span class="comment">// namespace ripple</span></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<div class="ttc" id="anamespaceripple_html_a5da1d364939981da98850cde32786ca8"><div class="ttname"><a href="namespaceripple.html#a5da1d364939981da98850cde32786ca8">ripple::sfUNLModifyValidator</a></div><div class="ttdeci">const SF_VL sfUNLModifyValidator</div></div>
|
|
<div class="ttc" id="aclassripple_1_1NegativeUNLVote_html_ac58c464cefde1519ac23d1b51aa28833"><div class="ttname"><a href="classripple_1_1NegativeUNLVote.html#ac58c464cefde1519ac23d1b51aa28833">ripple::NegativeUNLVote::doVoting</a></div><div class="ttdeci">void doVoting(std::shared_ptr< Ledger const > const &prevLedger, hash_set< PublicKey > const &unlKeys, RCLValidations &validations, std::shared_ptr< SHAMap > const &initialSet)</div><div class="ttdoc">Cast our local vote on the NegativeUNL candidates.</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8cpp_source.html#l00032">NegativeUNLVote.cpp:32</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_a984ddd646f1e1a5032a9a17f96c6fc55"><div class="ttname"><a href="namespaceripple.html#a984ddd646f1e1a5032a9a17f96c6fc55">ripple::calcNodeID</a></div><div class="ttdeci">NodeID calcNodeID(PublicKey const &pk)</div><div class="ttdoc">Calculate the 160-bit node ID from a node public key.</div><div class="ttdef"><b>Definition:</b> <a href="PublicKey_8cpp_source.html#l00299">PublicKey.cpp:299</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1Journal_html_abbe082bd27ca0f1d1365af2824e4f85b"><div class="ttname"><a href="classbeast_1_1Journal.html#abbe082bd27ca0f1d1365af2824e4f85b">beast::Journal::trace</a></div><div class="ttdeci">Stream trace() const</div><div class="ttdoc">Severity stream access functions.</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00309">Journal.h:309</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="aunordered_set_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/unordered_set.html">std::unordered_set</a></div><div class="ttdoc">STL class.</div></div>
|
|
<div class="ttc" id="aclassripple_1_1NegativeUNLVote_html_a045ac9f409d032963fedb01a724b4f6f"><div class="ttname"><a href="classripple_1_1NegativeUNLVote.html#a045ac9f409d032963fedb01a724b4f6f">ripple::NegativeUNLVote::j_</a></div><div class="ttdeci">beast::Journal j_</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8h_source.html#l00128">NegativeUNLVote.h:128</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="afind_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/unordered_map/find.html">std::unordered_map::find</a></div><div class="ttdeci">T find(T... args)</div></div>
|
|
<div class="ttc" id="asize_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/size.html">std::vector::size</a></div><div class="ttdeci">T size(T... args)</div></div>
|
|
<div class="ttc" id="anamespaceripple_1_1keylet_html_acda2d89a44551845c5be38291e5c9e8b"><div class="ttname"><a href="namespaceripple_1_1keylet.html#acda2d89a44551845c5be38291e5c9e8b">ripple::keylet::skip</a></div><div class="ttdeci">Keylet const & skip() noexcept</div><div class="ttdoc">The index of the "short" skip list.</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8cpp_source.html#l00146">Indexes.cpp:146</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a9a1e35684311191adb2870e2d88030fc"><div class="ttname"><a href="namespaceripple.html#a9a1e35684311191adb2870e2d88030fc">ripple::FLAG_LEDGER_INTERVAL</a></div><div class="ttdeci">constexpr std::uint32_t FLAG_LEDGER_INTERVAL</div><div class="ttdef"><b>Definition:</b> <a href="Ledger_8h_source.html#l00417">Ledger.h:417</a></div></div>
|
|
<div class="ttc" id="aemplace_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/unordered_map/emplace.html">std::unordered_map::emplace</a></div><div class="ttdeci">T emplace(T... args)</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="aclassripple_1_1Validations_html_ab80be66f69d9a14f41e9b2f314106a41"><div class="ttname"><a href="classripple_1_1Validations.html#ab80be66f69d9a14f41e9b2f314106a41">ripple::Validations::setSeqToKeep</a></div><div class="ttdeci">void setSeqToKeep(Seq const &s)</div><div class="ttdoc">Set the smallest sequence number of validations to keep from expire.</div><div class="ttdef"><b>Definition:</b> <a href="Validations_8h_source.html#l00697">Validations.h:697</a></div></div>
|
|
<div class="ttc" id="alock_guard_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a></div><div class="ttdoc">STL class.</div></div>
|
|
<div class="ttc" id="aclassripple_1_1NegativeUNLVote_html_a4fc6405fdb02e58c350e175b6d58e7cfa50aab7a54a0d4bee43c5e3fcedd50d13"><div class="ttname"><a href="classripple_1_1NegativeUNLVote.html#a4fc6405fdb02e58c350e175b6d58e7cfa50aab7a54a0d4bee43c5e3fcedd50d13">ripple::NegativeUNLVote::ToReEnable</a></div><div class="ttdeci">@ ToReEnable</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8h_source.html#l00085">NegativeUNLVote.h:85</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1PublicKey_html_ae0bcc607176a440ec63a86bae5767036"><div class="ttname"><a href="classripple_1_1PublicKey.html#ae0bcc607176a440ec63a86bae5767036">ripple::PublicKey::slice</a></div><div class="ttdeci">Slice slice() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="PublicKey_8h_source.html#l00123">PublicKey.h:123</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NegativeUNLVote_html_a2f5602017495d3901ff8d662c38891af"><div class="ttname"><a href="classripple_1_1NegativeUNLVote.html#a2f5602017495d3901ff8d662c38891af">ripple::NegativeUNLVote::negativeUNLHighWaterMark</a></div><div class="ttdeci">static constexpr size_t negativeUNLHighWaterMark</div><div class="ttdoc">An unreliable validator must have more than negativeUNLHighWaterMark validations in the last flag led...</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8h_source.html#l00061">NegativeUNLVote.h:61</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1base__uint_html_a5342507fe2fb5ac55d578e7e98863f70"><div class="ttname"><a href="classripple_1_1base__uint.html#a5342507fe2fb5ac55d578e7e98863f70">ripple::base_uint::data</a></div><div class="ttdeci">pointer data()</div><div class="ttdef"><b>Definition:</b> <a href="base__uint_8h_source.html#l00113">base_uint.h:113</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_1NegativeUNLVote_html_ad06aac6b466a08700b51ab59c5200108"><div class="ttname"><a href="classripple_1_1NegativeUNLVote.html#ad06aac6b466a08700b51ab59c5200108">ripple::NegativeUNLVote::newValidators_</a></div><div class="ttdeci">hash_map< NodeID, LedgerIndex > newValidators_</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8h_source.html#l00130">NegativeUNLVote.h:130</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1NegativeUNLVote_1_1Candidates_html_afea2b484af350492a9d2a692afdbdc87"><div class="ttname"><a href="structripple_1_1NegativeUNLVote_1_1Candidates.html#afea2b484af350492a9d2a692afdbdc87">ripple::NegativeUNLVote::Candidates::toDisableCandidates</a></div><div class="ttdeci">std::vector< NodeID > toDisableCandidates</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8h_source.html#l00137">NegativeUNLVote.h:137</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< 160, detail::NodeIDTag ></a></div></div>
|
|
<div class="ttc" id="astructripple_1_1NegativeUNLVote_1_1Candidates_html_a938109d6a0f59356dcc6e36588ce40a9"><div class="ttname"><a href="structripple_1_1NegativeUNLVote_1_1Candidates.html#a938109d6a0f59356dcc6e36588ce40a9">ripple::NegativeUNLVote::Candidates::toReEnableCandidates</a></div><div class="ttdeci">std::vector< NodeID > toReEnableCandidates</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8h_source.html#l00138">NegativeUNLVote.h:138</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NegativeUNLVote_html_a4fc6405fdb02e58c350e175b6d58e7cfabe47f804b7bde80da32af12f772dc7c5"><div class="ttname"><a href="classripple_1_1NegativeUNLVote.html#a4fc6405fdb02e58c350e175b6d58e7cfabe47f804b7bde80da32af12f772dc7c5">ripple::NegativeUNLVote::ToDisable</a></div><div class="ttdeci">@ ToDisable</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8h_source.html#l00084">NegativeUNLVote.h:84</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1base__uint_html_a4b9e8d36a37963d48be8f081d99257bf"><div class="ttname"><a href="classripple_1_1base__uint.html#a4b9e8d36a37963d48be8f081d99257bf">ripple::base_uint< 160, detail::NodeIDTag >::bytes</a></div><div class="ttdeci">static constexpr std::size_t bytes</div><div class="ttdef"><b>Definition:</b> <a href="base__uint_8h_source.html#l00096">base_uint.h:96</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NegativeUNLVote_html_aad6b405da7214440280177d02be243ff"><div class="ttname"><a href="classripple_1_1NegativeUNLVote.html#aad6b405da7214440280177d02be243ff">ripple::NegativeUNLVote::findAllCandidates</a></div><div class="ttdeci">const Candidates findAllCandidates(hash_set< NodeID > const &unl, hash_set< NodeID > const &negUnl, hash_map< NodeID, std::uint32_t > const &scoreTable)</div><div class="ttdoc">Process the score table and find all disabling and re-enabling candidates.</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8cpp_source.html#l00242">NegativeUNLVote.cpp:242</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1PublicKey_html"><div class="ttname"><a href="classripple_1_1PublicKey.html">ripple::PublicKey</a></div><div class="ttdoc">A public key.</div><div class="ttdef"><b>Definition:</b> <a href="PublicKey_8h_source.html#l00059">PublicKey.h:59</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NegativeUNLVote_html_af2de75b9bfd6f9725a3dce10979fc128"><div class="ttname"><a href="classripple_1_1NegativeUNLVote.html#af2de75b9bfd6f9725a3dce10979fc128">ripple::NegativeUNLVote::negativeUNLMaxListed</a></div><div class="ttdeci">static constexpr float negativeUNLMaxListed</div><div class="ttdoc">We only want to put 25% of the UNL on the NegativeUNL.</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8h_source.html#l00077">NegativeUNLVote.h:77</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NegativeUNLVote_html_afd511e1daa58039d360430adf4043f0a"><div class="ttname"><a href="classripple_1_1NegativeUNLVote.html#afd511e1daa58039d360430adf4043f0a">ripple::NegativeUNLVote::negativeUNLMinLocalValsToVote</a></div><div class="ttdeci">static constexpr size_t negativeUNLMinLocalValsToVote</div><div class="ttdoc">The minimum number of validations of the local node for it to participate in the voting.</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8h_source.html#l00067">NegativeUNLVote.h:67</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1Journal_html_a49b0713e65bb8e2c51b76fbf16252afe"><div class="ttname"><a href="classbeast_1_1Journal.html#a49b0713e65bb8e2c51b76fbf16252afe">beast::Journal::error</a></div><div class="ttdeci">Stream error() const</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00333">Journal.h:333</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#l00042">STTx.h:42</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1Journal_html"><div class="ttname"><a href="classbeast_1_1Journal.html">beast::Journal</a></div><div class="ttdoc">A generic endpoint for log messages.</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00058">Journal.h:58</a></div></div>
|
|
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NegativeUNLVote_html_a4293d7509ebb8528e12faeee020f0bf0"><div class="ttname"><a href="classripple_1_1NegativeUNLVote.html#a4293d7509ebb8528e12faeee020f0bf0">ripple::NegativeUNLVote::buildScoreTable</a></div><div class="ttdeci">std::optional< hash_map< NodeID, std::uint32_t > > buildScoreTable(std::shared_ptr< Ledger const > const &prevLedger, hash_set< NodeID > const &unl, RCLValidations &validations)</div><div class="ttdoc">Build a reliability measurement score table of validators' validation messages in the last flag ledge...</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8cpp_source.html#l00158">NegativeUNLVote.cpp:158</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1NegativeUNLVote_1_1Candidates_html"><div class="ttname"><a href="structripple_1_1NegativeUNLVote_1_1Candidates.html">ripple::NegativeUNLVote::Candidates</a></div><div class="ttdoc">UNLModify Tx candidates.</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8h_source.html#l00135">NegativeUNLVote.h:135</a></div></div>
|
|
<div class="ttc" id="aceil_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/math/ceil.html">std::ceil</a></div><div class="ttdeci">T ceil(T... args)</div></div>
|
|
<div class="ttc" id="aclassripple_1_1Validations_html_a86ce52398a951c7df913b254eb8e9a2c"><div class="ttname"><a href="classripple_1_1Validations.html#a86ce52398a951c7df913b254eb8e9a2c">ripple::Validations::getTrustedForLedger</a></div><div class="ttdeci">std::vector< WrappedValidationType > getTrustedForLedger(ID const &ledgerID)</div><div class="ttdoc">Get trusted full validations for a specific ledger.</div><div class="ttdef"><b>Definition:</b> <a href="Validations_8h_source.html#l01010">Validations.h:1010</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NegativeUNLVote_html_af8a85a2853312bc4b1ff9852a2498bd4"><div class="ttname"><a href="classripple_1_1NegativeUNLVote.html#af8a85a2853312bc4b1ff9852a2498bd4">ripple::NegativeUNLVote::addTx</a></div><div class="ttdeci">void addTx(LedgerIndex seq, PublicKey const &vp, NegativeUNLModify modify, std::shared_ptr< SHAMap > const &initialSet)</div><div class="ttdoc">Add a ttUNL_MODIFY Tx to the transaction set.</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8cpp_source.html#l00106">NegativeUNLVote.cpp:106</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_ac4249fe49fd110562adb330d3122e163"><div class="ttname"><a href="namespaceripple.html#ac4249fe49fd110562adb330d3122e163">ripple::sfUNLModifyDisabling</a></div><div class="ttdeci">const SF_UINT8 sfUNLModifyDisabling</div></div>
|
|
<div class="ttc" id="aclassripple_1_1NegativeUNLVote_html_ab62eededf03134ab139bed2a3e4712b2"><div class="ttname"><a href="classripple_1_1NegativeUNLVote.html#ab62eededf03134ab139bed2a3e4712b2">ripple::NegativeUNLVote::newValidatorDisableSkip</a></div><div class="ttdeci">static constexpr size_t newValidatorDisableSkip</div><div class="ttdoc">We don't want to disable new validators immediately after adding them.</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8h_source.html#l00073">NegativeUNLVote.h:73</a></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_ab44eddba949c362c1be0f959ee9a2117"><div class="ttname"><a href="namespaceripple.html#ab44eddba949c362c1be0f959ee9a2117">ripple::sfHashes</a></div><div class="ttdeci">const SF_VECTOR256 sfHashes</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_1NegativeUNLVote_html_a31a627b1220b08b6ee258bbb6bfed61c"><div class="ttname"><a href="classripple_1_1NegativeUNLVote.html#a31a627b1220b08b6ee258bbb6bfed61c">ripple::NegativeUNLVote::myId_</a></div><div class="ttdeci">const NodeID myId_</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8h_source.html#l00127">NegativeUNLVote.h:127</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1base__uint_html_a4e9de7a706374a3d016b89c9ecb4f80d"><div class="ttname"><a href="classripple_1_1base__uint.html#a4e9de7a706374a3d016b89c9ecb4f80d">ripple::base_uint< 160, detail::NodeIDTag >::fromVoid</a></div><div class="ttdeci">static base_uint fromVoid(void const *data)</div><div class="ttdef"><b>Definition:</b> <a href="base__uint_8h_source.html#l00223">base_uint.h:223</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#l00166">Serializer.h:166</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NegativeUNLVote_html_a4fc6405fdb02e58c350e175b6d58e7cf"><div class="ttname"><a href="classripple_1_1NegativeUNLVote.html#a4fc6405fdb02e58c350e175b6d58e7cf">ripple::NegativeUNLVote::NegativeUNLModify</a></div><div class="ttdeci">NegativeUNLModify</div><div class="ttdoc">A flag indicating whether a UNLModify Tx is to disable or to re-enable a validator.</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8h_source.html#l00083">NegativeUNLVote.h:83</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NegativeUNLVote_html_ab76d9fbc4b6a779ef802d683ce6aff5f"><div class="ttname"><a href="classripple_1_1NegativeUNLVote.html#ab76d9fbc4b6a779ef802d683ce6aff5f">ripple::NegativeUNLVote::negativeUNLLowWaterMark</a></div><div class="ttdeci">static constexpr size_t negativeUNLLowWaterMark</div><div class="ttdoc">A validator is considered unreliable if its validations is less than negativeUNLLowWaterMark in the l...</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8h_source.html#l00055">NegativeUNLVote.h:55</a></div></div>
|
|
<div class="ttc" id="acount_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/unordered_map/count.html">std::unordered_map::count</a></div><div class="ttdeci">T count(T... args)</div></div>
|
|
<div class="ttc" id="aempty_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/empty.html">std::vector::empty</a></div><div class="ttdeci">T empty(T... args)</div></div>
|
|
<div class="ttc" id="aclassripple_1_1Validations_html"><div class="ttname"><a href="classripple_1_1Validations.html">ripple::Validations< RCLValidationsAdaptor ></a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a48e7bc26e67dbb8709698c89f67a9264a2b1632b6f19b0e05c73086acb1731b48"><div class="ttname"><a href="namespaceripple.html#a48e7bc26e67dbb8709698c89f67a9264a2b1632b6f19b0e05c73086acb1731b48">ripple::ttUNL_MODIFY</a></div><div class="ttdeci">@ ttUNL_MODIFY</div><div class="ttdef"><b>Definition:</b> <a href="TxFormats_8h_source.html#l00063">TxFormats.h:63</a></div></div>
|
|
<div class="ttc" id="aoptional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1Journal_html_a556228cb60bcf405c225d3f64b7b01ae"><div class="ttname"><a href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">beast::Journal::debug</a></div><div class="ttdeci">Stream debug() const</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00315">Journal.h:315</a></div></div>
|
|
<div class="ttc" id="asize_t_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NegativeUNLVote_html_a715cdaf670c930941605e79e41f37a12"><div class="ttname"><a href="classripple_1_1NegativeUNLVote.html#a715cdaf670c930941605e79e41f37a12">ripple::NegativeUNLVote::purgeNewValidators</a></div><div class="ttdeci">void purgeNewValidators(LedgerIndex seq)</div><div class="ttdoc">Purge validators that are not new anymore.</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8cpp_source.html#l00334">NegativeUNLVote.cpp:334</a></div></div>
|
|
<div class="ttc" id="aend_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/unordered_map/end.html">std::unordered_map::end</a></div><div class="ttdeci">T end(T... args)</div></div>
|
|
<div class="ttc" id="aclassripple_1_1NegativeUNLVote_html_a34a78d1a576f170278ca9daae7b60b0b"><div class="ttname"><a href="classripple_1_1NegativeUNLVote.html#a34a78d1a576f170278ca9daae7b60b0b">ripple::NegativeUNLVote::choose</a></div><div class="ttdeci">NodeID choose(uint256 const &randomPadData, std::vector< NodeID > const &candidates)</div><div class="ttdoc">Pick one candidate from a vector of candidates.</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8cpp_source.html#l00139">NegativeUNLVote.cpp:139</a></div></div>
|
|
<div class="ttc" id="aunordered_map_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/unordered_map.html">std::unordered_map</a></div><div class="ttdoc">STL class.</div></div>
|
|
<div class="ttc" id="aclassripple_1_1NegativeUNLVote_html_aa8c381a7b9dd1ea9ac0c06e03b89ca35"><div class="ttname"><a href="classripple_1_1NegativeUNLVote.html#aa8c381a7b9dd1ea9ac0c06e03b89ca35">ripple::NegativeUNLVote::mutex_</a></div><div class="ttdeci">std::mutex mutex_</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8h_source.html#l00129">NegativeUNLVote.h:129</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NegativeUNLVote_html_afb3ed2c981663495ad603c103040fbf1"><div class="ttname"><a href="classripple_1_1NegativeUNLVote.html#afb3ed2c981663495ad603c103040fbf1">ripple::NegativeUNLVote::NegativeUNLVote</a></div><div class="ttdeci">NegativeUNLVote(NodeID const &myId, beast::Journal j)</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8cpp_source.html#l00026">NegativeUNLVote.cpp:26</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NegativeUNLVote_html_af279cb391bcbed65e431f14d6322441c"><div class="ttname"><a href="classripple_1_1NegativeUNLVote.html#af279cb391bcbed65e431f14d6322441c">ripple::NegativeUNLVote::newValidators</a></div><div class="ttdeci">void newValidators(LedgerIndex seq, hash_set< NodeID > const &nowTrusted)</div><div class="ttdoc">Notify NegativeUNLVote that new validators are added.</div><div class="ttdef"><b>Definition:</b> <a href="NegativeUNLVote_8cpp_source.html#l00317">NegativeUNLVote.cpp:317</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>
|