This commit is contained in:
manojsdoshi
2020-06-30 22:25:39 +00:00
parent afa79b0356
commit 76ee98eab2
3262 changed files with 114349 additions and 92216 deletions

View File

@@ -154,91 +154,92 @@ $(function() {
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="comment">// Called by the consensus code when we need to</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="comment">// inject pseudo-transactions</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keyword">virtual</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map&lt;uint256, std::uint32_t&gt;</a></div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#a879dd1b8a9991c7c281fbaf377e425e1">doVoting</a>(</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/chrono/time_point.html">NetClock::time_point</a> closeTime,</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set&lt;uint256&gt;</a> <span class="keyword">const</span>&amp; enabledAmendments,</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/map.html">majorityAmendments_t</a> <span class="keyword">const</span>&amp; majorityAmendments,</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;STValidation&gt;</a>&gt; <span class="keyword">const</span>&amp; valSet) = 0;</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="comment">// Called by the consensus code when we need to</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="comment">// add feature entries to a validation</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <span class="keyword">virtual</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;uint256&gt;</a></div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#af8412c322ac2c2f3410548358630c9d7">doValidation</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set&lt;uint256&gt;</a> <span class="keyword">const</span>&amp; enabled) <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="comment">// The set of amendments to enable in the genesis ledger</span></div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="comment">// This will return all known, non-vetoed amendments.</span></div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="comment">// If we ever have two amendments that should not both be</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="comment">// enabled at the same time, we should ensure one is vetoed.</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keyword">virtual</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;uint256&gt;</a></div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#ac12013d542d0fc1638f9ab4220896580">getDesired</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; </div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="comment">// The function below adapts the API callers expect to the</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="comment">// internal amendment table API. This allows the amendment</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="comment">// table implementation to be independent of the ledger</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="comment">// implementation. These APIs will merge when the view code</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="comment">// supports a full ledger API</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; </div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#ae4402ab8248766bc7556bdbb93225943"> 126</a></span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#ae4402ab8248766bc7556bdbb93225943">doVoting</a>(</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;ReadView const&gt;</a> <span class="keyword">const</span>&amp; lastClosedLedger,</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;STValidation&gt;</a>&gt; <span class="keyword">const</span>&amp; parentValidations,</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;SHAMap&gt;</a> <span class="keyword">const</span>&amp; initialPosition)</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; {</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="comment">// Ask implementation what to do</span></div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="keyword">auto</span> actions = <a class="code" href="classripple_1_1AmendmentTable.html#a879dd1b8a9991c7c281fbaf377e425e1">doVoting</a>(</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; lastClosedLedger-&gt;parentCloseTime(),</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <a class="code" href="namespaceripple.html#a6f8b0cab74710c17299c1d37f3e05b48">getEnabledAmendments</a>(*lastClosedLedger),</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <a class="code" href="namespaceripple.html#ab6b00b336996c0b0a3fe2e8a8d5fa76a">getMajorityAmendments</a>(*lastClosedLedger),</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; parentValidations);</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; </div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="comment">// Inject appropriate pseudo-transactions</span></div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>&amp; it : actions)</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; {</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <a class="code" href="classripple_1_1STTx.html">STTx</a> amendTx(</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <a class="code" href="namespaceripple.html#a48e7bc26e67dbb8709698c89f67a9264a0c108e5d380e14099ad0299d5c0ee510">ttAMENDMENT</a>,</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; [&amp;it, seq = lastClosedLedger-&gt;seq() + 1](<span class="keyword">auto</span>&amp; obj) {</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; obj.setAccountID(sfAccount, AccountID());</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; obj.setFieldH256(sfAmendment, it.first);</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; obj.setFieldU32(sfLedgerSequence, seq);</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; </div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; if (it.second != 0)</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; obj.setFieldU32(sfFlags, it.second);</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; });</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <a class="code" href="classripple_1_1Serializer.html">Serializer</a> s;</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; amendTx.<a class="code" href="classripple_1_1STObject.html#a04978b5398a7b54a93dba72826b9e849">add</a>(s);</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; </div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; initialPosition-&gt;addGiveItem(</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; std::make_shared&lt;SHAMapItem&gt;(</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; amendTx.<a class="code" href="classripple_1_1STTx.html#ad314af66e2542db537b3b5de291d33c3">getTransactionID</a>(), s.<a class="code" href="classripple_1_1Serializer.html#a5f8c275ba7cfa80e56671b6935e29242">peekData</a>()),</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <span class="keyword">true</span>,</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; <span class="keyword">false</span>);</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; }</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; }</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;};</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; </div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160;<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr&lt;AmendmentTable&gt;</a></div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160;<a class="code" href="namespaceripple.html#ac19cff417e1091f50fc523c5a1755d62">make_AmendmentTable</a>(</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::seconds</a> majorityTime,</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; <span class="keywordtype">int</span> majorityFraction,</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; Section <span class="keyword">const</span>&amp; supported,</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; Section <span class="keyword">const</span>&amp; enabled,</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; Section <span class="keyword">const</span>&amp; vetoed,</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> journal);</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; </div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160;} <span class="comment">// namespace ripple</span></div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; </div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#ab69ef448949faf9d80e80760d6574381">doVoting</a>(</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <a class="code" href="classripple_1_1Rules.html">Rules</a> <span class="keyword">const</span>&amp; rules,</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/chrono/time_point.html">NetClock::time_point</a> closeTime,</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set&lt;uint256&gt;</a> <span class="keyword">const</span>&amp; enabledAmendments,</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/map.html">majorityAmendments_t</a> <span class="keyword">const</span>&amp; majorityAmendments,</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;STValidation&gt;</a>&gt; <span class="keyword">const</span>&amp; valSet) = 0;</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="comment">// Called by the consensus code when we need to</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <span class="comment">// add feature entries to a validation</span></div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="keyword">virtual</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;uint256&gt;</a></div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#af8412c322ac2c2f3410548358630c9d7">doValidation</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set&lt;uint256&gt;</a> <span class="keyword">const</span>&amp; enabled) <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="comment">// The set of amendments to enable in the genesis ledger</span></div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="comment">// This will return all known, non-vetoed amendments.</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="comment">// If we ever have two amendments that should not both be</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="comment">// enabled at the same time, we should ensure one is vetoed.</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <span class="keyword">virtual</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;uint256&gt;</a></div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#ac12013d542d0fc1638f9ab4220896580">getDesired</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; </div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="comment">// The function below adapts the API callers expect to the</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="comment">// internal amendment table API. This allows the amendment</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="comment">// table implementation to be independent of the ledger</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="comment">// implementation. These APIs will merge when the view code</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="comment">// supports a full ledger API</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classripple_1_1AmendmentTable.html#ae4402ab8248766bc7556bdbb93225943"> 127</a></span>&#160; <a class="code" href="classripple_1_1AmendmentTable.html#ae4402ab8248766bc7556bdbb93225943">doVoting</a>(</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;ReadView const&gt;</a> <span class="keyword">const</span>&amp; lastClosedLedger,</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;STValidation&gt;</a>&gt; <span class="keyword">const</span>&amp; parentValidations,</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;SHAMap&gt;</a> <span class="keyword">const</span>&amp; initialPosition)</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; {</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="comment">// Ask implementation what to do</span></div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <span class="keyword">auto</span> actions = <a class="code" href="classripple_1_1AmendmentTable.html#ab69ef448949faf9d80e80760d6574381">doVoting</a>(</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; lastClosedLedger-&gt;rules(),</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; lastClosedLedger-&gt;parentCloseTime(),</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <a class="code" href="namespaceripple.html#a6f8b0cab74710c17299c1d37f3e05b48">getEnabledAmendments</a>(*lastClosedLedger),</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <a class="code" href="namespaceripple.html#ab6b00b336996c0b0a3fe2e8a8d5fa76a">getMajorityAmendments</a>(*lastClosedLedger),</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; parentValidations);</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; </div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="comment">// Inject appropriate pseudo-transactions</span></div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>&amp; it : actions)</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; {</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <a class="code" href="classripple_1_1STTx.html">STTx</a> amendTx(</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <a class="code" href="namespaceripple.html#a48e7bc26e67dbb8709698c89f67a9264a0c108e5d380e14099ad0299d5c0ee510">ttAMENDMENT</a>,</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; [&amp;it, seq = lastClosedLedger-&gt;seq() + 1](<span class="keyword">auto</span>&amp; obj) {</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; obj.setAccountID(sfAccount, AccountID());</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; obj.setFieldH256(sfAmendment, it.first);</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; obj.setFieldU32(sfLedgerSequence, seq);</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; </div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; if (it.second != 0)</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; obj.setFieldU32(sfFlags, it.second);</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; });</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; </div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <a class="code" href="classripple_1_1Serializer.html">Serializer</a> s;</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; amendTx.<a class="code" href="classripple_1_1STObject.html#a04978b5398a7b54a93dba72826b9e849">add</a>(s);</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; </div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; initialPosition-&gt;addGiveItem(</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; std::make_shared&lt;SHAMapItem&gt;(</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; amendTx.<a class="code" href="classripple_1_1STTx.html#ad314af66e2542db537b3b5de291d33c3">getTransactionID</a>(), s.<a class="code" href="classripple_1_1Serializer.html#a5f8c275ba7cfa80e56671b6935e29242">peekData</a>()),</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <span class="keyword">true</span>,</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <span class="keyword">false</span>);</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; }</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; }</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160;};</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; </div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160;<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr&lt;AmendmentTable&gt;</a></div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160;<a class="code" href="namespaceripple.html#a35ced120460d637fbdbaae9a894feba8">make_AmendmentTable</a>(</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::seconds</a> majorityTime,</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; Section <span class="keyword">const</span>&amp; supported,</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; Section <span class="keyword">const</span>&amp; enabled,</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; Section <span class="keyword">const</span>&amp; vetoed,</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> journal);</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; </div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160;} <span class="comment">// namespace ripple</span></div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; </div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="anamespaceripple_html_ab6b00b336996c0b0a3fe2e8a8d5fa76a"><div class="ttname"><a href="namespaceripple.html#ab6b00b336996c0b0a3fe2e8a8d5fa76a">ripple::getMajorityAmendments</a></div><div class="ttdeci">majorityAmendments_t getMajorityAmendments(ReadView const &amp;view)</div><div class="ttdef"><b>Definition:</b> <a href="View_8cpp_source.html#l00550">View.cpp:550</a></div></div>
<div class="ttc" id="anamespaceripple_html_a6f8b0cab74710c17299c1d37f3e05b48"><div class="ttname"><a href="namespaceripple.html#a6f8b0cab74710c17299c1d37f3e05b48">ripple::getEnabledAmendments</a></div><div class="ttdeci">std::set&lt; uint256 &gt; getEnabledAmendments(ReadView const &amp;view)</div><div class="ttdef"><b>Definition:</b> <a href="View_8cpp_source.html#l00533">View.cpp:533</a></div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_ab69ef448949faf9d80e80760d6574381"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#ab69ef448949faf9d80e80760d6574381">ripple::AmendmentTable::doVoting</a></div><div class="ttdeci">virtual std::map&lt; uint256, std::uint32_t &gt; doVoting(Rules const &amp;rules, NetClock::time_point closeTime, std::set&lt; uint256 &gt; const &amp;enabledAmendments, majorityAmendments_t const &amp;majorityAmendments, std::vector&lt; std::shared_ptr&lt; STValidation &gt;&gt; const &amp;valSet)=0</div></div>
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div><div class="ttdoc">STL class.</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="aclassripple_1_1AmendmentTable_html_a5a0a3c98955ce15af2458780544edb71"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#a5a0a3c98955ce15af2458780544edb71">ripple::AmendmentTable::veto</a></div><div class="ttdeci">virtual bool veto(uint256 const &amp;amendment)=0</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_aca7fd10cd15869ffea10ee5d769ad744"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#aca7fd10cd15869ffea10ee5d769ad744">ripple::AmendmentTable::find</a></div><div class="ttdeci">virtual uint256 find(std::string const &amp;name) const =0</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="anamespaceripple_html_ac19cff417e1091f50fc523c5a1755d62"><div class="ttname"><a href="namespaceripple.html#ac19cff417e1091f50fc523c5a1755d62">ripple::make_AmendmentTable</a></div><div class="ttdeci">std::unique_ptr&lt; AmendmentTable &gt; make_AmendmentTable(std::chrono::seconds majorityTime, int majorityFraction, Section const &amp;supported, Section const &amp;enabled, Section const &amp;vetoed, beast::Journal journal)</div><div class="ttdef"><b>Definition:</b> <a href="AmendmentTable_8cpp_source.html#l00667">AmendmentTable.cpp:667</a></div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_ae4402ab8248766bc7556bdbb93225943"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#ae4402ab8248766bc7556bdbb93225943">ripple::AmendmentTable::doVoting</a></div><div class="ttdeci">void doVoting(std::shared_ptr&lt; ReadView const &gt; const &amp;lastClosedLedger, std::vector&lt; std::shared_ptr&lt; STValidation &gt;&gt; const &amp;parentValidations, std::shared_ptr&lt; SHAMap &gt; const &amp;initialPosition)</div><div class="ttdef"><b>Definition:</b> <a href="AmendmentTable_8h_source.html#l00126">AmendmentTable.h:126</a></div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_ae4402ab8248766bc7556bdbb93225943"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#ae4402ab8248766bc7556bdbb93225943">ripple::AmendmentTable::doVoting</a></div><div class="ttdeci">void doVoting(std::shared_ptr&lt; ReadView const &gt; const &amp;lastClosedLedger, std::vector&lt; std::shared_ptr&lt; STValidation &gt;&gt; const &amp;parentValidations, std::shared_ptr&lt; SHAMap &gt; const &amp;initialPosition)</div><div class="ttdef"><b>Definition:</b> <a href="AmendmentTable_8h_source.html#l00127">AmendmentTable.h:127</a></div></div>
<div class="ttc" id="aduration_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::seconds</a></div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_ac721ac20262609226483f1436b0df02f"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#ac721ac20262609226483f1436b0df02f">ripple::AmendmentTable::doValidatedLedger</a></div><div class="ttdeci">void doValidatedLedger(std::shared_ptr&lt; ReadView const &gt; const &amp;lastValidatedLedger)</div><div class="ttdoc">Called when a new fully-validated ledger is accepted.</div><div class="ttdef"><b>Definition:</b> <a href="AmendmentTable_8h_source.html#l00076">AmendmentTable.h:76</a></div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_ac63a31d38346fba5d5ca78c4894af31a"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#ac63a31d38346fba5d5ca78c4894af31a">ripple::AmendmentTable::getJson</a></div><div class="ttdeci">virtual Json::Value getJson() const =0</div></div>
@@ -247,6 +248,7 @@ $(function() {
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_ad57021ddc7e6f87d04dd57fba582eb31"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#ad57021ddc7e6f87d04dd57fba582eb31">ripple::AmendmentTable::unVeto</a></div><div class="ttdeci">virtual bool unVeto(uint256 const &amp;amendment)=0</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_aef6ef4d534e0ef300563731966ed7f1d"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#aef6ef4d534e0ef300563731966ed7f1d">ripple::AmendmentTable::~AmendmentTable</a></div><div class="ttdeci">virtual ~AmendmentTable()=default</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_ade548ac91394d89376f0a8bfb1ebd903"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#ade548ac91394d89376f0a8bfb1ebd903">ripple::AmendmentTable::isEnabled</a></div><div class="ttdeci">virtual bool isEnabled(uint256 const &amp;amendment) const =0</div></div>
<div class="ttc" id="anamespaceripple_html_a35ced120460d637fbdbaae9a894feba8"><div class="ttname"><a href="namespaceripple.html#a35ced120460d637fbdbaae9a894feba8">ripple::make_AmendmentTable</a></div><div class="ttdeci">std::unique_ptr&lt; AmendmentTable &gt; make_AmendmentTable(std::chrono::seconds majorityTime, Section const &amp;supported, Section const &amp;enabled, Section const &amp;vetoed, beast::Journal journal)</div><div class="ttdef"><b>Definition:</b> <a href="AmendmentTable_8cpp_source.html#l00695">AmendmentTable.cpp:695</a></div></div>
<div class="ttc" id="atime_point_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/chrono/time_point.html">std::chrono::time_point</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>
@@ -254,7 +256,6 @@ $(function() {
<div class="ttc" id="anamespaceripple_html_a48e7bc26e67dbb8709698c89f67a9264a0c108e5d380e14099ad0299d5c0ee510"><div class="ttname"><a href="namespaceripple.html#a48e7bc26e67dbb8709698c89f67a9264a0c108e5d380e14099ad0299d5c0ee510">ripple::ttAMENDMENT</a></div><div class="ttdeci">@ ttAMENDMENT</div><div class="ttdef"><b>Definition:</b> <a href="TxFormats_8h_source.html#l00059">TxFormats.h:59</a></div></div>
<div class="ttc" id="amap_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/map.html">std::map</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_ac9e23d71814bcf7c601f37e0b9323b1a"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#ac9e23d71814bcf7c601f37e0b9323b1a">ripple::AmendmentTable::enable</a></div><div class="ttdeci">virtual bool enable(uint256 const &amp;amendment)=0</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_a879dd1b8a9991c7c281fbaf377e425e1"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#a879dd1b8a9991c7c281fbaf377e425e1">ripple::AmendmentTable::doVoting</a></div><div class="ttdeci">virtual std::map&lt; uint256, std::uint32_t &gt; doVoting(NetClock::time_point closeTime, std::set&lt; uint256 &gt; const &amp;enabledAmendments, majorityAmendments_t const &amp;majorityAmendments, std::vector&lt; std::shared_ptr&lt; STValidation &gt;&gt; const &amp;valSet)=0</div></div>
<div class="ttc" id="aclassripple_1_1STTx_html_ad314af66e2542db537b3b5de291d33c3"><div class="ttname"><a href="classripple_1_1STTx.html#ad314af66e2542db537b3b5de291d33c3">ripple::STTx::getTransactionID</a></div><div class="ttdeci">uint256 getTransactionID() const</div><div class="ttdef"><b>Definition:</b> <a href="STTx_8h_source.html#l00131">STTx.h:131</a></div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_a8eee69252a4b7961d0d8cd411896eeb9"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#a8eee69252a4b7961d0d8cd411896eeb9">ripple::AmendmentTable::hasUnsupportedEnabled</a></div><div class="ttdeci">virtual bool hasUnsupportedEnabled() const =0</div><div class="ttdoc">returns true if one or more amendments on the network have been enabled that this server does not sup...</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_a5fce75b79a87e541918be639a28f3c87"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#a5fce75b79a87e541918be639a28f3c87">ripple::AmendmentTable::isSupported</a></div><div class="ttdeci">virtual bool isSupported(uint256 const &amp;amendment) const =0</div></div>
@@ -262,6 +263,7 @@ $(function() {
<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_1STObject_html_a04978b5398a7b54a93dba72826b9e849"><div class="ttname"><a href="classripple_1_1STObject.html#a04978b5398a7b54a93dba72826b9e849">ripple::STObject::add</a></div><div class="ttdeci">virtual void add(Serializer &amp;s) const override</div><div class="ttdef"><b>Definition:</b> <a href="STObject_8h_source.html#l00351">STObject.h:351</a></div></div>
<div class="ttc" id="aclassripple_1_1Serializer_html_a5f8c275ba7cfa80e56671b6935e29242"><div class="ttname"><a href="classripple_1_1Serializer.html#a5f8c275ba7cfa80e56671b6935e29242">ripple::Serializer::peekData</a></div><div class="ttdeci">Blob const &amp; peekData() const</div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00166">Serializer.h:166</a></div></div>
<div class="ttc" id="aclassripple_1_1Rules_html"><div class="ttname"><a href="classripple_1_1Rules.html">ripple::Rules</a></div><div class="ttdoc">Rules controlling protocol behavior.</div><div class="ttdef"><b>Definition:</b> <a href="ReadView_8h_source.html#l00127">ReadView.h:127</a></div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html"><div class="ttname"><a href="classripple_1_1AmendmentTable.html">ripple::AmendmentTable</a></div><div class="ttdoc">The amendment table stores the list of enabled and potential amendments.</div><div class="ttdef"><b>Definition:</b> <a href="AmendmentTable_8h_source.html#l00034">AmendmentTable.h:34</a></div></div>
<div class="ttc" id="aunique_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_ae37ca6d253d452ae23a6e160d9180e05"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#ae37ca6d253d452ae23a6e160d9180e05">ripple::AmendmentTable::needValidatedLedger</a></div><div class="ttdeci">virtual bool needValidatedLedger(LedgerIndex seq) const =0</div><div class="ttdoc">Called to determine whether the amendment logic needs to process a new validated ledger.</div></div>