Files
rippled/classripple_1_1LedgerHistory.html
2025-11-04 00:36:48 -08:00

874 lines
59 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.8"/>
<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.8 -->
<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="2144,347,2303,372"/>
<area shape="rect" href="classripple_1_1Application.html" title=" " alt="" coords="1789,292,1929,317"/>
<area shape="poly" title=" " alt="" coords="1943,313,2120,338,2155,344,2154,349,2120,343,1942,318"/>
<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="1458,158,1626,198"/>
<area shape="poly" title=" " alt="" coords="1607,201,1827,289,1825,294,1605,206"/>
<area shape="poly" title=" " alt="" coords="1513,142,1523,134,1542,131,1558,133,1569,139,1574,148,1572,158,1567,157,1568,149,1565,143,1556,139,1542,137,1526,139,1517,146"/>
<area shape="rect" href="classbeast_1_1PropertyStream_1_1Item.html" title=" " alt="" coords="1775,189,1943,229"/>
<area shape="poly" title=" " alt="" coords="1620,199,1664,207,1720,212,1775,212,1775,217,1720,217,1664,213,1619,204"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/string/basic_string.html" title=" " alt="" coords="1171,209,1257,235"/>
<area shape="poly" title=" " alt="" coords="1247,200,1295,177,1350,159,1405,154,1458,158,1458,163,1405,160,1351,165,1297,182,1249,205"/>
<area shape="rect" href="classripple_1_1TaggedCache.html" title=" " alt="" coords="1459,332,1625,387"/>
<area shape="poly" title=" " alt="" coords="1271,231,1327,245,1375,259,1421,278,1465,303,1505,330,1502,334,1463,308,1419,283,1373,264,1326,250,1270,236"/>
<area shape="rect" href="classripple_1_1TaggedCache.html" title=" " alt="" coords="1444,521,1640,561"/>
<area shape="poly" title=" " alt="" coords="1272,220,1302,228,1329,245,1342,266,1347,286,1343,326,1338,365,1341,384,1353,404,1367,417,1383,421,1401,423,1421,432,1479,476,1524,518,1520,522,1476,480,1419,436,1399,428,1382,426,1365,421,1349,408,1336,386,1332,365,1338,325,1342,286,1337,268,1325,249,1300,233,1270,225"/>
<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="poly" title=" " alt="" coords="963,219,1171,219,1171,225,963,225"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/thread/recursive_mutex.html" title=" " alt="" coords="1135,259,1293,284"/>
<area shape="poly" title=" " alt="" coords="1305,256,1325,245,1333,236,1336,226,1340,215,1349,205,1374,191,1402,182,1457,173,1458,178,1403,187,1377,196,1352,209,1344,218,1341,228,1337,239,1328,249,1308,261"/>
<area shape="poly" title=" " alt="" coords="1290,284,1421,317,1462,329,1460,334,1419,322,1289,290"/>
<area shape="poly" title=" " alt="" coords="1266,288,1300,308,1329,336,1337,352,1341,367,1340,394,1340,420,1344,433,1353,447,1368,460,1383,466,1400,470,1421,477,1504,518,1501,523,1419,482,1399,475,1381,471,1365,465,1349,450,1339,435,1335,421,1335,394,1336,367,1332,354,1325,340,1297,312,1263,292"/>
<area shape="poly" title=" " alt="" coords="1761,199,1732,195,1626,186,1626,181,1732,190,1762,193"/>
<area shape="rect" title=" " alt="" coords="1469,240,1615,265"/>
<area shape="poly" title=" " alt="" coords="1629,238,1775,218,1775,223,1630,243"/>
<area shape="rect" href="classbeast_1_1List.html" title=" " alt="" coords="1121,98,1307,138"/>
<area shape="poly" title=" " alt="" coords="1321,120,1421,134,1492,155,1490,161,1419,139,1320,125"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/types/size_t.html" title=" " alt="" coords="835,487,923,512"/>
<area shape="poly" title=" " alt="" coords="914,477,948,452,978,418,988,395,991,374,993,352,1002,326,1023,286,1043,256,1100,196,1139,163,1178,136,1181,140,1142,167,1103,200,1047,259,1027,288,1006,328,998,353,996,375,993,396,982,421,952,455,917,482"/>
<area shape="rect" href="structripple_1_1TaggedCache_1_1Stats.html" title=" " alt="" coords="1101,349,1327,433"/>
<area shape="poly" title=" " alt="" coords="932,480,1100,425,1102,430,934,485"/>
<area shape="rect" href="classripple_1_1partitioned__unordered__map.html" title=" " alt="" coords="1127,457,1301,541"/>
<area shape="poly" title=" " alt="" coords="937,497,1127,497,1127,502,937,502"/>
<area shape="rect" href="classripple_1_1partitioned__unordered__map.html" title=" " alt="" coords="1127,721,1301,805"/>
<area shape="poly" title=" " alt="" coords="906,519,991,596,1103,688,1147,719,1144,723,1100,692,987,600,902,523"/>
<area shape="rect" href="classripple_1_1base__uint.html" title="Integers of any length that is a multiple of 32&#45;bits." alt="" coords="1471,946,1613,986"/>
<area shape="poly" title=" " alt="" coords="895,523,1002,731,1062,839,1086,876,1103,894,1149,905,1247,922,1472,954,1471,959,1246,927,1148,911,1100,899,1082,879,1057,841,997,734,890,525"/>
<area shape="rect" href="classbeast_1_1detail_1_1ListNode.html" title=" " alt="" coords="788,91,971,145"/>
<area shape="poly" title=" " alt="" coords="984,115,1121,115,1121,121,984,121"/>
<area shape="rect" href="classbeast_1_1detail_1_1ListNode.html" title=" " alt="" coords="508,98,676,138"/>
<area shape="poly" title=" " alt="" coords="689,115,788,115,788,121,689,121"/>
<area shape="poly" title=" " alt="" coords="569,82,577,74,592,71,605,74,613,80,617,88,616,98,610,97,612,89,609,83,603,78,592,77,580,79,573,86"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html" title=" " alt="" coords="1756,25,1963,51"/>
<area shape="poly" title=" " alt="" coords="1914,53,1962,72,2017,98,2072,131,2122,172,2159,217,2187,267,2220,345,2215,348,2183,269,2154,220,2118,176,2069,136,2014,103,1960,77,1912,58"/>
<area shape="rect" href="classbeast_1_1insight_1_1Collector.html" title="Interface for a manager that allows collection of metrics." alt="" coords="1454,5,1630,31"/>
<area shape="poly" title=" " alt="" coords="1644,22,1756,29,1756,34,1643,27"/>
<area shape="rect" href="classbeast_1_1insight_1_1Counter.html" title="A metric for measuring an integral value." alt="" coords="1775,108,1944,133"/>
<area shape="poly" title=" " alt="" coords="1899,138,1964,174,2105,270,2206,344,2203,348,2102,274,1961,179,1897,142"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html" title=" " alt="" coords="1453,55,1631,95"/>
<area shape="poly" title=" " alt="" coords="1645,87,1775,106,1774,111,1644,93"/>
<area shape="rect" href="classbeast_1_1insight_1_1CounterImpl.html" title=" " alt="" coords="1115,29,1313,55"/>
<area shape="poly" title=" " alt="" coords="1327,51,1454,64,1453,69,1327,56"/>
<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="poly" title=" " alt="" coords="994,39,1114,39,1114,45,994,45"/>
<area shape="poly" title=" " alt="" coords="1639,357,2144,357,2144,362,1639,362"/>
<area shape="rect" href="classbeast_1_1Journal.html" title="A generic endpoint for log messages." alt="" coords="1159,829,1269,855"/>
<area shape="poly" title=" " alt="" coords="1283,852,1350,856,1385,854,1419,847,1486,826,1553,801,1683,740,1806,670,1919,596,2019,524,2103,459,2206,370,2210,374,2106,463,2023,528,1922,601,1809,675,1685,745,1555,806,1488,831,1421,853,1386,859,1350,862,1282,858"/>
<area shape="poly" title=" " alt="" coords="1282,837,1305,829,1325,816,1333,805,1338,794,1338,771,1337,746,1341,733,1349,719,1366,704,1385,699,1402,693,1418,679,1430,657,1436,637,1435,598,1432,557,1434,534,1441,508,1457,473,1476,440,1515,385,1520,389,1481,443,1462,475,1447,510,1440,535,1438,557,1441,598,1441,637,1435,659,1422,682,1405,698,1387,704,1369,709,1353,722,1346,735,1343,747,1343,771,1343,795,1338,808,1328,820,1308,834,1284,842"/>
<area shape="poly" title=" " alt="" coords="1283,848,1317,847,1353,843,1387,833,1418,816,1448,789,1472,757,1492,721,1507,684,1527,613,1536,560,1541,561,1532,615,1512,686,1496,723,1476,759,1452,792,1422,820,1389,838,1354,848,1317,853,1283,853"/>
<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="poly" title=" " alt="" coords="937,918,1167,852,1169,857,939,923"/>
<area shape="rect" href="classbeast_1_1abstract__clock.html" title="Abstract interface to a clock." alt="" coords="1134,566,1294,606"/>
<area shape="poly" title=" " alt="" coords="1307,576,1365,562,1393,551,1418,536,1460,477,1521,385,1525,388,1465,480,1422,540,1395,555,1366,567,1308,582"/>
<area shape="poly" title=" " alt="" coords="1308,589,1363,588,1420,582,1459,572,1496,558,1498,563,1461,577,1420,587,1364,594,1308,595"/>
<area shape="poly" title=" " alt="" coords="1336,343,1350,341,1405,337,1459,341,1458,346,1405,342,1351,346,1337,349"/>
<area shape="poly" title=" " alt="" coords="1325,440,1329,444,1337,457,1341,470,1344,481,1352,492,1389,508,1444,522,1443,527,1387,513,1349,496,1339,484,1335,471,1332,460,1325,448,1321,444"/>
<area shape="rect" href="classbeast_1_1insight_1_1Hook.html" title="A reference to a handler for performing polled collection." alt="" coords="803,317,955,343"/>
<area shape="poly" title=" " alt="" coords="969,340,1078,358,1102,363,1101,368,1077,363,968,345"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html" title=" " alt="" coords="507,310,677,350"/>
<area shape="poly" title=" " alt="" coords="691,327,803,327,803,333,691,333"/>
<area shape="rect" href="classbeast_1_1insight_1_1HookImpl.html" title=" " alt="" coords="251,317,432,343"/>
<area shape="poly" title=" " alt="" coords="446,327,507,327,507,333,446,333"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/memory/enable_shared_from_this.html" title=" " alt="" coords="9,310,193,350"/>
<area shape="poly" title=" " alt="" coords="207,327,250,327,250,333,207,333"/>
<area shape="rect" href="classbeast_1_1insight_1_1Gauge.html" title="A metric for measuring an integral value." alt="" coords="799,381,959,407"/>
<area shape="poly" title=" " alt="" coords="973,391,1101,390,1101,395,973,396"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html" title=" " alt="" coords="507,374,677,414"/>
<area shape="poly" title=" " alt="" coords="691,391,799,391,799,397,691,397"/>
<area shape="rect" href="classbeast_1_1insight_1_1GaugeImpl.html" title=" " alt="" coords="247,381,436,407"/>
<area shape="poly" title=" " alt="" coords="450,391,506,391,506,397,450,397"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/memory/enable_shared_from_this.html" title=" " alt="" coords="5,374,197,414"/>
<area shape="poly" title=" " alt="" coords="211,391,246,391,246,397,211,397"/>
<area shape="poly" title=" " alt="" coords="1311,456,1325,444,1333,430,1335,416,1338,401,1349,387,1368,377,1394,370,1458,361,1459,367,1395,376,1369,382,1352,391,1343,403,1340,417,1338,432,1329,448,1315,460"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/vector.html" title=" " alt="" coords="786,727,973,752"/>
<area shape="poly" title=" " alt="" coords="986,725,1041,713,1062,705,1075,696,1087,679,1092,663,1089,628,1085,592,1089,572,1099,552,1125,529,1128,533,1103,556,1094,574,1090,592,1094,628,1097,663,1092,682,1079,700,1064,710,1042,718,987,731"/>
<area shape="poly" title=" " alt="" coords="987,744,1126,754,1126,760,986,750"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/types/integer.html" title=" " alt="" coords="1163,652,1265,677"/>
<area shape="poly" title=" " alt="" coords="1279,667,1315,666,1352,659,1388,646,1418,624,1429,611,1434,598,1436,572,1434,542,1441,508,1478,440,1516,385,1521,388,1482,443,1447,510,1440,543,1441,572,1440,599,1433,614,1422,628,1390,650,1353,664,1315,671,1279,673"/>
<area shape="poly" title=" " alt="" coords="1280,680,1305,692,1329,708,1337,719,1340,730,1344,740,1352,748,1370,756,1385,759,1401,756,1419,748,1444,730,1465,707,1499,655,1521,602,1534,560,1539,562,1526,604,1503,658,1469,711,1447,734,1421,752,1402,761,1385,764,1368,761,1349,752,1339,743,1335,732,1332,722,1325,712,1302,697,1277,685"/>
<area shape="poly" title=" " alt="" coords="1631,514,2174,369,2175,375,1632,520"/>
<area shape="poly" title=" " alt="" coords="1315,793,1369,795,1395,789,1419,778,1446,757,1469,731,1488,701,1503,669,1524,608,1535,560,1540,561,1530,609,1508,671,1493,703,1473,734,1450,761,1421,783,1396,794,1369,800,1315,798"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/map.html" title=" " alt="" coords="1777,946,1942,986"/>
<area shape="poly" title=" " alt="" coords="1956,971,1998,968,2042,959,2083,943,2118,917,2132,899,2145,875,2167,810,2184,730,2197,643,2213,478,2219,372,2224,372,2219,478,2203,644,2190,731,2172,811,2150,877,2137,902,2122,921,2086,948,2043,965,1999,973,1956,976"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/types/integer.html" title=" " alt="" coords="828,993,931,1019"/>
<area shape="poly" title=" " alt="" coords="945,1006,1245,1011,1441,1007,1640,995,1776,978,1777,983,1640,1001,1441,1013,1245,1017,945,1011"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/array.html" title=" " alt="" coords="1130,957,1298,997"/>
<area shape="poly" title=" " alt="" coords="944,998,1130,981,1130,987,945,1003"/>
<area shape="poly" title=" " alt="" coords="1626,963,1776,963,1776,969,1626,969"/>
<area shape="poly" title=" " alt="" coords="1312,971,1471,966,1471,971,1312,976"/>
</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" id="r_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" id="r_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. <br /></td></tr>
<tr class="separator:adaa8295b513d8c306f074cc9ca7755d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a507bb40b5649985141e3dcbf57bd481d" id="r_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. <br /></td></tr>
<tr class="separator:a507bb40b5649985141e3dcbf57bd481d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad227291e26551b873ff494a27734a9d8" id="r_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. <br /></td></tr>
<tr class="separator:ad227291e26551b873ff494a27734a9d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1b5ae23538f3db1815018c0f185f19f" id="r_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. <br /></td></tr>
<tr class="separator:af1b5ae23538f3db1815018c0f185f19f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8decf929ebaba3425836b33fc74d6be4" id="r_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. <br /></td></tr>
<tr class="separator:a8decf929ebaba3425836b33fc74d6be4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c3fbc509e1f5446d85176bac513e74c" id="r_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. <br /></td></tr>
<tr class="separator:a5c3fbc509e1f5446d85176bac513e74c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b22f0c89730a59843fa1840d9225d27" id="r_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. <br /></td></tr>
<tr class="separator:a5b22f0c89730a59843fa1840d9225d27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3a7cdee19a26b3859e86b02e2cc3742" id="r_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. <br /></td></tr>
<tr class="separator:ae3a7cdee19a26b3859e86b02e2cc3742"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae03adeae0930b7092edb4139cc7d0330" id="r_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. <br /></td></tr>
<tr class="separator:ae03adeae0930b7092edb4139cc7d0330"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d3e04a8d477455a9da28022915bad81" id="r_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" id="r_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" id="r_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" id="r_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#ab0cd6a3f76fa9f09c5f1c2d6fffc11e0">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. <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" id="r_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" id="r_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" id="r_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" id="r_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" id="r_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" id="r_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" id="r_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#l00017">17</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#l00110">110</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#l00129">129</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#l00013">13</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#l00036">36</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#l00034">34</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#l00067">67</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#l00104">104</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#l00058">58</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#l00057">57</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#l00432">432</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#l00474">474</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#l00517">517</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#l00531">531</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#l00320">320</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#l00106">106</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#l00107">107</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#l00108">108</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#l00112">112</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#l00130">130</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#l00133">133</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#l00135">135</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.8
</small></address>
</body>
</html>