Files
rippled/classripple_1_1LedgerHistory.html
2025-01-21 19:58:08 +00:00

817 lines
51 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: ripple::LedgerHistory Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">rippled
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceripple.html">ripple</a></li><li class="navelem"><a class="el" href="classripple_1_1LedgerHistory.html">LedgerHistory</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-types">Private Types</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classripple_1_1LedgerHistory-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">ripple::LedgerHistory Class Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Retains historical ledgers.
<a href="classripple_1_1LedgerHistory.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="LedgerHistory_8h_source.html">LedgerHistory.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for ripple::LedgerHistory:</div>
<div class="dyncontent">
<div class="center"><img src="classripple_1_1LedgerHistory__coll__graph.png" border="0" usemap="#aripple_1_1LedgerHistory_coll__map" alt="Collaboration graph"/></div>
<map name="aripple_1_1LedgerHistory_coll__map" id="aripple_1_1LedgerHistory_coll__map">
<area shape="rect" title="Retains historical ledgers." alt="" coords="2117,347,2276,372"/>
<area shape="rect" href="classripple_1_1Application.html" title=" " alt="" coords="1763,292,1903,317"/>
<area shape="rect" href="classbeast_1_1PropertyStream_1_1Source.html" title="Subclasses can be called to write to a stream and have children." alt="" coords="1431,158,1599,198"/>
<area shape="rect" href="classbeast_1_1PropertyStream_1_1Item.html" title=" " alt="" coords="1749,189,1917,229"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/string/basic_string.html" title=" " alt="" coords="1157,209,1244,235"/>
<area shape="rect" href="classripple_1_1TaggedCache.html" title=" " alt="" coords="1432,332,1599,387"/>
<area shape="rect" href="classripple_1_1TaggedCache.html" title=" " alt="" coords="1417,521,1613,561"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/string/basic_string.html" title=" " alt="" coords="810,202,949,242"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/thread/recursive_mutex.html" title=" " alt="" coords="1121,259,1280,284"/>
<area shape="rect" title=" " alt="" coords="1442,240,1589,265"/>
<area shape="rect" href="classbeast_1_1List.html" title=" " alt="" coords="1108,98,1293,138"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/types/size_t.html" title=" " alt="" coords="835,488,923,513"/>
<area shape="rect" href="structripple_1_1TaggedCache_1_1Stats.html" title=" " alt="" coords="1113,361,1289,430"/>
<area shape="rect" href="classripple_1_1partitioned__unordered__map.html" title=" " alt="" coords="1113,457,1288,541"/>
<area shape="rect" href="classripple_1_1partitioned__unordered__map.html" title=" " alt="" coords="1113,721,1288,805"/>
<area shape="rect" href="classripple_1_1base__uint.html" title="Integers of any length that is a multiple of 32&#45;bits." alt="" coords="1445,946,1586,986"/>
<area shape="rect" href="classbeast_1_1detail_1_1ListNode.html" title=" " alt="" coords="788,91,971,145"/>
<area shape="rect" href="classbeast_1_1detail_1_1ListNode.html" title=" " alt="" coords="508,98,676,138"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html" title=" " alt="" coords="1729,25,1936,51"/>
<area shape="rect" href="classbeast_1_1insight_1_1Collector.html" title="Interface for a manager that allows collection of metrics." alt="" coords="1427,5,1603,31"/>
<area shape="rect" href="classbeast_1_1insight_1_1Counter.html" title="A metric for measuring an integral value." alt="" coords="1748,108,1917,133"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html" title=" " alt="" coords="1427,55,1604,95"/>
<area shape="rect" href="classbeast_1_1insight_1_1CounterImpl.html" title=" " alt="" coords="1101,29,1300,55"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/memory/enable_shared_from_this.html" title=" " alt="" coords="779,22,980,62"/>
<area shape="rect" href="classbeast_1_1Journal.html" title="A generic endpoint for log messages." alt="" coords="1145,829,1256,855"/>
<area shape="rect" href="classbeast_1_1Journal_1_1Sink.html" title="Abstraction for the underlying message destination." alt="" coords="806,924,953,949"/>
<area shape="rect" href="classbeast_1_1abstract__clock.html" title="Abstract interface to a clock." alt="" coords="1121,566,1281,606"/>
<area shape="rect" href="classbeast_1_1insight_1_1Hook.html" title="A reference to a handler for performing polled collection." alt="" coords="803,320,955,345"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html" title=" " alt="" coords="507,313,677,353"/>
<area shape="rect" href="classbeast_1_1insight_1_1HookImpl.html" title=" " alt="" coords="251,320,432,345"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/memory/enable_shared_from_this.html" title=" " alt="" coords="9,313,193,353"/>
<area shape="rect" href="classbeast_1_1insight_1_1Gauge.html" title="A metric for measuring an integral value." alt="" coords="799,384,959,409"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html" title=" " alt="" coords="507,377,677,417"/>
<area shape="rect" href="classbeast_1_1insight_1_1GaugeImpl.html" title=" " alt="" coords="247,384,436,409"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/memory/enable_shared_from_this.html" title=" " alt="" coords="5,377,197,417"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/vector.html" title=" " alt="" coords="786,728,973,753"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/types/integer.html" title=" " alt="" coords="1149,652,1252,677"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/map.html" title=" " alt="" coords="1750,946,1915,986"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/types/integer.html" title=" " alt="" coords="828,993,931,1019"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/array.html" title=" " alt="" coords="1117,957,1285,997"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structripple_1_1LedgerHistory_1_1cv__entry.html">cv_entry</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a38f560ae8e28cf743665f2151b2826a9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerHistory.html#a38f560ae8e28cf743665f2151b2826a9">LedgerHistory</a> (<a class="el" href="classbeast_1_1insight_1_1Collector.html#ad1677ecd39a09b6a8bb8f2e073266bc4">beast::insight::Collector::ptr</a> const &amp;collector, <a class="el" href="classripple_1_1Application.html">Application</a> &amp;app)</td></tr>
<tr class="separator:a38f560ae8e28cf743665f2151b2826a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adaa8295b513d8c306f074cc9ca7755d0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerHistory.html#adaa8295b513d8c306f074cc9ca7755d0">insert</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1Ledger.html">Ledger</a> const &gt; const &amp;ledger, bool validated)</td></tr>
<tr class="memdesc:adaa8295b513d8c306f074cc9ca7755d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Track a ledger. <a href="classripple_1_1LedgerHistory.html#adaa8295b513d8c306f074cc9ca7755d0">More...</a><br /></td></tr>
<tr class="separator:adaa8295b513d8c306f074cc9ca7755d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a507bb40b5649985141e3dcbf57bd481d"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerHistory.html#a507bb40b5649985141e3dcbf57bd481d">getCacheHitRate</a> ()</td></tr>
<tr class="memdesc:a507bb40b5649985141e3dcbf57bd481d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the ledgers_by_hash cache hit rate. <a href="classripple_1_1LedgerHistory.html#a507bb40b5649985141e3dcbf57bd481d">More...</a><br /></td></tr>
<tr class="separator:a507bb40b5649985141e3dcbf57bd481d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad227291e26551b873ff494a27734a9d8"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1Ledger.html">Ledger</a> const &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerHistory.html#ad227291e26551b873ff494a27734a9d8">getLedgerBySeq</a> (<a class="el" href="namespaceripple.html#a12af8e98b794e8ee3b4dbecaed2a4efd">LedgerIndex</a> ledgerIndex)</td></tr>
<tr class="memdesc:ad227291e26551b873ff494a27734a9d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a ledger given its sequence number. <a href="classripple_1_1LedgerHistory.html#ad227291e26551b873ff494a27734a9d8">More...</a><br /></td></tr>
<tr class="separator:ad227291e26551b873ff494a27734a9d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1b5ae23538f3db1815018c0f185f19f"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1Ledger.html">Ledger</a> const &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerHistory.html#af1b5ae23538f3db1815018c0f185f19f">getLedgerByHash</a> (<a class="el" href="namespaceripple.html#af5a72d3e0d9b6913c13f688390b90796">LedgerHash</a> const &amp;ledgerHash)</td></tr>
<tr class="memdesc:af1b5ae23538f3db1815018c0f185f19f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve a ledger given its hash. <a href="classripple_1_1LedgerHistory.html#af1b5ae23538f3db1815018c0f185f19f">More...</a><br /></td></tr>
<tr class="separator:af1b5ae23538f3db1815018c0f185f19f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8decf929ebaba3425836b33fc74d6be4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceripple.html#af5a72d3e0d9b6913c13f688390b90796">LedgerHash</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerHistory.html#a8decf929ebaba3425836b33fc74d6be4">getLedgerHash</a> (<a class="el" href="namespaceripple.html#a12af8e98b794e8ee3b4dbecaed2a4efd">LedgerIndex</a> ledgerIndex)</td></tr>
<tr class="memdesc:a8decf929ebaba3425836b33fc74d6be4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a ledger's hash given its sequence number. <a href="classripple_1_1LedgerHistory.html#a8decf929ebaba3425836b33fc74d6be4">More...</a><br /></td></tr>
<tr class="separator:a8decf929ebaba3425836b33fc74d6be4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c3fbc509e1f5446d85176bac513e74c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerHistory.html#a5c3fbc509e1f5446d85176bac513e74c">sweep</a> ()</td></tr>
<tr class="memdesc:a5c3fbc509e1f5446d85176bac513e74c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove stale cache entries. <a href="classripple_1_1LedgerHistory.html#a5c3fbc509e1f5446d85176bac513e74c">More...</a><br /></td></tr>
<tr class="separator:a5c3fbc509e1f5446d85176bac513e74c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b22f0c89730a59843fa1840d9225d27"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerHistory.html#a5b22f0c89730a59843fa1840d9225d27">builtLedger</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1Ledger.html">Ledger</a> const &gt; const &amp;, <a class="el" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a> const &amp;consensusHash, <a class="el" href="classJson_1_1Value.html">Json::Value</a>)</td></tr>
<tr class="memdesc:a5b22f0c89730a59843fa1840d9225d27"><td class="mdescLeft">&#160;</td><td class="mdescRight">Report that we have locally built a particular ledger. <a href="classripple_1_1LedgerHistory.html#a5b22f0c89730a59843fa1840d9225d27">More...</a><br /></td></tr>
<tr class="separator:a5b22f0c89730a59843fa1840d9225d27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3a7cdee19a26b3859e86b02e2cc3742"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerHistory.html#ae3a7cdee19a26b3859e86b02e2cc3742">validatedLedger</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1Ledger.html">Ledger</a> const &gt; const &amp;, <a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>&lt; <a class="el" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a> &gt; const &amp;consensusHash)</td></tr>
<tr class="memdesc:ae3a7cdee19a26b3859e86b02e2cc3742"><td class="mdescLeft">&#160;</td><td class="mdescRight">Report that we have validated a particular ledger. <a href="classripple_1_1LedgerHistory.html#ae3a7cdee19a26b3859e86b02e2cc3742">More...</a><br /></td></tr>
<tr class="separator:ae3a7cdee19a26b3859e86b02e2cc3742"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae03adeae0930b7092edb4139cc7d0330"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerHistory.html#ae03adeae0930b7092edb4139cc7d0330">fixIndex</a> (<a class="el" href="namespaceripple.html#a12af8e98b794e8ee3b4dbecaed2a4efd">LedgerIndex</a> ledgerIndex, <a class="el" href="namespaceripple.html#af5a72d3e0d9b6913c13f688390b90796">LedgerHash</a> const &amp;ledgerHash)</td></tr>
<tr class="memdesc:ae03adeae0930b7092edb4139cc7d0330"><td class="mdescLeft">&#160;</td><td class="mdescRight">Repair a hash to index mapping. <a href="classripple_1_1LedgerHistory.html#ae03adeae0930b7092edb4139cc7d0330">More...</a><br /></td></tr>
<tr class="separator:ae03adeae0930b7092edb4139cc7d0330"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d3e04a8d477455a9da28022915bad81"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerHistory.html#a9d3e04a8d477455a9da28022915bad81">clearLedgerCachePrior</a> (<a class="el" href="namespaceripple.html#a12af8e98b794e8ee3b4dbecaed2a4efd">LedgerIndex</a> seq)</td></tr>
<tr class="separator:a9d3e04a8d477455a9da28022915bad81"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-types" name="pri-types"></a>
Private Types</h2></td></tr>
<tr class="memitem:a1e34d9ee13455de3ea2f919c202a1e1e"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerHistory.html#a1e34d9ee13455de3ea2f919c202a1e1e">LedgersByHash</a> = <a class="el" href="classripple_1_1TaggedCache.html">TaggedCache</a>&lt; <a class="el" href="namespaceripple.html#af5a72d3e0d9b6913c13f688390b90796">LedgerHash</a>, <a class="el" href="classripple_1_1Ledger.html">Ledger</a> const &gt;</td></tr>
<tr class="separator:a1e34d9ee13455de3ea2f919c202a1e1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4893ecfd7e45a96ca0b7ddd241edeba8"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerHistory.html#a4893ecfd7e45a96ca0b7ddd241edeba8">ConsensusValidated</a> = <a class="el" href="classripple_1_1TaggedCache.html">TaggedCache</a>&lt; <a class="el" href="namespaceripple.html#a12af8e98b794e8ee3b4dbecaed2a4efd">LedgerIndex</a>, <a class="el" href="structripple_1_1LedgerHistory_1_1cv__entry.html">cv_entry</a> &gt;</td></tr>
<tr class="separator:a4893ecfd7e45a96ca0b7ddd241edeba8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-methods" name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a8a5ccffa6c8b9c83d07f608b37a20899"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerHistory.html#a8a5ccffa6c8b9c83d07f608b37a20899">handleMismatch</a> (<a class="el" href="namespaceripple.html#af5a72d3e0d9b6913c13f688390b90796">LedgerHash</a> const &amp;built, <a class="el" href="namespaceripple.html#af5a72d3e0d9b6913c13f688390b90796">LedgerHash</a> const &amp;<a class="el" href="namespaceripple_1_1credentials.html#abd2ed437891b9bd542d2afc3f5f4bc58">valid</a>, <a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>&lt; <a class="el" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a> &gt; const &amp;builtConsensusHash, <a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>&lt; <a class="el" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a> &gt; const &amp;validatedConsensusHash, <a class="el" href="classJson_1_1Value.html">Json::Value</a> const &amp;consensus)</td></tr>
<tr class="memdesc:a8a5ccffa6c8b9c83d07f608b37a20899"><td class="mdescLeft">&#160;</td><td class="mdescRight">Log details in the case where we build one ledger but validate a different one. <a href="classripple_1_1LedgerHistory.html#a8a5ccffa6c8b9c83d07f608b37a20899">More...</a><br /></td></tr>
<tr class="separator:a8a5ccffa6c8b9c83d07f608b37a20899"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a7514a7d4ed469f9a72004040fe243db4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classripple_1_1Application.html">Application</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerHistory.html#a7514a7d4ed469f9a72004040fe243db4">app_</a></td></tr>
<tr class="separator:a7514a7d4ed469f9a72004040fe243db4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4ab3f74729e78f0a67177555e159671"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1insight_1_1Collector.html#ad1677ecd39a09b6a8bb8f2e073266bc4">beast::insight::Collector::ptr</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerHistory.html#aa4ab3f74729e78f0a67177555e159671">collector_</a></td></tr>
<tr class="separator:aa4ab3f74729e78f0a67177555e159671"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada81f3494202a6c8473ba4f17c12d91f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1insight_1_1Counter.html">beast::insight::Counter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerHistory.html#ada81f3494202a6c8473ba4f17c12d91f">mismatch_counter_</a></td></tr>
<tr class="separator:ada81f3494202a6c8473ba4f17c12d91f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ad42489964a9f9b01df435e391bcfd2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classripple_1_1LedgerHistory.html#a1e34d9ee13455de3ea2f919c202a1e1e">LedgersByHash</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerHistory.html#a6ad42489964a9f9b01df435e391bcfd2">m_ledgers_by_hash</a></td></tr>
<tr class="separator:a6ad42489964a9f9b01df435e391bcfd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c71cafdd85eba74ab6e4436d9ec9037"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classripple_1_1LedgerHistory.html#a4893ecfd7e45a96ca0b7ddd241edeba8">ConsensusValidated</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerHistory.html#a7c71cafdd85eba74ab6e4436d9ec9037">m_consensus_validated</a></td></tr>
<tr class="separator:a7c71cafdd85eba74ab6e4436d9ec9037"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4fc23d794f5afd08ae10d9406f2874f8"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map</a>&lt; <a class="el" href="namespaceripple.html#a12af8e98b794e8ee3b4dbecaed2a4efd">LedgerIndex</a>, <a class="el" href="namespaceripple.html#af5a72d3e0d9b6913c13f688390b90796">LedgerHash</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerHistory.html#a4fc23d794f5afd08ae10d9406f2874f8">mLedgersByIndex</a></td></tr>
<tr class="separator:a4fc23d794f5afd08ae10d9406f2874f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8413110326cba685ff8cdb908ff310e9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1Journal.html">beast::Journal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerHistory.html#a8413110326cba685ff8cdb908ff310e9">j_</a></td></tr>
<tr class="separator:a8413110326cba685ff8cdb908ff310e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Retains historical ledgers. </p>
<p class="definition">Definition at line <a class="el" href="LedgerHistory_8h_source.html#l00036">36</a> of file <a class="el" href="LedgerHistory_8h_source.html">LedgerHistory.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a1e34d9ee13455de3ea2f919c202a1e1e" name="a1e34d9ee13455de3ea2f919c202a1e1e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e34d9ee13455de3ea2f919c202a1e1e">&#9670;&#160;</a></span>LedgersByHash</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="classripple_1_1LedgerHistory.html#a1e34d9ee13455de3ea2f919c202a1e1e">ripple::LedgerHistory::LedgersByHash</a> = <a class="el" href="classripple_1_1TaggedCache.html">TaggedCache</a>&lt;<a class="el" href="namespaceripple.html#af5a72d3e0d9b6913c13f688390b90796">LedgerHash</a>, <a class="el" href="classripple_1_1Ledger.html">Ledger</a> const&gt;</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerHistory_8h_source.html#l00129">129</a> of file <a class="el" href="LedgerHistory_8h_source.html">LedgerHistory.h</a>.</p>
</div>
</div>
<a id="a4893ecfd7e45a96ca0b7ddd241edeba8" name="a4893ecfd7e45a96ca0b7ddd241edeba8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4893ecfd7e45a96ca0b7ddd241edeba8">&#9670;&#160;</a></span>ConsensusValidated</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="classripple_1_1LedgerHistory.html#a4893ecfd7e45a96ca0b7ddd241edeba8">ripple::LedgerHistory::ConsensusValidated</a> = <a class="el" href="classripple_1_1TaggedCache.html">TaggedCache</a>&lt;<a class="el" href="namespaceripple.html#a12af8e98b794e8ee3b4dbecaed2a4efd">LedgerIndex</a>, <a class="el" href="structripple_1_1LedgerHistory_1_1cv__entry.html">cv_entry</a>&gt;</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerHistory_8h_source.html#l00148">148</a> of file <a class="el" href="LedgerHistory_8h_source.html">LedgerHistory.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a38f560ae8e28cf743665f2151b2826a9" name="a38f560ae8e28cf743665f2151b2826a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38f560ae8e28cf743665f2151b2826a9">&#9670;&#160;</a></span>LedgerHistory()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ripple::LedgerHistory::LedgerHistory </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classbeast_1_1insight_1_1Collector.html#ad1677ecd39a09b6a8bb8f2e073266bc4">beast::insight::Collector::ptr</a> const &amp;&#160;</td>
<td class="paramname"><em>collector</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classripple_1_1Application.html">Application</a> &amp;&#160;</td>
<td class="paramname"><em>app</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerHistory_8cpp_source.html#l00031">31</a> of file <a class="el" href="LedgerHistory_8cpp_source.html">LedgerHistory.cpp</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="adaa8295b513d8c306f074cc9ca7755d0" name="adaa8295b513d8c306f074cc9ca7755d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adaa8295b513d8c306f074cc9ca7755d0">&#9670;&#160;</a></span>insert()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool ripple::LedgerHistory::insert </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1Ledger.html">Ledger</a> const &gt; const &amp;&#160;</td>
<td class="paramname"><em>ledger</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>validated</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Track a ledger. </p>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if the ledger was already tracked </dd></dl>
<p class="definition">Definition at line <a class="el" href="LedgerHistory_8cpp_source.html#l00054">54</a> of file <a class="el" href="LedgerHistory_8cpp_source.html">LedgerHistory.cpp</a>.</p>
</div>
</div>
<a id="a507bb40b5649985141e3dcbf57bd481d" name="a507bb40b5649985141e3dcbf57bd481d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a507bb40b5649985141e3dcbf57bd481d">&#9670;&#160;</a></span>getCacheHitRate()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float ripple::LedgerHistory::getCacheHitRate </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the ledgers_by_hash cache hit rate. </p>
<dl class="section return"><dt>Returns</dt><dd>the hit rate </dd></dl>
<p class="definition">Definition at line <a class="el" href="LedgerHistory_8h_source.html#l00053">53</a> of file <a class="el" href="LedgerHistory_8h_source.html">LedgerHistory.h</a>.</p>
</div>
</div>
<a id="ad227291e26551b873ff494a27734a9d8" name="ad227291e26551b873ff494a27734a9d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad227291e26551b873ff494a27734a9d8">&#9670;&#160;</a></span>getLedgerBySeq()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1Ledger.html">Ledger</a> const &gt; ripple::LedgerHistory::getLedgerBySeq </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceripple.html#a12af8e98b794e8ee3b4dbecaed2a4efd">LedgerIndex</a>&#160;</td>
<td class="paramname"><em>ledgerIndex</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get a ledger given its sequence number. </p>
<p class="definition">Definition at line <a class="el" href="LedgerHistory_8cpp_source.html#l00085">85</a> of file <a class="el" href="LedgerHistory_8cpp_source.html">LedgerHistory.cpp</a>.</p>
</div>
</div>
<a id="af1b5ae23538f3db1815018c0f185f19f" name="af1b5ae23538f3db1815018c0f185f19f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1b5ae23538f3db1815018c0f185f19f">&#9670;&#160;</a></span>getLedgerByHash()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1Ledger.html">Ledger</a> const &gt; ripple::LedgerHistory::getLedgerByHash </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceripple.html#af5a72d3e0d9b6913c13f688390b90796">LedgerHash</a> const &amp;&#160;</td>
<td class="paramname"><em>ledgerHash</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieve a ledger given its hash. </p>
<p class="definition">Definition at line <a class="el" href="LedgerHistory_8cpp_source.html#l00122">122</a> of file <a class="el" href="LedgerHistory_8cpp_source.html">LedgerHistory.cpp</a>.</p>
</div>
</div>
<a id="a8decf929ebaba3425836b33fc74d6be4" name="a8decf929ebaba3425836b33fc74d6be4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8decf929ebaba3425836b33fc74d6be4">&#9670;&#160;</a></span>getLedgerHash()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceripple.html#af5a72d3e0d9b6913c13f688390b90796">LedgerHash</a> ripple::LedgerHistory::getLedgerHash </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceripple.html#a12af8e98b794e8ee3b4dbecaed2a4efd">LedgerIndex</a>&#160;</td>
<td class="paramname"><em>ledgerIndex</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get a ledger's hash given its sequence number. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ledgerIndex</td><td>The sequence number of the desired ledger </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The hash of the specified ledger </dd></dl>
<p class="definition">Definition at line <a class="el" href="LedgerHistory_8cpp_source.html#l00076">76</a> of file <a class="el" href="LedgerHistory_8cpp_source.html">LedgerHistory.cpp</a>.</p>
</div>
</div>
<a id="a5c3fbc509e1f5446d85176bac513e74c" name="a5c3fbc509e1f5446d85176bac513e74c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c3fbc509e1f5446d85176bac513e74c">&#9670;&#160;</a></span>sweep()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ripple::LedgerHistory::sweep </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Remove stale cache entries. </p>
<p class="definition">Definition at line <a class="el" href="LedgerHistory_8h_source.html#l00076">76</a> of file <a class="el" href="LedgerHistory_8h_source.html">LedgerHistory.h</a>.</p>
</div>
</div>
<a id="a5b22f0c89730a59843fa1840d9225d27" name="a5b22f0c89730a59843fa1840d9225d27"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b22f0c89730a59843fa1840d9225d27">&#9670;&#160;</a></span>builtLedger()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ripple::LedgerHistory::builtLedger </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1Ledger.html">Ledger</a> const &gt; const &amp;&#160;</td>
<td class="paramname"><em>ledger</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a> const &amp;&#160;</td>
<td class="paramname"><em>consensusHash</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classJson_1_1Value.html">Json::Value</a>&#160;</td>
<td class="paramname"><em>consensus</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Report that we have locally built a particular ledger. </p>
<p class="definition">Definition at line <a class="el" href="LedgerHistory_8cpp_source.html#l00448">448</a> of file <a class="el" href="LedgerHistory_8cpp_source.html">LedgerHistory.cpp</a>.</p>
</div>
</div>
<a id="ae3a7cdee19a26b3859e86b02e2cc3742" name="ae3a7cdee19a26b3859e86b02e2cc3742"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae3a7cdee19a26b3859e86b02e2cc3742">&#9670;&#160;</a></span>validatedLedger()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ripple::LedgerHistory::validatedLedger </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1Ledger.html">Ledger</a> const &gt; const &amp;&#160;</td>
<td class="paramname"><em>ledger</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>&lt; <a class="el" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a> &gt; const &amp;&#160;</td>
<td class="paramname"><em>consensusHash</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Report that we have validated a particular ledger. </p>
<p class="definition">Definition at line <a class="el" href="LedgerHistory_8cpp_source.html#l00490">490</a> of file <a class="el" href="LedgerHistory_8cpp_source.html">LedgerHistory.cpp</a>.</p>
</div>
</div>
<a id="ae03adeae0930b7092edb4139cc7d0330" name="ae03adeae0930b7092edb4139cc7d0330"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae03adeae0930b7092edb4139cc7d0330">&#9670;&#160;</a></span>fixIndex()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool ripple::LedgerHistory::fixIndex </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceripple.html#a12af8e98b794e8ee3b4dbecaed2a4efd">LedgerIndex</a>&#160;</td>
<td class="paramname"><em>ledgerIndex</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceripple.html#af5a72d3e0d9b6913c13f688390b90796">LedgerHash</a> const &amp;&#160;</td>
<td class="paramname"><em>ledgerHash</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Repair a hash to index mapping. </p>
<p >Ensure m_ledgers_by_hash doesn't have the wrong hash for a particular index.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ledgerIndex</td><td>The index whose mapping is to be repaired </td></tr>
<tr><td class="paramname">ledgerHash</td><td>The hash it is to be mapped to </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>false</code> if the mapping was repaired </dd></dl>
<p class="definition">Definition at line <a class="el" href="LedgerHistory_8cpp_source.html#l00533">533</a> of file <a class="el" href="LedgerHistory_8cpp_source.html">LedgerHistory.cpp</a>.</p>
</div>
</div>
<a id="a9d3e04a8d477455a9da28022915bad81" name="a9d3e04a8d477455a9da28022915bad81"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d3e04a8d477455a9da28022915bad81">&#9670;&#160;</a></span>clearLedgerCachePrior()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ripple::LedgerHistory::clearLedgerCachePrior </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceripple.html#a12af8e98b794e8ee3b4dbecaed2a4efd">LedgerIndex</a>&#160;</td>
<td class="paramname"><em>seq</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerHistory_8cpp_source.html#l00547">547</a> of file <a class="el" href="LedgerHistory_8cpp_source.html">LedgerHistory.cpp</a>.</p>
</div>
</div>
<a id="a8a5ccffa6c8b9c83d07f608b37a20899" name="a8a5ccffa6c8b9c83d07f608b37a20899"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8a5ccffa6c8b9c83d07f608b37a20899">&#9670;&#160;</a></span>handleMismatch()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ripple::LedgerHistory::handleMismatch </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceripple.html#af5a72d3e0d9b6913c13f688390b90796">LedgerHash</a> const &amp;&#160;</td>
<td class="paramname"><em>built</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceripple.html#af5a72d3e0d9b6913c13f688390b90796">LedgerHash</a> const &amp;&#160;</td>
<td class="paramname"><em>valid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>&lt; <a class="el" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a> &gt; const &amp;&#160;</td>
<td class="paramname"><em>builtConsensusHash</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>&lt; <a class="el" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a> &gt; const &amp;&#160;</td>
<td class="paramname"><em>validatedConsensusHash</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classJson_1_1Value.html">Json::Value</a> const &amp;&#160;</td>
<td class="paramname"><em>consensus</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Log details in the case where we build one ledger but validate a different one. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">built</td><td>The hash of the ledger we built </td></tr>
<tr><td class="paramname">valid</td><td>The hash of the ledger we deemed fully valid </td></tr>
<tr><td class="paramname">builtConsensusHash</td><td>The hash of the consensus transaction for the ledger we built </td></tr>
<tr><td class="paramname">validatedConsensusHash</td><td>The hash of the validated ledger's consensus transaction set </td></tr>
<tr><td class="paramname">consensus</td><td>The status of the consensus round </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="LedgerHistory_8cpp_source.html#l00336">336</a> of file <a class="el" href="LedgerHistory_8cpp_source.html">LedgerHistory.cpp</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a7514a7d4ed469f9a72004040fe243db4" name="a7514a7d4ed469f9a72004040fe243db4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7514a7d4ed469f9a72004040fe243db4">&#9670;&#160;</a></span>app_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classripple_1_1Application.html">Application</a>&amp; ripple::LedgerHistory::app_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerHistory_8h_source.html#l00125">125</a> of file <a class="el" href="LedgerHistory_8h_source.html">LedgerHistory.h</a>.</p>
</div>
</div>
<a id="aa4ab3f74729e78f0a67177555e159671" name="aa4ab3f74729e78f0a67177555e159671"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4ab3f74729e78f0a67177555e159671">&#9670;&#160;</a></span>collector_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classbeast_1_1insight_1_1Collector.html#ad1677ecd39a09b6a8bb8f2e073266bc4">beast::insight::Collector::ptr</a> ripple::LedgerHistory::collector_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerHistory_8h_source.html#l00126">126</a> of file <a class="el" href="LedgerHistory_8h_source.html">LedgerHistory.h</a>.</p>
</div>
</div>
<a id="ada81f3494202a6c8473ba4f17c12d91f" name="ada81f3494202a6c8473ba4f17c12d91f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada81f3494202a6c8473ba4f17c12d91f">&#9670;&#160;</a></span>mismatch_counter_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classbeast_1_1insight_1_1Counter.html">beast::insight::Counter</a> ripple::LedgerHistory::mismatch_counter_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerHistory_8h_source.html#l00127">127</a> of file <a class="el" href="LedgerHistory_8h_source.html">LedgerHistory.h</a>.</p>
</div>
</div>
<a id="a6ad42489964a9f9b01df435e391bcfd2" name="a6ad42489964a9f9b01df435e391bcfd2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ad42489964a9f9b01df435e391bcfd2">&#9670;&#160;</a></span>m_ledgers_by_hash</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classripple_1_1LedgerHistory.html#a1e34d9ee13455de3ea2f919c202a1e1e">LedgersByHash</a> ripple::LedgerHistory::m_ledgers_by_hash</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerHistory_8h_source.html#l00131">131</a> of file <a class="el" href="LedgerHistory_8h_source.html">LedgerHistory.h</a>.</p>
</div>
</div>
<a id="a7c71cafdd85eba74ab6e4436d9ec9037" name="a7c71cafdd85eba74ab6e4436d9ec9037"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c71cafdd85eba74ab6e4436d9ec9037">&#9670;&#160;</a></span>m_consensus_validated</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classripple_1_1LedgerHistory.html#a4893ecfd7e45a96ca0b7ddd241edeba8">ConsensusValidated</a> ripple::LedgerHistory::m_consensus_validated</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerHistory_8h_source.html#l00149">149</a> of file <a class="el" href="LedgerHistory_8h_source.html">LedgerHistory.h</a>.</p>
</div>
</div>
<a id="a4fc23d794f5afd08ae10d9406f2874f8" name="a4fc23d794f5afd08ae10d9406f2874f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4fc23d794f5afd08ae10d9406f2874f8">&#9670;&#160;</a></span>mLedgersByIndex</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map</a>&lt;<a class="el" href="namespaceripple.html#a12af8e98b794e8ee3b4dbecaed2a4efd">LedgerIndex</a>, <a class="el" href="namespaceripple.html#af5a72d3e0d9b6913c13f688390b90796">LedgerHash</a>&gt; ripple::LedgerHistory::mLedgersByIndex</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerHistory_8h_source.html#l00152">152</a> of file <a class="el" href="LedgerHistory_8h_source.html">LedgerHistory.h</a>.</p>
</div>
</div>
<a id="a8413110326cba685ff8cdb908ff310e9" name="a8413110326cba685ff8cdb908ff310e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8413110326cba685ff8cdb908ff310e9">&#9670;&#160;</a></span>j_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classbeast_1_1Journal.html">beast::Journal</a> ripple::LedgerHistory::j_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerHistory_8h_source.html#l00154">154</a> of file <a class="el" href="LedgerHistory_8h_source.html">LedgerHistory.h</a>.</p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>