This commit is contained in:
manojsdoshi
2022-03-31 17:56:44 +00:00
parent 5f48f33f84
commit 1896d70739
3766 changed files with 89634 additions and 81142 deletions

View File

@@ -128,119 +128,114 @@ $(function() {
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <a class="code" href="classripple_1_1base__uint.html">LedgerHash</a></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <a class="code" href="classripple_1_1LedgerHistory.html#a8decf929ebaba3425836b33fc74d6be4">getLedgerHash</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">LedgerIndex</a> ledgerIndex);</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <a class="code" href="classripple_1_1LedgerHistory.html#ae8f38e5e1ec9f36261c3efa670eb2b85">tune</a>(<span class="keywordtype">int</span> size, <a class="codeRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::seconds</a> age);</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classripple_1_1LedgerHistory.html#a5c3fbc509e1f5446d85176bac513e74c"> 83</a></span>&#160; <a class="code" href="classripple_1_1LedgerHistory.html#a5c3fbc509e1f5446d85176bac513e74c">sweep</a>()</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; {</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <a class="code" href="classripple_1_1LedgerHistory.html#a6ad42489964a9f9b01df435e391bcfd2">m_ledgers_by_hash</a>.<a class="code" href="classripple_1_1TaggedCache.html#a5a2f1176e41e598872fc1ab375e74441">sweep</a>();</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <a class="code" href="classripple_1_1LedgerHistory.html#a7c71cafdd85eba74ab6e4436d9ec9037">m_consensus_validated</a>.<a class="code" href="classripple_1_1TaggedCache.html#a5a2f1176e41e598872fc1ab375e74441">sweep</a>();</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; }</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classripple_1_1LedgerHistory.html#a5c3fbc509e1f5446d85176bac513e74c"> 76</a></span>&#160; <a class="code" href="classripple_1_1LedgerHistory.html#a5c3fbc509e1f5446d85176bac513e74c">sweep</a>()</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; {</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <a class="code" href="classripple_1_1LedgerHistory.html#a6ad42489964a9f9b01df435e391bcfd2">m_ledgers_by_hash</a>.<a class="code" href="classripple_1_1TaggedCache.html#a5a2f1176e41e598872fc1ab375e74441">sweep</a>();</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <a class="code" href="classripple_1_1LedgerHistory.html#a7c71cafdd85eba74ab6e4436d9ec9037">m_consensus_validated</a>.<a class="code" href="classripple_1_1TaggedCache.html#a5a2f1176e41e598872fc1ab375e74441">sweep</a>();</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; }</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <a class="code" href="classripple_1_1LedgerHistory.html#a5b22f0c89730a59843fa1840d9225d27">builtLedger</a>(</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Ledger const&gt;</a> <span class="keyword">const</span>&amp;,</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; consensusHash,</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <a class="code" href="classJson_1_1Value.html">Json::Value</a>);</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; </div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <a class="code" href="classripple_1_1LedgerHistory.html#a5b22f0c89730a59843fa1840d9225d27">builtLedger</a>(</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <a class="code" href="classripple_1_1LedgerHistory.html#ae3a7cdee19a26b3859e86b02e2cc3742">validatedLedger</a>(</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Ledger const&gt;</a> <span class="keyword">const</span>&amp;,</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; consensusHash,</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <a class="code" href="classJson_1_1Value.html">Json::Value</a>);</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <a class="code" href="classripple_1_1LedgerHistory.html#ae3a7cdee19a26b3859e86b02e2cc3742">validatedLedger</a>(</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Ledger const&gt;</a> <span class="keyword">const</span>&amp;,</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;uint256&gt;</a> <span class="keyword">const</span>&amp; consensusHash);</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <a class="code" href="classripple_1_1LedgerHistory.html#ae03adeae0930b7092edb4139cc7d0330">fixIndex</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">LedgerIndex</a> ledgerIndex, <a class="code" href="classripple_1_1base__uint.html">LedgerHash</a> <span class="keyword">const</span>&amp; ledgerHash);</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; </div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <a class="code" href="classripple_1_1LedgerHistory.html#a9d3e04a8d477455a9da28022915bad81">clearLedgerCachePrior</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">LedgerIndex</a> seq);</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="keyword">private</span>:</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <a class="code" href="classripple_1_1LedgerHistory.html#a8a5ccffa6c8b9c83d07f608b37a20899">handleMismatch</a>(</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <a class="code" href="classripple_1_1base__uint.html">LedgerHash</a> <span class="keyword">const</span>&amp; built,</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <a class="code" href="classripple_1_1base__uint.html">LedgerHash</a> <span class="keyword">const</span>&amp; valid,</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;uint256&gt;</a> <span class="keyword">const</span>&amp; builtConsensusHash,</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;uint256&gt;</a> <span class="keyword">const</span>&amp; validatedConsensusHash,</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <a class="code" href="classJson_1_1Value.html">Json::Value</a> <span class="keyword">const</span>&amp; consensus);</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"><a class="line" href="classripple_1_1LedgerHistory.html#a7514a7d4ed469f9a72004040fe243db4"> 132</a></span>&#160; <a class="code" href="classripple_1_1Application.html">Application</a>&amp; <a class="code" href="classripple_1_1LedgerHistory.html#a7514a7d4ed469f9a72004040fe243db4">app_</a>;</div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="classripple_1_1LedgerHistory.html#aa4ab3f74729e78f0a67177555e159671"> 133</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">beast::insight::Collector::ptr</a> <a class="code" href="classripple_1_1LedgerHistory.html#aa4ab3f74729e78f0a67177555e159671">collector_</a>;</div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="classripple_1_1LedgerHistory.html#ada81f3494202a6c8473ba4f17c12d91f"> 134</a></span>&#160; <a class="code" href="classbeast_1_1insight_1_1Counter.html">beast::insight::Counter</a> <a class="code" href="classripple_1_1LedgerHistory.html#ada81f3494202a6c8473ba4f17c12d91f">mismatch_counter_</a>;</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; </div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="classripple_1_1LedgerHistory.html#a1e34d9ee13455de3ea2f919c202a1e1e"> 136</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classripple_1_1TaggedCache.html">LedgersByHash</a> = <a class="code" href="classripple_1_1TaggedCache.html">TaggedCache&lt;LedgerHash, Ledger const&gt;</a>;</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"><a class="line" href="classripple_1_1LedgerHistory.html#a6ad42489964a9f9b01df435e391bcfd2"> 138</a></span>&#160; <a class="code" href="classripple_1_1TaggedCache.html">LedgersByHash</a> <a class="code" href="classripple_1_1LedgerHistory.html#a6ad42489964a9f9b01df435e391bcfd2">m_ledgers_by_hash</a>;</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">// Maps ledger indexes to the corresponding hashes</span></div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="comment">// For debug and logging purposes</span></div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="structripple_1_1LedgerHistory_1_1cv__entry.html"> 142</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structripple_1_1LedgerHistory_1_1cv__entry.html">cv_entry</a></div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; {</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="comment">// Hash of locally built ledger</span></div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="structripple_1_1LedgerHistory_1_1cv__entry.html#a8b472a2cf7e84430d9ce01dce209cb56"> 145</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;LedgerHash&gt;</a> <a class="code" href="structripple_1_1LedgerHistory_1_1cv__entry.html#a8b472a2cf7e84430d9ce01dce209cb56">built</a>;</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <span class="comment">// Hash of the validated ledger</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="structripple_1_1LedgerHistory_1_1cv__entry.html#ac0bfc50bf3098eb63ee0395a95cce397"> 147</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;LedgerHash&gt;</a> <a class="code" href="structripple_1_1LedgerHistory_1_1cv__entry.html#ac0bfc50bf3098eb63ee0395a95cce397">validated</a>;</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <span class="comment">// Hash of locally accepted consensus transaction set</span></div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="structripple_1_1LedgerHistory_1_1cv__entry.html#abd60e88598204536623c867e11136ac9"> 149</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;uint256&gt;</a> <a class="code" href="structripple_1_1LedgerHistory_1_1cv__entry.html#abd60e88598204536623c867e11136ac9">builtConsensusHash</a>;</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <span class="comment">// Hash of validated consensus transaction set</span></div>
<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="structripple_1_1LedgerHistory_1_1cv__entry.html#aa6a49831bf517108f9e6aa7cb89fc646"> 151</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;uint256&gt;</a> <a class="code" href="structripple_1_1LedgerHistory_1_1cv__entry.html#aa6a49831bf517108f9e6aa7cb89fc646">validatedConsensusHash</a>;</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <span class="comment">// Consensus metadata of built ledger</span></div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="structripple_1_1LedgerHistory_1_1cv__entry.html#aaa092c4e79f060432060905fa219f330"> 153</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;Json::Value&gt;</a> <a class="code" href="structripple_1_1LedgerHistory_1_1cv__entry.html#aaa092c4e79f060432060905fa219f330">consensus</a>;</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"><a class="line" href="classripple_1_1LedgerHistory.html#a4893ecfd7e45a96ca0b7ddd241edeba8"> 155</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classripple_1_1TaggedCache.html">ConsensusValidated</a> = <a class="code" href="classripple_1_1TaggedCache.html">TaggedCache&lt;LedgerIndex, cv_entry&gt;</a>;</div>
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="classripple_1_1LedgerHistory.html#a7c71cafdd85eba74ab6e4436d9ec9037"> 156</a></span>&#160; <a class="code" href="classripple_1_1TaggedCache.html">ConsensusValidated</a> <a class="code" href="classripple_1_1LedgerHistory.html#a7c71cafdd85eba74ab6e4436d9ec9037">m_consensus_validated</a>;</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; </div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <span class="comment">// Maps ledger indexes to the corresponding hash.</span></div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="classripple_1_1LedgerHistory.html#a4fc23d794f5afd08ae10d9406f2874f8"> 159</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map&lt;LedgerIndex, LedgerHash&gt;</a> <a class="code" href="classripple_1_1LedgerHistory.html#a4fc23d794f5afd08ae10d9406f2874f8">mLedgersByIndex</a>; <span class="comment">// validated ledgers</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"><a class="line" href="classripple_1_1LedgerHistory.html#a8413110326cba685ff8cdb908ff310e9"> 161</a></span>&#160; <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> <a class="code" href="classripple_1_1LedgerHistory.html#a8413110326cba685ff8cdb908ff310e9">j_</a>;</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;} <span class="comment">// namespace ripple</span></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;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;uint256&gt;</a> <span class="keyword">const</span>&amp; consensusHash);</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; </div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <a class="code" href="classripple_1_1LedgerHistory.html#ae03adeae0930b7092edb4139cc7d0330">fixIndex</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">LedgerIndex</a> ledgerIndex, <a class="code" href="classripple_1_1base__uint.html">LedgerHash</a> <span class="keyword">const</span>&amp; ledgerHash);</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <a class="code" href="classripple_1_1LedgerHistory.html#a9d3e04a8d477455a9da28022915bad81">clearLedgerCachePrior</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">LedgerIndex</a> seq);</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <a class="code" href="classripple_1_1LedgerHistory.html#a8a5ccffa6c8b9c83d07f608b37a20899">handleMismatch</a>(</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <a class="code" href="classripple_1_1base__uint.html">LedgerHash</a> <span class="keyword">const</span>&amp; built,</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <a class="code" href="classripple_1_1base__uint.html">LedgerHash</a> <span class="keyword">const</span>&amp; valid,</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;uint256&gt;</a> <span class="keyword">const</span>&amp; builtConsensusHash,</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;uint256&gt;</a> <span class="keyword">const</span>&amp; validatedConsensusHash,</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <a class="code" href="classJson_1_1Value.html">Json::Value</a> <span class="keyword">const</span>&amp; consensus);</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"><a class="line" href="classripple_1_1LedgerHistory.html#a7514a7d4ed469f9a72004040fe243db4"> 125</a></span>&#160; <a class="code" href="classripple_1_1Application.html">Application</a>&amp; <a class="code" href="classripple_1_1LedgerHistory.html#a7514a7d4ed469f9a72004040fe243db4">app_</a>;</div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classripple_1_1LedgerHistory.html#aa4ab3f74729e78f0a67177555e159671"> 126</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">beast::insight::Collector::ptr</a> <a class="code" href="classripple_1_1LedgerHistory.html#aa4ab3f74729e78f0a67177555e159671">collector_</a>;</div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classripple_1_1LedgerHistory.html#ada81f3494202a6c8473ba4f17c12d91f"> 127</a></span>&#160; <a class="code" href="classbeast_1_1insight_1_1Counter.html">beast::insight::Counter</a> <a class="code" href="classripple_1_1LedgerHistory.html#ada81f3494202a6c8473ba4f17c12d91f">mismatch_counter_</a>;</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; </div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="classripple_1_1LedgerHistory.html#a1e34d9ee13455de3ea2f919c202a1e1e"> 129</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classripple_1_1TaggedCache.html">LedgersByHash</a> = <a class="code" href="classripple_1_1TaggedCache.html">TaggedCache&lt;LedgerHash, Ledger const&gt;</a>;</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"><a class="line" href="classripple_1_1LedgerHistory.html#a6ad42489964a9f9b01df435e391bcfd2"> 131</a></span>&#160; <a class="code" href="classripple_1_1TaggedCache.html">LedgersByHash</a> <a class="code" href="classripple_1_1LedgerHistory.html#a6ad42489964a9f9b01df435e391bcfd2">m_ledgers_by_hash</a>;</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; </div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <span class="comment">// Maps ledger indexes to the corresponding hashes</span></div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="comment">// For debug and logging purposes</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="structripple_1_1LedgerHistory_1_1cv__entry.html"> 135</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structripple_1_1LedgerHistory_1_1cv__entry.html">cv_entry</a></div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; {</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <span class="comment">// Hash of locally built ledger</span></div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="structripple_1_1LedgerHistory_1_1cv__entry.html#a8b472a2cf7e84430d9ce01dce209cb56"> 138</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;LedgerHash&gt;</a> <a class="code" href="structripple_1_1LedgerHistory_1_1cv__entry.html#a8b472a2cf7e84430d9ce01dce209cb56">built</a>;</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="comment">// Hash of the validated ledger</span></div>
<div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="structripple_1_1LedgerHistory_1_1cv__entry.html#ac0bfc50bf3098eb63ee0395a95cce397"> 140</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;LedgerHash&gt;</a> <a class="code" href="structripple_1_1LedgerHistory_1_1cv__entry.html#ac0bfc50bf3098eb63ee0395a95cce397">validated</a>;</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="comment">// Hash of locally accepted consensus transaction set</span></div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="structripple_1_1LedgerHistory_1_1cv__entry.html#abd60e88598204536623c867e11136ac9"> 142</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;uint256&gt;</a> <a class="code" href="structripple_1_1LedgerHistory_1_1cv__entry.html#abd60e88598204536623c867e11136ac9">builtConsensusHash</a>;</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="comment">// Hash of validated consensus transaction set</span></div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="structripple_1_1LedgerHistory_1_1cv__entry.html#aa6a49831bf517108f9e6aa7cb89fc646"> 144</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;uint256&gt;</a> <a class="code" href="structripple_1_1LedgerHistory_1_1cv__entry.html#aa6a49831bf517108f9e6aa7cb89fc646">validatedConsensusHash</a>;</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <span class="comment">// Consensus metadata of built ledger</span></div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="structripple_1_1LedgerHistory_1_1cv__entry.html#aaa092c4e79f060432060905fa219f330"> 146</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;Json::Value&gt;</a> <a class="code" href="structripple_1_1LedgerHistory_1_1cv__entry.html#aaa092c4e79f060432060905fa219f330">consensus</a>;</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"><a class="line" href="classripple_1_1LedgerHistory.html#a4893ecfd7e45a96ca0b7ddd241edeba8"> 148</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classripple_1_1TaggedCache.html">ConsensusValidated</a> = <a class="code" href="classripple_1_1TaggedCache.html">TaggedCache&lt;LedgerIndex, cv_entry&gt;</a>;</div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="classripple_1_1LedgerHistory.html#a7c71cafdd85eba74ab6e4436d9ec9037"> 149</a></span>&#160; <a class="code" href="classripple_1_1TaggedCache.html">ConsensusValidated</a> <a class="code" href="classripple_1_1LedgerHistory.html#a7c71cafdd85eba74ab6e4436d9ec9037">m_consensus_validated</a>;</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; <span class="comment">// Maps ledger indexes to the corresponding hash.</span></div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="classripple_1_1LedgerHistory.html#a4fc23d794f5afd08ae10d9406f2874f8"> 152</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map&lt;LedgerIndex, LedgerHash&gt;</a> <a class="code" href="classripple_1_1LedgerHistory.html#a4fc23d794f5afd08ae10d9406f2874f8">mLedgersByIndex</a>; <span class="comment">// validated ledgers</span></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"><a class="line" href="classripple_1_1LedgerHistory.html#a8413110326cba685ff8cdb908ff310e9"> 154</a></span>&#160; <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> <a class="code" href="classripple_1_1LedgerHistory.html#a8413110326cba685ff8cdb908ff310e9">j_</a>;</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;};</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;} <span class="comment">// namespace ripple</span></div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; </div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassripple_1_1Application_html"><div class="ttname"><a href="classripple_1_1Application.html">ripple::Application</a></div><div class="ttdef"><b>Definition:</b> <a href="Application_8h_source.html#l00115">Application.h:115</a></div></div>
<div class="ttc" id="aclassripple_1_1TaggedCache_html_a5a2f1176e41e598872fc1ab375e74441"><div class="ttname"><a href="classripple_1_1TaggedCache.html#a5a2f1176e41e598872fc1ab375e74441">ripple::TaggedCache::sweep</a></div><div class="ttdeci">void sweep()</div><div class="ttdef"><b>Definition:</b> <a href="TaggedCache_8h_source.html#l00200">TaggedCache.h:200</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&lt; Collector &gt;</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a8a5ccffa6c8b9c83d07f608b37a20899"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a8a5ccffa6c8b9c83d07f608b37a20899">ripple::LedgerHistory::handleMismatch</a></div><div class="ttdeci">void handleMismatch(LedgerHash const &amp;built, LedgerHash const &amp;valid, std::optional&lt; uint256 &gt; const &amp;builtConsensusHash, std::optional&lt; uint256 &gt; const &amp;validatedConsensusHash, Json::Value const &amp;consensus)</div><div class="ttdoc">Log details in the case where we build one ledger but validate a different one.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8cpp_source.html#l00323">LedgerHistory.cpp:323</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a8a5ccffa6c8b9c83d07f608b37a20899"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a8a5ccffa6c8b9c83d07f608b37a20899">ripple::LedgerHistory::handleMismatch</a></div><div class="ttdeci">void handleMismatch(LedgerHash const &amp;built, LedgerHash const &amp;valid, std::optional&lt; uint256 &gt; const &amp;builtConsensusHash, std::optional&lt; uint256 &gt; const &amp;validatedConsensusHash, Json::Value const &amp;consensus)</div><div class="ttdoc">Log details in the case where we build one ledger but validate a different one.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8cpp_source.html#l00315">LedgerHistory.cpp:315</a></div></div>
<div class="ttc" id="aclassripple_1_1TaggedCache_html"><div class="ttname"><a href="classripple_1_1TaggedCache.html">ripple::TaggedCache&lt; LedgerHash, Ledger const &gt;</a></div></div>
<div class="ttc" id="aclassbeast_1_1insight_1_1Counter_html"><div class="ttname"><a href="classbeast_1_1insight_1_1Counter.html">beast::insight::Counter</a></div><div class="ttdoc">A metric for measuring an integral value.</div><div class="ttdef"><b>Definition:</b> <a href="Counter_8h_source.html#l00038">Counter.h:38</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_ae03adeae0930b7092edb4139cc7d0330"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#ae03adeae0930b7092edb4139cc7d0330">ripple::LedgerHistory::fixIndex</a></div><div class="ttdeci">bool fixIndex(LedgerIndex ledgerIndex, LedgerHash const &amp;ledgerHash)</div><div class="ttdoc">Repair a hash to index mapping.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8cpp_source.html#l00513">LedgerHistory.cpp:513</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a4fc23d794f5afd08ae10d9406f2874f8"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a4fc23d794f5afd08ae10d9406f2874f8">ripple::LedgerHistory::mLedgersByIndex</a></div><div class="ttdeci">std::map&lt; LedgerIndex, LedgerHash &gt; mLedgersByIndex</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00159">LedgerHistory.h:159</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a8413110326cba685ff8cdb908ff310e9"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a8413110326cba685ff8cdb908ff310e9">ripple::LedgerHistory::j_</a></div><div class="ttdeci">beast::Journal j_</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00161">LedgerHistory.h:161</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_1LedgerHistory_html_ae8f38e5e1ec9f36261c3efa670eb2b85"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#ae8f38e5e1ec9f36261c3efa670eb2b85">ripple::LedgerHistory::tune</a></div><div class="ttdeci">void tune(int size, std::chrono::seconds age)</div><div class="ttdoc">Set the history cache's parameters.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8cpp_source.html#l00527">LedgerHistory.cpp:527</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_ae03adeae0930b7092edb4139cc7d0330"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#ae03adeae0930b7092edb4139cc7d0330">ripple::LedgerHistory::fixIndex</a></div><div class="ttdeci">bool fixIndex(LedgerIndex ledgerIndex, LedgerHash const &amp;ledgerHash)</div><div class="ttdoc">Repair a hash to index mapping.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8cpp_source.html#l00505">LedgerHistory.cpp:505</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a4fc23d794f5afd08ae10d9406f2874f8"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a4fc23d794f5afd08ae10d9406f2874f8">ripple::LedgerHistory::mLedgersByIndex</a></div><div class="ttdeci">std::map&lt; LedgerIndex, LedgerHash &gt; mLedgersByIndex</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00152">LedgerHistory.h:152</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a8413110326cba685ff8cdb908ff310e9"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a8413110326cba685ff8cdb908ff310e9">ripple::LedgerHistory::j_</a></div><div class="ttdeci">beast::Journal j_</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00154">LedgerHistory.h:154</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html"><div class="ttname"><a href="classripple_1_1LedgerHistory.html">ripple::LedgerHistory</a></div><div class="ttdoc">Retains historical ledgers.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00036">LedgerHistory.h:36</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a5c3fbc509e1f5446d85176bac513e74c"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a5c3fbc509e1f5446d85176bac513e74c">ripple::LedgerHistory::sweep</a></div><div class="ttdeci">void sweep()</div><div class="ttdoc">Remove stale cache entries.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00083">LedgerHistory.h:83</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a8decf929ebaba3425836b33fc74d6be4"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a8decf929ebaba3425836b33fc74d6be4">ripple::LedgerHistory::getLedgerHash</a></div><div class="ttdeci">LedgerHash getLedgerHash(LedgerIndex ledgerIndex)</div><div class="ttdoc">Get a ledger's hash given its sequence number.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8cpp_source.html#l00080">LedgerHistory.cpp:80</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a5b22f0c89730a59843fa1840d9225d27"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a5b22f0c89730a59843fa1840d9225d27">ripple::LedgerHistory::builtLedger</a></div><div class="ttdeci">void builtLedger(std::shared_ptr&lt; Ledger const &gt; const &amp;, uint256 const &amp;consensusHash, Json::Value)</div><div class="ttdoc">Report that we have locally built a particular ledger.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8cpp_source.html#l00431">LedgerHistory.cpp:431</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a5c3fbc509e1f5446d85176bac513e74c"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a5c3fbc509e1f5446d85176bac513e74c">ripple::LedgerHistory::sweep</a></div><div class="ttdeci">void sweep()</div><div class="ttdoc">Remove stale cache entries.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00076">LedgerHistory.h:76</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a8decf929ebaba3425836b33fc74d6be4"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a8decf929ebaba3425836b33fc74d6be4">ripple::LedgerHistory::getLedgerHash</a></div><div class="ttdeci">LedgerHash getLedgerHash(LedgerIndex ledgerIndex)</div><div class="ttdoc">Get a ledger's hash given its sequence number.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8cpp_source.html#l00072">LedgerHistory.cpp:72</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a5b22f0c89730a59843fa1840d9225d27"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a5b22f0c89730a59843fa1840d9225d27">ripple::LedgerHistory::builtLedger</a></div><div class="ttdeci">void builtLedger(std::shared_ptr&lt; Ledger const &gt; const &amp;, uint256 const &amp;consensusHash, Json::Value)</div><div class="ttdoc">Report that we have locally built a particular ledger.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8cpp_source.html#l00423">LedgerHistory.cpp:423</a></div></div>
<div class="ttc" id="aclassripple_1_1TaggedCache_html_ae3695f9380d7cf36abe6384bc9b3e13b"><div class="ttname"><a href="classripple_1_1TaggedCache.html#ae3695f9380d7cf36abe6384bc9b3e13b">ripple::TaggedCache::getHitRate</a></div><div class="ttdeci">float getHitRate()</div><div class="ttdef"><b>Definition:</b> <a href="TaggedCache_8h_source.html#l00155">TaggedCache.h:155</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a7c71cafdd85eba74ab6e4436d9ec9037"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a7c71cafdd85eba74ab6e4436d9ec9037">ripple::LedgerHistory::m_consensus_validated</a></div><div class="ttdeci">ConsensusValidated m_consensus_validated</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00156">LedgerHistory.h:156</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a7c71cafdd85eba74ab6e4436d9ec9037"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a7c71cafdd85eba74ab6e4436d9ec9037">ripple::LedgerHistory::m_consensus_validated</a></div><div class="ttdeci">ConsensusValidated m_consensus_validated</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00149">LedgerHistory.h:149</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&lt; 256 &gt;</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a1148d79bd25d415e793e4d11f79836bf"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a1148d79bd25d415e793e4d11f79836bf">ripple::LedgerHistory::insert</a></div><div class="ttdeci">bool insert(std::shared_ptr&lt; Ledger const &gt; ledger, bool validated)</div><div class="ttdoc">Track a ledger.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8cpp_source.html#l00062">LedgerHistory.cpp:62</a></div></div>
<div class="ttc" id="astructripple_1_1LedgerHistory_1_1cv__entry_html_aaa092c4e79f060432060905fa219f330"><div class="ttname"><a href="structripple_1_1LedgerHistory_1_1cv__entry.html#aaa092c4e79f060432060905fa219f330">ripple::LedgerHistory::cv_entry::consensus</a></div><div class="ttdeci">std::optional&lt; Json::Value &gt; consensus</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00153">LedgerHistory.h:153</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a7514a7d4ed469f9a72004040fe243db4"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a7514a7d4ed469f9a72004040fe243db4">ripple::LedgerHistory::app_</a></div><div class="ttdeci">Application &amp; app_</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00132">LedgerHistory.h:132</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_aef350868af3be617b169eef8ab396827"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#aef350868af3be617b169eef8ab396827">ripple::LedgerHistory::getLedgerByHash</a></div><div class="ttdeci">std::shared_ptr&lt; Ledger const &gt; getLedgerByHash(LedgerHash const &amp;ledgerHash)</div><div class="ttdoc">Retrieve a ledger given its hash.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8cpp_source.html#l00125">LedgerHistory.cpp:125</a></div></div>
<div class="ttc" id="astructripple_1_1LedgerHistory_1_1cv__entry_html_ac0bfc50bf3098eb63ee0395a95cce397"><div class="ttname"><a href="structripple_1_1LedgerHistory_1_1cv__entry.html#ac0bfc50bf3098eb63ee0395a95cce397">ripple::LedgerHistory::cv_entry::validated</a></div><div class="ttdeci">std::optional&lt; LedgerHash &gt; validated</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00147">LedgerHistory.h:147</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_aa4ab3f74729e78f0a67177555e159671"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#aa4ab3f74729e78f0a67177555e159671">ripple::LedgerHistory::collector_</a></div><div class="ttdeci">beast::insight::Collector::ptr collector_</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00133">LedgerHistory.h:133</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_ae3a7cdee19a26b3859e86b02e2cc3742"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#ae3a7cdee19a26b3859e86b02e2cc3742">ripple::LedgerHistory::validatedLedger</a></div><div class="ttdeci">void validatedLedger(std::shared_ptr&lt; Ledger const &gt; const &amp;, std::optional&lt; uint256 &gt; const &amp;consensusHash)</div><div class="ttdoc">Report that we have validated a particular ledger.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8cpp_source.html#l00472">LedgerHistory.cpp:472</a></div></div>
<div class="ttc" id="astructripple_1_1LedgerHistory_1_1cv__entry_html_a8b472a2cf7e84430d9ce01dce209cb56"><div class="ttname"><a href="structripple_1_1LedgerHistory_1_1cv__entry.html#a8b472a2cf7e84430d9ce01dce209cb56">ripple::LedgerHistory::cv_entry::built</a></div><div class="ttdeci">std::optional&lt; LedgerHash &gt; built</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00145">LedgerHistory.h:145</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a1148d79bd25d415e793e4d11f79836bf"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a1148d79bd25d415e793e4d11f79836bf">ripple::LedgerHistory::insert</a></div><div class="ttdeci">bool insert(std::shared_ptr&lt; Ledger const &gt; ledger, bool validated)</div><div class="ttdoc">Track a ledger.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8cpp_source.html#l00054">LedgerHistory.cpp:54</a></div></div>
<div class="ttc" id="astructripple_1_1LedgerHistory_1_1cv__entry_html_aaa092c4e79f060432060905fa219f330"><div class="ttname"><a href="structripple_1_1LedgerHistory_1_1cv__entry.html#aaa092c4e79f060432060905fa219f330">ripple::LedgerHistory::cv_entry::consensus</a></div><div class="ttdeci">std::optional&lt; Json::Value &gt; consensus</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00146">LedgerHistory.h:146</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a7514a7d4ed469f9a72004040fe243db4"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a7514a7d4ed469f9a72004040fe243db4">ripple::LedgerHistory::app_</a></div><div class="ttdeci">Application &amp; app_</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00125">LedgerHistory.h:125</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_aef350868af3be617b169eef8ab396827"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#aef350868af3be617b169eef8ab396827">ripple::LedgerHistory::getLedgerByHash</a></div><div class="ttdeci">std::shared_ptr&lt; Ledger const &gt; getLedgerByHash(LedgerHash const &amp;ledgerHash)</div><div class="ttdoc">Retrieve a ledger given its hash.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8cpp_source.html#l00117">LedgerHistory.cpp:117</a></div></div>
<div class="ttc" id="astructripple_1_1LedgerHistory_1_1cv__entry_html_ac0bfc50bf3098eb63ee0395a95cce397"><div class="ttname"><a href="structripple_1_1LedgerHistory_1_1cv__entry.html#ac0bfc50bf3098eb63ee0395a95cce397">ripple::LedgerHistory::cv_entry::validated</a></div><div class="ttdeci">std::optional&lt; LedgerHash &gt; validated</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00140">LedgerHistory.h:140</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_aa4ab3f74729e78f0a67177555e159671"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#aa4ab3f74729e78f0a67177555e159671">ripple::LedgerHistory::collector_</a></div><div class="ttdeci">beast::insight::Collector::ptr collector_</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00126">LedgerHistory.h:126</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_ae3a7cdee19a26b3859e86b02e2cc3742"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#ae3a7cdee19a26b3859e86b02e2cc3742">ripple::LedgerHistory::validatedLedger</a></div><div class="ttdeci">void validatedLedger(std::shared_ptr&lt; Ledger const &gt; const &amp;, std::optional&lt; uint256 &gt; const &amp;consensusHash)</div><div class="ttdoc">Report that we have validated a particular ledger.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8cpp_source.html#l00464">LedgerHistory.cpp:464</a></div></div>
<div class="ttc" id="astructripple_1_1LedgerHistory_1_1cv__entry_html_a8b472a2cf7e84430d9ce01dce209cb56"><div class="ttname"><a href="structripple_1_1LedgerHistory_1_1cv__entry.html#a8b472a2cf7e84430d9ce01dce209cb56">ripple::LedgerHistory::cv_entry::built</a></div><div class="ttdeci">std::optional&lt; LedgerHash &gt; built</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00138">LedgerHistory.h:138</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="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_1LedgerHistory_html_a25476afb16a118d37c17490273a0f24b"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a25476afb16a118d37c17490273a0f24b">ripple::LedgerHistory::getLedgerBySeq</a></div><div class="ttdeci">std::shared_ptr&lt; Ledger const &gt; getLedgerBySeq(LedgerIndex ledgerIndex)</div><div class="ttdoc">Get a ledger given its sequence number.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8cpp_source.html#l00092">LedgerHistory.cpp:92</a></div></div>
<div class="ttc" id="astructripple_1_1LedgerHistory_1_1cv__entry_html_aa6a49831bf517108f9e6aa7cb89fc646"><div class="ttname"><a href="structripple_1_1LedgerHistory_1_1cv__entry.html#aa6a49831bf517108f9e6aa7cb89fc646">ripple::LedgerHistory::cv_entry::validatedConsensusHash</a></div><div class="ttdeci">std::optional&lt; uint256 &gt; validatedConsensusHash</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00151">LedgerHistory.h:151</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a25476afb16a118d37c17490273a0f24b"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a25476afb16a118d37c17490273a0f24b">ripple::LedgerHistory::getLedgerBySeq</a></div><div class="ttdeci">std::shared_ptr&lt; Ledger const &gt; getLedgerBySeq(LedgerIndex ledgerIndex)</div><div class="ttdoc">Get a ledger given its sequence number.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8cpp_source.html#l00084">LedgerHistory.cpp:84</a></div></div>
<div class="ttc" id="astructripple_1_1LedgerHistory_1_1cv__entry_html_aa6a49831bf517108f9e6aa7cb89fc646"><div class="ttname"><a href="structripple_1_1LedgerHistory_1_1cv__entry.html#aa6a49831bf517108f9e6aa7cb89fc646">ripple::LedgerHistory::cv_entry::validatedConsensusHash</a></div><div class="ttdeci">std::optional&lt; uint256 &gt; validatedConsensusHash</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00144">LedgerHistory.h:144</a></div></div>
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a507bb40b5649985141e3dcbf57bd481d"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a507bb40b5649985141e3dcbf57bd481d">ripple::LedgerHistory::getCacheHitRate</a></div><div class="ttdeci">float getCacheHitRate()</div><div class="ttdoc">Get the ledgers_by_hash cache hit rate.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00053">LedgerHistory.h:53</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a9d3e04a8d477455a9da28022915bad81"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a9d3e04a8d477455a9da28022915bad81">ripple::LedgerHistory::clearLedgerCachePrior</a></div><div class="ttdeci">void clearLedgerCachePrior(LedgerIndex seq)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8cpp_source.html#l00534">LedgerHistory.cpp:534</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a9d3e04a8d477455a9da28022915bad81"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a9d3e04a8d477455a9da28022915bad81">ripple::LedgerHistory::clearLedgerCachePrior</a></div><div class="ttdeci">void clearLedgerCachePrior(LedgerIndex seq)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8cpp_source.html#l00519">LedgerHistory.cpp:519</a></div></div>
<div class="ttc" id="aoptional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/optional.html">optional</a></div></div>
<div class="ttc" id="astructripple_1_1LedgerHistory_1_1cv__entry_html_abd60e88598204536623c867e11136ac9"><div class="ttname"><a href="structripple_1_1LedgerHistory_1_1cv__entry.html#abd60e88598204536623c867e11136ac9">ripple::LedgerHistory::cv_entry::builtConsensusHash</a></div><div class="ttdeci">std::optional&lt; uint256 &gt; builtConsensusHash</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00149">LedgerHistory.h:149</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_ada81f3494202a6c8473ba4f17c12d91f"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#ada81f3494202a6c8473ba4f17c12d91f">ripple::LedgerHistory::mismatch_counter_</a></div><div class="ttdeci">beast::insight::Counter mismatch_counter_</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00134">LedgerHistory.h:134</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a38f560ae8e28cf743665f2151b2826a9"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a38f560ae8e28cf743665f2151b2826a9">ripple::LedgerHistory::LedgerHistory</a></div><div class="ttdeci">LedgerHistory(beast::insight::Collector::ptr const &amp;collector, Application &amp;app)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8cpp_source.html#l00039">LedgerHistory.cpp:39</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a6ad42489964a9f9b01df435e391bcfd2"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a6ad42489964a9f9b01df435e391bcfd2">ripple::LedgerHistory::m_ledgers_by_hash</a></div><div class="ttdeci">LedgersByHash m_ledgers_by_hash</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00138">LedgerHistory.h:138</a></div></div>
<div class="ttc" id="astructripple_1_1LedgerHistory_1_1cv__entry_html_abd60e88598204536623c867e11136ac9"><div class="ttname"><a href="structripple_1_1LedgerHistory_1_1cv__entry.html#abd60e88598204536623c867e11136ac9">ripple::LedgerHistory::cv_entry::builtConsensusHash</a></div><div class="ttdeci">std::optional&lt; uint256 &gt; builtConsensusHash</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00142">LedgerHistory.h:142</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_ada81f3494202a6c8473ba4f17c12d91f"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#ada81f3494202a6c8473ba4f17c12d91f">ripple::LedgerHistory::mismatch_counter_</a></div><div class="ttdeci">beast::insight::Counter mismatch_counter_</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00127">LedgerHistory.h:127</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a38f560ae8e28cf743665f2151b2826a9"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a38f560ae8e28cf743665f2151b2826a9">ripple::LedgerHistory::LedgerHistory</a></div><div class="ttdeci">LedgerHistory(beast::insight::Collector::ptr const &amp;collector, Application &amp;app)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8cpp_source.html#l00031">LedgerHistory.cpp:31</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerHistory_html_a6ad42489964a9f9b01df435e391bcfd2"><div class="ttname"><a href="classripple_1_1LedgerHistory.html#a6ad42489964a9f9b01df435e391bcfd2">ripple::LedgerHistory::m_ledgers_by_hash</a></div><div class="ttdeci">LedgersByHash m_ledgers_by_hash</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00131">LedgerHistory.h:131</a></div></div>
<div class="ttc" id="aclassJson_1_1Value_html"><div class="ttname"><a href="classJson_1_1Value.html">Json::Value</a></div><div class="ttdoc">Represents a JSON value.</div><div class="ttdef"><b>Definition:</b> <a href="json__value_8h_source.html#l00145">json_value.h:145</a></div></div>
<div class="ttc" id="astructripple_1_1LedgerHistory_1_1cv__entry_html"><div class="ttname"><a href="structripple_1_1LedgerHistory_1_1cv__entry.html">ripple::LedgerHistory::cv_entry</a></div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00142">LedgerHistory.h:142</a></div></div>
<div class="ttc" id="astructripple_1_1LedgerHistory_1_1cv__entry_html"><div class="ttname"><a href="structripple_1_1LedgerHistory_1_1cv__entry.html">ripple::LedgerHistory::cv_entry</a></div><div class="ttdef"><b>Definition:</b> <a href="LedgerHistory_8h_source.html#l00135">LedgerHistory.h:135</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">