mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-02 17:06:00 +00:00
deploy: c3acbce82d
This commit is contained in:
@@ -91,107 +91,107 @@ $(function() {
|
||||
<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#a2ce3074a39ea65126b82fc59baf43126a2b1632b6f19b0e05c73086acb1731b48">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="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <ripple/shamap/SHAMapItem.h></span></div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  </div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  </div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classripple_1_1NegativeUNLVote.html#afb3ed2c981663495ad603c103040fbf1"> 27</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="l00028"></a><span class="lineno"> 28</span>  : myId_(myId), j_(j)</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>  </div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classripple_1_1NegativeUNLVote.html#ac58c464cefde1519ac23d1b51aa28833"> 33</a></span> <a class="code" href="classripple_1_1NegativeUNLVote.html#ac58c464cefde1519ac23d1b51aa28833">NegativeUNLVote::doVoting</a>(</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</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="l00035"></a><span class="lineno"> 35</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="l00036"></a><span class="lineno"> 36</span>  <a class="code" href="classripple_1_1Validations.html">RCLValidations</a>& validations,</div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</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="l00038"></a><span class="lineno"> 38</span> {</div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="comment">// Voting steps:</span></div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="comment">// -- build a reliability score table of validators</span></div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="comment">// -- process the table and find all candidates to disable or to re-enable</span></div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="comment">// -- pick one to disable and one to re-enable if any</span></div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="comment">// -- if found candidates, add ttUNL_MODIFY Tx</span></div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  </div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="comment">// Build NodeID set for internal use.</span></div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="comment">// Build NodeID to PublicKey map for lookup before creating ttUNL_MODIFY Tx.</span></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_set.html">hash_set<NodeID></a> unlNodeIDs;</div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</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="l00049"></a><span class="lineno"> 49</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& k : unlKeys)</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>  <span class="keyword">auto</span> nid = <a class="code" href="namespaceripple.html#a984ddd646f1e1a5032a9a17f96c6fc55">calcNodeID</a>(k);</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</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="l00053"></a><span class="lineno"> 53</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="l00054"></a><span class="lineno"> 54</span>  }</div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  </div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="comment">// Build a reliability score table of validators</span></div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</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="l00058"></a><span class="lineno"> 58</span>  <a class="code" href="classripple_1_1NegativeUNLVote.html#a4293d7509ebb8528e12faeee020f0bf0">buildScoreTable</a>(prevLedger, unlNodeIDs, validations))</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>  <span class="comment">// build next negUnl</span></div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keyword">auto</span> negUnlKeys = prevLedger->negativeUNL();</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keyword">auto</span> negUnlToDisable = prevLedger->validatorToDisable();</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keyword">auto</span> negUnlToReEnable = prevLedger->validatorToReEnable();</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordflow">if</span> (negUnlToDisable)</div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  negUnlKeys.insert(*negUnlToDisable);</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordflow">if</span> (negUnlToReEnable)</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  negUnlKeys.erase(*negUnlToReEnable);</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  </div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</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="l00070"></a><span class="lineno"> 70</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& k : negUnlKeys)</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="keyword">auto</span> nid = <a class="code" href="namespaceripple.html#a984ddd646f1e1a5032a9a17f96c6fc55">calcNodeID</a>(k);</div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</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="l00074"></a><span class="lineno"> 74</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="l00075"></a><span class="lineno"> 75</span>  {</div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</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="l00077"></a><span class="lineno"> 77</span>  }</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  }</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  </div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keyword">auto</span> <span class="keyword">const</span> seq = prevLedger->info().seq + 1;</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <a class="code" href="classripple_1_1NegativeUNLVote.html#a715cdaf670c930941605e79e41f37a12">purgeNewValidators</a>(seq);</div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  </div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="comment">// Process the table and find all candidates to disable or to re-enable</span></div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keyword">auto</span> <span class="keyword">const</span> candidates =</div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <a class="code" href="classripple_1_1NegativeUNLVote.html#aad6b405da7214440280177d02be243ff">findAllCandidates</a>(unlNodeIDs, negUnlNodeIDs, *scoreTable);</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">// Pick one to disable and one to re-enable if any, add ttUNL_MODIFY Tx</span></div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordflow">if</span> (!candidates.toDisableCandidates.empty())</div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  {</div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keyword">auto</span> n =</div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <a class="code" href="classripple_1_1NegativeUNLVote.html#a34a78d1a576f170278ca9daae7b60b0b">choose</a>(prevLedger->info().hash, candidates.toDisableCandidates);</div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</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="l00093"></a><span class="lineno"> 93</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="l00094"></a><span class="lineno"> 94</span>  }</div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">if</span> (!candidates.toReEnableCandidates.empty())</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="keyword">auto</span> n = <a class="code" href="classripple_1_1NegativeUNLVote.html#a34a78d1a576f170278ca9daae7b60b0b">choose</a>(</div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  prevLedger->info().hash, candidates.toReEnableCandidates);</div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</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="l00101"></a><span class="lineno"> 101</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="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>  </div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="classripple_1_1NegativeUNLVote.html#af8a85a2853312bc4b1ff9852a2498bd4"> 107</a></span> <a class="code" href="classripple_1_1NegativeUNLVote.html#af8a85a2853312bc4b1ff9852a2498bd4">NegativeUNLVote::addTx</a>(</div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">LedgerIndex</a> seq,</div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <a class="code" href="classripple_1_1PublicKey.html">PublicKey</a> <span class="keyword">const</span>& vp,</div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <a class="code" href="classripple_1_1NegativeUNLVote.html#a4fc6405fdb02e58c350e175b6d58e7cf">NegativeUNLModify</a> modify,</div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</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="l00112"></a><span class="lineno"> 112</span> {</div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <a class="code" href="classripple_1_1STTx.html">STTx</a> negUnlTx(<a class="code" href="namespaceripple.html#a2ce3074a39ea65126b82fc59baf43126a2b1632b6f19b0e05c73086acb1731b48">ttUNL_MODIFY</a>, [&](<span class="keyword">auto</span>& obj) {</div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</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="l00115"></a><span class="lineno"> 115</span>  obj.setFieldU32(<a class="code" href="namespaceripple.html#a4a189668d64758cfcac4022778e496f5">sfLedgerSequence</a>, seq);</div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</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="l00117"></a><span class="lineno"> 117</span>  });</div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  </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#a394c3299f6cfcebdaa4bc98ec0c602d6">slice</a>())))</div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="namespaceripple.html#a0f98a7a60d7fb0c39572419ac15c959f">make_shamapitem</a>(negUnlTx.getTransactionID(), s.slice())))</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>
|
||||
@@ -199,8 +199,8 @@ $(function() {
|
||||
<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="l00131"></a><span class="lineno"> 131</span>  << <span class="stringliteral">", add a ttUNL_MODIFY Tx with txID: "</span></div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  << negUnlTx.getTransactionID() << <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>
|
||||
@@ -422,12 +422,13 @@ $(function() {
|
||||
<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="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#l00033">NegativeUNLVote.cpp:33</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#l00303">PublicKey.cpp:303</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="anamespaceripple_html_a0f98a7a60d7fb0c39572419ac15c959f"><div class="ttname"><a href="namespaceripple.html#a0f98a7a60d7fb0c39572419ac15c959f">ripple::make_shamapitem</a></div><div class="ttdeci">boost::intrusive_ptr< SHAMapItem > make_shamapitem(uint256 const &tag, Slice data)</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapItem_8h_source.html#l00160">SHAMapItem.h:160</a></div></div>
|
||||
<div class="ttc" id="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>
|
||||
@@ -453,7 +454,6 @@ $(function() {
|
||||
<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="aclassripple_1_1Serializer_html_a394c3299f6cfcebdaa4bc98ec0c602d6"><div class="ttname"><a href="classripple_1_1Serializer.html#a394c3299f6cfcebdaa4bc98ec0c602d6">ripple::Serializer::slice</a></div><div class="ttdeci">Slice slice() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00063">Serializer.h:63</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1Journal_html_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#l00045">STTx.h:45</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1Journal_html"><div class="ttname"><a href="classbeast_1_1Journal.html">beast::Journal</a></div><div class="ttdoc">A generic endpoint for log messages.</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00058">Journal.h:58</a></div></div>
|
||||
@@ -461,7 +461,7 @@ $(function() {
|
||||
<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_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="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#l00107">NegativeUNLVote.cpp:107</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>
|
||||
@@ -484,7 +484,7 @@ $(function() {
|
||||
<div class="ttc" id="aclassripple_1_1Validations_html_a065935dcd0e0f1fa0d5ded9a65935e86"><div class="ttname"><a href="classripple_1_1Validations.html#a065935dcd0e0f1fa0d5ded9a65935e86">ripple::Validations::getTrustedForLedger</a></div><div class="ttdeci">std::vector< WrappedValidationType > getTrustedForLedger(ID const &ledgerID, Seq const &seq)</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#l01056">Validations.h:1056</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_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#l00027">NegativeUNLVote.cpp:27</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>
|
||||
|
||||
Reference in New Issue
Block a user