mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
1072 lines
71 KiB
HTML
1072 lines
71 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::reduce_relay::Slots< clock_type > Class Template 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&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&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="namespaceripple_1_1reduce__relay.html">reduce_relay</a></li><li class="navelem"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">Slots</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="#pri-types">Private Types</a> |
|
|
<a href="#pri-methods">Private Member Functions</a> |
|
|
<a href="#pri-attribs">Private Attributes</a> |
|
|
<a href="#pri-static-attribs">Static Private Attributes</a> |
|
|
<a href="classripple_1_1reduce__relay_1_1Slots-members.html">List of all members</a> </div>
|
|
<div class="headertitle"><div class="title">ripple::reduce_relay::Slots< clock_type > Class Template Reference</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html" title="Slots is a container for validator's Slot and handles Slot update when a message is received from a v...">Slots</a> is a container for validator's <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html" title="Slot is associated with a specific validator via validator's public key.">Slot</a> and handles <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html" title="Slot is associated with a specific validator via validator's public key.">Slot</a> update when a message is received from a validator.
|
|
<a href="classripple_1_1reduce__relay_1_1Slots.html#details">More...</a></p>
|
|
|
|
<p><code>#include <<a class="el" href="overlay_2Slot_8h_source.html">Slot.h</a>></code></p>
|
|
<div class="dynheader">
|
|
Collaboration diagram for ripple::reduce_relay::Slots< clock_type >:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="classripple_1_1reduce__relay_1_1Slots__coll__graph.png" border="0" usemap="#aripple_1_1reduce__relay_1_1Slots_3_01clock__type_01_4_coll__map" alt="Collaboration graph"/></div>
|
|
<map name="aripple_1_1reduce__relay_1_1Slots_3_01clock__type_01_4_coll__map" id="aripple_1_1reduce__relay_1_1Slots_3_01clock__type_01_4_coll__map">
|
|
<area shape="rect" title="Slots is a container for validator's Slot and handles Slot update when a message is received from a v..." alt="" coords="2261,205,2424,245"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/atomic/atomic.html" title=" " alt="" coords="1917,37,2047,63"/>
|
|
<area shape="poly" title=" " alt="" coords="2060,63,2148,90,2195,109,2239,132,2287,167,2325,203,2321,207,2283,171,2236,136,2192,114,2146,95,2059,69"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/unordered_map.html" title=" " alt="" coords="1897,87,2067,157"/>
|
|
<area shape="poly" title=" " alt="" coords="2082,144,2238,187,2284,202,2282,207,2237,193,2080,149"/>
|
|
<area shape="rect" href="classripple_1_1PublicKey.html" title="A public key." alt="" coords="1508,55,1639,80"/>
|
|
<area shape="poly" title=" " alt="" coords="1653,75,1897,108,1896,113,1652,80"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/types/size_t.html" title=" " alt="" coords="1088,5,1176,31"/>
|
|
<area shape="poly" title=" " alt="" coords="1190,22,1508,57,1508,63,1189,27"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/types/integer.html" title=" " alt="" coords="1085,55,1179,80"/>
|
|
<area shape="poly" title=" " alt="" coords="1193,65,1508,65,1508,70,1193,70"/>
|
|
<area shape="rect" href="classripple_1_1reduce__relay_1_1SquelchHandler.html" title="Abstract class." alt="" coords="1907,181,2057,221"/>
|
|
<area shape="poly" title=" " alt="" coords="2071,204,2261,217,2261,222,2071,209"/>
|
|
<area shape="rect" href="classripple_1_1Logs.html" title="Manages partitions for logging." alt="" coords="1933,245,2031,271"/>
|
|
<area shape="poly" title=" " alt="" coords="2044,251,2237,235,2261,233,2262,238,2238,241,2045,257"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/thread/mutex.html" title=" " alt="" coords="1527,252,1619,277"/>
|
|
<area shape="poly" title=" " alt="" coords="1633,261,1933,256,1933,261,1633,266"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/map.html" title=" " alt="" coords="1486,158,1661,227"/>
|
|
<area shape="poly" title=" " alt="" coords="1675,206,1934,248,1933,253,1674,211"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/string/basic_string.html" title=" " alt="" coords="1089,180,1175,205"/>
|
|
<area shape="poly" title=" " alt="" coords="1189,190,1486,190,1486,195,1189,195"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/string/basic_string.html" title=" " alt="" coords="780,173,919,213"/>
|
|
<area shape="poly" title=" " alt="" coords="932,190,1088,190,1088,195,932,195"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html" title=" " alt="" coords="1047,234,1217,274"/>
|
|
<area shape="poly" title=" " alt="" coords="1230,238,1486,202,1486,207,1231,243"/>
|
|
<area shape="rect" href="classbeast_1_1Journal_1_1Sink.html" title="Abstraction for the underlying message destination." alt="" coords="776,269,923,295"/>
|
|
<area shape="poly" title=" " alt="" coords="936,271,1046,260,1047,265,937,276"/>
|
|
<area shape="rect" href="classbeast_1_1Journal.html" title="A generic endpoint for log messages." alt="" coords="1265,301,1376,327"/>
|
|
<area shape="poly" title=" " alt="" coords="937,289,947,290,1121,302,1265,309,1265,314,1121,307,946,295,936,294"/>
|
|
<area shape="rect" href="classripple_1_1Logs_1_1File.html" title="Manages a system file containing logged output." alt="" coords="1509,108,1637,133"/>
|
|
<area shape="poly" title=" " alt="" coords="1651,124,1699,131,1747,143,1809,167,1864,204,1876,218,1888,231,1910,241,1934,248,1932,253,1908,246,1885,235,1872,222,1861,208,1807,172,1746,149,1698,137,1651,129"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html" title=" " alt="" coords="1055,105,1209,145"/>
|
|
<area shape="poly" title=" " alt="" coords="1224,121,1509,119,1509,124,1224,127"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/io/basic_ofstream.html" title=" " alt="" coords="795,112,904,137"/>
|
|
<area shape="poly" title=" " alt="" coords="918,122,1055,122,1055,127,918,127"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/io/basic_ofstream.html" title=" " alt="" coords="576,105,727,145"/>
|
|
<area shape="poly" title=" " alt="" coords="741,122,794,122,794,127,741,127"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html" title=" " alt="" coords="381,105,527,145"/>
|
|
<area shape="poly" title=" " alt="" coords="540,122,575,122,575,127,540,127"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/io/basic_ios.html" title=" " alt="" coords="161,112,332,137"/>
|
|
<area shape="poly" title=" " alt="" coords="346,122,381,122,381,127,346,127"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/io/ios_base.html" title=" " alt="" coords="5,112,112,137"/>
|
|
<area shape="poly" title=" " alt="" coords="126,122,161,122,161,127,126,127"/>
|
|
<area shape="poly" title=" " alt="" coords="1390,311,1688,305,1882,295,2077,279,2157,269,2237,253,2277,242,2279,247,2238,258,2158,275,2078,285,1882,301,1688,310,1390,317"/>
|
|
<area shape="rect" href="classbeast_1_1detail_1_1aged__unordered__container.html" title="Associative container where each element is also indexed by time." alt="" coords="1887,528,2077,612"/>
|
|
<area shape="poly" title=" " alt="" coords="2046,517,2138,439,2235,347,2285,292,2324,243,2328,246,2289,295,2239,351,2141,443,2049,521"/>
|
|
<area shape="rect" href="classbeast_1_1detail_1_1aged__unordered__container_1_1chronological__t.html" title=" " alt="" coords="1470,703,1677,787"/>
|
|
<area shape="poly" title=" " alt="" coords="1689,708,1746,688,1829,649,1905,610,1908,615,1831,654,1748,692,1691,713"/>
|
|
<area shape="rect" href="classbeast_1_1detail_1_1aged__unordered__container_1_1config__t.html" title=" " alt="" coords="1478,811,1669,895"/>
|
|
<area shape="poly" title=" " alt="" coords="1681,825,1745,797,1807,755,1863,705,1911,655,1948,610,1952,614,1915,658,1867,709,1810,759,1748,802,1683,829"/>
|
|
<area shape="rect" href="classbeast_1_1detail_1_1aged__unordered__container_1_1ValueHash.html" title=" " alt="" coords="1037,769,1227,853"/>
|
|
<area shape="poly" title=" " alt="" coords="1241,819,1478,841,1477,846,1241,824"/>
|
|
<area shape="rect" title=" " alt="" coords="822,799,877,824"/>
|
|
<area shape="poly" title=" " alt="" coords="890,809,1036,809,1036,814,890,814"/>
|
|
<area shape="rect" href="classbeast_1_1detail_1_1aged__unordered__container_1_1KeyValueEqual.html" title=" " alt="" coords="1031,877,1233,961"/>
|
|
<area shape="poly" title=" " alt="" coords="1247,899,1478,864,1478,870,1247,905"/>
|
|
<area shape="rect" title=" " alt="" coords="808,907,891,932"/>
|
|
<area shape="poly" title=" " alt="" coords="904,917,1030,917,1030,922,904,922"/>
|
|
<area shape="rect" href="classbeast_1_1detail_1_1empty__base__optimization.html" title=" " alt="" coords="1023,985,1241,1040"/>
|
|
<area shape="poly" title=" " alt="" coords="1222,978,1240,971,1477,885,1479,890,1242,977,1224,983"/>
|
|
<area shape="rect" title=" " alt="" coords="782,1000,917,1025"/>
|
|
<area shape="poly" title=" " alt="" coords="930,1010,1022,1010,1022,1015,930,1015"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/utility/functional/reference_wrapper.html" title=" " alt="" coords="1037,705,1227,745"/>
|
|
<area shape="poly" title=" " alt="" coords="1216,746,1479,823,1477,828,1214,751"/>
|
|
<area shape="rect" href="classbeast_1_1detail_1_1aged__unordered__container_1_1Buckets.html" title=" " alt="" coords="1478,353,1669,437"/>
|
|
<area shape="poly" title=" " alt="" coords="1683,424,1748,448,1831,486,1908,525,1905,530,1829,491,1746,452,1681,429"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/vector.html" title=" " alt="" coords="1031,353,1233,437"/>
|
|
<area shape="poly" title=" " alt="" coords="1246,393,1478,393,1478,398,1246,398"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/types/conditional.html" title=" " alt="" coords="1400,462,1747,678"/>
|
|
<area shape="poly" title=" " alt="" coords="1760,567,1886,567,1886,573,1760,573"/>
|
|
</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="pub-methods" name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:ac9785f4f10e871b6337d19451a57f991" id="r_ac9785f4f10e871b6337d19451a57f991"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#ac9785f4f10e871b6337d19451a57f991">Slots</a> (<a class="el" href="classripple_1_1Logs.html">Logs</a> &logs, <a class="el" href="classripple_1_1reduce__relay_1_1SquelchHandler.html">SquelchHandler</a> const &handler, <a class="el" href="classripple_1_1Config.html">Config</a> const &config)</td></tr>
|
|
<tr class="separator:ac9785f4f10e871b6337d19451a57f991"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9c8c7845b5d5aa6fc88637b7012c1ae1" id="r_a9c8c7845b5d5aa6fc88637b7012c1ae1"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#a9c8c7845b5d5aa6fc88637b7012c1ae1">~Slots</a> ()=default</td></tr>
|
|
<tr class="separator:a9c8c7845b5d5aa6fc88637b7012c1ae1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4620b4efb1c01b20aa03fed5cc2fead8" id="r_a4620b4efb1c01b20aa03fed5cc2fead8"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#a4620b4efb1c01b20aa03fed5cc2fead8">baseSquelchReady</a> ()</td></tr>
|
|
<tr class="memdesc:a4620b4efb1c01b20aa03fed5cc2fead8"><td class="mdescLeft"> </td><td class="mdescRight">Check if base squelching feature is enabled and ready. <br /></td></tr>
|
|
<tr class="separator:a4620b4efb1c01b20aa03fed5cc2fead8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0cb7ab473a902dce9569b6bf0fe8a6b0" id="r_a0cb7ab473a902dce9569b6bf0fe8a6b0"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#a0cb7ab473a902dce9569b6bf0fe8a6b0">reduceRelayReady</a> ()</td></tr>
|
|
<tr class="memdesc:a0cb7ab473a902dce9569b6bf0fe8a6b0"><td class="mdescLeft"> </td><td class="mdescRight">Check if <a class="el" href="namespaceripple_1_1reduce__relay.html#adbdcc4999104abf99199a3420a21a62d">reduce_relay::WAIT_ON_BOOTUP</a> time passed since startup. <br /></td></tr>
|
|
<tr class="separator:a0cb7ab473a902dce9569b6bf0fe8a6b0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:abe8555ef9b1c03e6ba1c2191de3854a6" id="r_abe8555ef9b1c03e6ba1c2191de3854a6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#abe8555ef9b1c03e6ba1c2191de3854a6">updateSlotAndSquelch</a> (<a class="el" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a> const &key, <a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &validator, <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#aff561e306a36edd34ba6e5355611e37b">id_t</a> id, protocol::MessageType type)</td></tr>
|
|
<tr class="memdesc:abe8555ef9b1c03e6ba1c2191de3854a6"><td class="mdescLeft"> </td><td class="mdescRight">Calls <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html#a73959f50e13d8633b21c884a165c8040" title="Update peer info.">Slot::update</a> of <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html" title="Slot is associated with a specific validator via validator's public key.">Slot</a> associated with the validator, with a noop callback. <br /></td></tr>
|
|
<tr class="separator:abe8555ef9b1c03e6ba1c2191de3854a6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a93c9bd71e8bc76158894a66adc273f47" id="r_a93c9bd71e8bc76158894a66adc273f47"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#a93c9bd71e8bc76158894a66adc273f47">updateSlotAndSquelch</a> (<a class="el" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a> const &key, <a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &validator, <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#aff561e306a36edd34ba6e5355611e37b">id_t</a> id, protocol::MessageType type, typename <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html">Slot</a>< clock_type >::ignored_squelch_callback callback)</td></tr>
|
|
<tr class="memdesc:a93c9bd71e8bc76158894a66adc273f47"><td class="mdescLeft"> </td><td class="mdescRight">Calls <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html#a73959f50e13d8633b21c884a165c8040" title="Update peer info.">Slot::update</a> of <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html" title="Slot is associated with a specific validator via validator's public key.">Slot</a> associated with the validator. <br /></td></tr>
|
|
<tr class="separator:a93c9bd71e8bc76158894a66adc273f47"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a343a426d5fd00c5db285d25c41261d8b" id="r_a343a426d5fd00c5db285d25c41261d8b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#a343a426d5fd00c5db285d25c41261d8b">deleteIdlePeers</a> ()</td></tr>
|
|
<tr class="memdesc:a343a426d5fd00c5db285d25c41261d8b"><td class="mdescLeft"> </td><td class="mdescRight">Check if peers stopped relaying messages and if slots stopped receiving messages from the validator. <br /></td></tr>
|
|
<tr class="separator:a343a426d5fd00c5db285d25c41261d8b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7cde6d12764efbe79651285cb6d7e657" id="r_a7cde6d12764efbe79651285cb6d7e657"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>< <a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#a7cde6d12764efbe79651285cb6d7e657">inState</a> (<a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &validator, <a class="el" href="namespaceripple_1_1reduce__relay.html#ac8510a72575fb51be1db4944073f8b22">PeerState</a> state) const</td></tr>
|
|
<tr class="memdesc:a7cde6d12764efbe79651285cb6d7e657"><td class="mdescLeft"> </td><td class="mdescRight">Return number of peers in state. <br /></td></tr>
|
|
<tr class="separator:a7cde6d12764efbe79651285cb6d7e657"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a41bd5c8427d9d0f583836f1ac95e420d" id="r_a41bd5c8427d9d0f583836f1ac95e420d"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>< <a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#a41bd5c8427d9d0f583836f1ac95e420d">notInState</a> (<a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &validator, <a class="el" href="namespaceripple_1_1reduce__relay.html#ac8510a72575fb51be1db4944073f8b22">PeerState</a> state) const</td></tr>
|
|
<tr class="memdesc:a41bd5c8427d9d0f583836f1ac95e420d"><td class="mdescLeft"> </td><td class="mdescRight">Return number of peers not in state. <br /></td></tr>
|
|
<tr class="separator:a41bd5c8427d9d0f583836f1ac95e420d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7ebe56a4d63487ddcdf794455a205f60" id="r_a7ebe56a4d63487ddcdf794455a205f60"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#a7ebe56a4d63487ddcdf794455a205f60">inState</a> (<a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &validator, <a class="el" href="namespaceripple_1_1reduce__relay.html#a9f15d21d6c73738cdfad6e99d22a001e">SlotState</a> state) const</td></tr>
|
|
<tr class="memdesc:a7ebe56a4d63487ddcdf794455a205f60"><td class="mdescLeft"> </td><td class="mdescRight">Return true if <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html" title="Slot is associated with a specific validator via validator's public key.">Slot</a> is in state. <br /></td></tr>
|
|
<tr class="separator:a7ebe56a4d63487ddcdf794455a205f60"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4455590e9f39a3ba4404b0c507b5b8e1" id="r_a4455590e9f39a3ba4404b0c507b5b8e1"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set</a>< <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#aff561e306a36edd34ba6e5355611e37b">id_t</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#a4455590e9f39a3ba4404b0c507b5b8e1">getSelected</a> (<a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &validator)</td></tr>
|
|
<tr class="memdesc:a4455590e9f39a3ba4404b0c507b5b8e1"><td class="mdescLeft"> </td><td class="mdescRight">Get selected peers. <br /></td></tr>
|
|
<tr class="separator:a4455590e9f39a3ba4404b0c507b5b8e1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a83720cd26893686bfbec0ed6134d32a4" id="r_a83720cd26893686bfbec0ed6134d32a4"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/container/unordered_map.html">std::unordered_map</a>< typename <a class="el" href="classripple_1_1Peer.html#a56cc3cdd9c73921f23cb43a2bfa696a1">Peer::id_t</a>, <a class="elRef" href="http://en.cppreference.com/w/cpp/utility/tuple.html">std::tuple</a>< <a class="el" href="namespaceripple_1_1reduce__relay.html#ac8510a72575fb51be1db4944073f8b22">PeerState</a>, uint16_t, uint32_t, <a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#a83720cd26893686bfbec0ed6134d32a4">getPeers</a> (<a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &validator)</td></tr>
|
|
<tr class="memdesc:a83720cd26893686bfbec0ed6134d32a4"><td class="mdescLeft"> </td><td class="mdescRight">Get peers info. <br /></td></tr>
|
|
<tr class="separator:a83720cd26893686bfbec0ed6134d32a4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8e1642999851a0fca28bf7713f935f83" id="r_a8e1642999851a0fca28bf7713f935f83"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>< <a class="el" href="namespaceripple_1_1reduce__relay.html#a9f15d21d6c73738cdfad6e99d22a001e">SlotState</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#a8e1642999851a0fca28bf7713f935f83">getState</a> (<a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &validator)</td></tr>
|
|
<tr class="memdesc:a8e1642999851a0fca28bf7713f935f83"><td class="mdescLeft"> </td><td class="mdescRight">Get <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html" title="Slot is associated with a specific validator via validator's public key.">Slot</a>'s state. <br /></td></tr>
|
|
<tr class="separator:a8e1642999851a0fca28bf7713f935f83"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2e8278ad904625304ffd967859e8a640" id="r_a2e8278ad904625304ffd967859e8a640"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#a2e8278ad904625304ffd967859e8a640">deletePeer</a> (<a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#aff561e306a36edd34ba6e5355611e37b">id_t</a> id, bool <a class="el" href="namespaceripple.html#aa761b49f905eb9fd8c8ae754a0eb7504">erase</a>)</td></tr>
|
|
<tr class="memdesc:a2e8278ad904625304ffd967859e8a640"><td class="mdescLeft"> </td><td class="mdescRight">Called when a peer is deleted. <br /></td></tr>
|
|
<tr class="separator:a2e8278ad904625304ffd967859e8a640"><td class="memSeparator" colspan="2"> </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:a0b8922cb162d01bc418e4d9161c71879" id="r_a0b8922cb162d01bc418e4d9161c71879"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#a0b8922cb162d01bc418e4d9161c71879">time_point</a> = typename clock_type::time_point</td></tr>
|
|
<tr class="separator:a0b8922cb162d01bc418e4d9161c71879"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aff561e306a36edd34ba6e5355611e37b" id="r_aff561e306a36edd34ba6e5355611e37b"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#aff561e306a36edd34ba6e5355611e37b">id_t</a> = typename <a class="el" href="classripple_1_1Peer.html#a56cc3cdd9c73921f23cb43a2bfa696a1">Peer::id_t</a></td></tr>
|
|
<tr class="separator:aff561e306a36edd34ba6e5355611e37b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a30d5904ccd225f8f52460c4df208ab37" id="r_a30d5904ccd225f8f52460c4df208ab37"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#a30d5904ccd225f8f52460c4df208ab37">messages</a> = <a class="el" href="namespacebeast.html#af6181fa93ab6095c2364cc166ad6eca3">beast::aged_unordered_map</a>< <a class="el" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a>, <a class="elRef" href="http://en.cppreference.com/w/cpp/container/unordered_set.html">std::unordered_set</a>< <a class="el" href="classripple_1_1Peer.html#a56cc3cdd9c73921f23cb43a2bfa696a1">Peer::id_t</a> >, clock_type, <a class="el" href="classripple_1_1hardened__hash.html">hardened_hash</a>< <a class="el" href="namespaceripple.html#ac9b07f23404494644c7cfe94facbdd4b">strong_hash</a> > ></td></tr>
|
|
<tr class="separator:a30d5904ccd225f8f52460c4df208ab37"><td class="memSeparator" colspan="2"> </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:a38b96c7d66e4b06aa2e3a6a5c909b5dc" id="r_a38b96c7d66e4b06aa2e3a6a5c909b5dc"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#a38b96c7d66e4b06aa2e3a6a5c909b5dc">addPeerMessage</a> (<a class="el" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a> const &key, <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#aff561e306a36edd34ba6e5355611e37b">id_t</a> id)</td></tr>
|
|
<tr class="memdesc:a38b96c7d66e4b06aa2e3a6a5c909b5dc"><td class="mdescLeft"> </td><td class="mdescRight">Add message/peer if have not seen this message from the peer. <br /></td></tr>
|
|
<tr class="separator:a38b96c7d66e4b06aa2e3a6a5c909b5dc"><td class="memSeparator" colspan="2"> </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:aa7919f48dde4ef09caa2b11ba77c838d" id="r_aa7919f48dde4ef09caa2b11ba77c838d"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic_bool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#aa7919f48dde4ef09caa2b11ba77c838d">reduceRelayReady_</a> {false}</td></tr>
|
|
<tr class="separator:aa7919f48dde4ef09caa2b11ba77c838d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5ac0e92ef5b67cb1276feef60072d2f4" id="r_a5ac0e92ef5b67cb1276feef60072d2f4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceripple.html#a46c521271235f4e2715d7fa8b68940ca">hash_map</a>< <a class="el" href="classripple_1_1PublicKey.html">PublicKey</a>, <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html">Slot</a>< clock_type > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#a5ac0e92ef5b67cb1276feef60072d2f4">slots_</a></td></tr>
|
|
<tr class="separator:a5ac0e92ef5b67cb1276feef60072d2f4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae75eacda927a75954918d3926c5eb067" id="r_ae75eacda927a75954918d3926c5eb067"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classripple_1_1reduce__relay_1_1SquelchHandler.html">SquelchHandler</a> const & </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#ae75eacda927a75954918d3926c5eb067">handler_</a></td></tr>
|
|
<tr class="separator:ae75eacda927a75954918d3926c5eb067"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae6103d07aef85097b639d9b4437d59b5" id="r_ae6103d07aef85097b639d9b4437d59b5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classripple_1_1Logs.html">Logs</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#ae6103d07aef85097b639d9b4437d59b5">logs_</a></td></tr>
|
|
<tr class="separator:ae6103d07aef85097b639d9b4437d59b5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3d8dd94b251f9104affa1da77f2313fd" id="r_a3d8dd94b251f9104affa1da77f2313fd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1Journal.html">beast::Journal</a> const </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#a3d8dd94b251f9104affa1da77f2313fd">journal_</a></td></tr>
|
|
<tr class="separator:a3d8dd94b251f9104affa1da77f2313fd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3aac2d505f53ce4f11d951d8dd73f7df" id="r_a3aac2d505f53ce4f11d951d8dd73f7df"><td class="memItemLeft" align="right" valign="top">bool const </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#a3aac2d505f53ce4f11d951d8dd73f7df">baseSquelchEnabled_</a></td></tr>
|
|
<tr class="separator:a3aac2d505f53ce4f11d951d8dd73f7df"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8582579d7793ebfd3f177a8ca98ee2d1" id="r_a8582579d7793ebfd3f177a8ca98ee2d1"><td class="memItemLeft" align="right" valign="top">uint16_t const </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#a8582579d7793ebfd3f177a8ca98ee2d1">maxSelectedPeers_</a></td></tr>
|
|
<tr class="separator:a8582579d7793ebfd3f177a8ca98ee2d1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-static-attribs" name="pri-static-attribs"></a>
|
|
Static Private Attributes</h2></td></tr>
|
|
<tr class="memitem:a12e919ceb9fe6b32243e09eb78ebf7f2" id="r_a12e919ceb9fe6b32243e09eb78ebf7f2"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#a30d5904ccd225f8f52460c4df208ab37">messages</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#a12e919ceb9fe6b32243e09eb78ebf7f2">peersWithMessage_</a></td></tr>
|
|
<tr class="separator:a12e919ceb9fe6b32243e09eb78ebf7f2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><div class="compoundTemplParams">template<typename clock_type><br />
|
|
class ripple::reduce_relay::Slots< clock_type ></div><p><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html" title="Slots is a container for validator's Slot and handles Slot update when a message is received from a v...">Slots</a> is a container for validator's <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html" title="Slot is associated with a specific validator via validator's public key.">Slot</a> and handles <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html" title="Slot is associated with a specific validator via validator's public key.">Slot</a> update when a message is received from a validator. </p>
|
|
<p>It also handles <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html" title="Slot is associated with a specific validator via validator's public key.">Slot</a> aging and checks for peers which are disconnected or stopped relaying the messages. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="overlay_2Slot_8h_source.html#l00569">569</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
</div><h2 class="groupheader">Member Typedef Documentation</h2>
|
|
<a id="a0b8922cb162d01bc418e4d9161c71879" name="a0b8922cb162d01bc418e4d9161c71879"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0b8922cb162d01bc418e4d9161c71879">◆ </a></span>time_point</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">using <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::time_point = typename clock_type::time_point</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="overlay_2Slot_8h_source.html#l00571">571</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aff561e306a36edd34ba6e5355611e37b" name="aff561e306a36edd34ba6e5355611e37b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aff561e306a36edd34ba6e5355611e37b">◆ </a></span>id_t</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">using <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::id_t = typename <a class="el" href="classripple_1_1Peer.html#a56cc3cdd9c73921f23cb43a2bfa696a1">Peer::id_t</a></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="overlay_2Slot_8h_source.html#l00572">572</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a30d5904ccd225f8f52460c4df208ab37" name="a30d5904ccd225f8f52460c4df208ab37"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a30d5904ccd225f8f52460c4df208ab37">◆ </a></span>messages</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">using <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::messages = <a class="el" href="namespacebeast.html#af6181fa93ab6095c2364cc166ad6eca3">beast::aged_unordered_map</a>< <a class="el" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a>, <a class="elRef" href="http://en.cppreference.com/w/cpp/container/unordered_set.html">std::unordered_set</a><<a class="el" href="classripple_1_1Peer.html#a56cc3cdd9c73921f23cb43a2bfa696a1">Peer::id_t</a>>, clock_type, <a class="el" href="classripple_1_1hardened__hash.html">hardened_hash</a><<a class="el" href="namespaceripple.html#ac9b07f23404494644c7cfe94facbdd4b">strong_hash</a>> ></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="overlay_2Slot_8h_source.html#l00573">573</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a id="ac9785f4f10e871b6337d19451a57f991" name="ac9785f4f10e871b6337d19451a57f991"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac9785f4f10e871b6337d19451a57f991">◆ </a></span>Slots()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::Slots </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classripple_1_1Logs.html">Logs</a> & </td>
|
|
<td class="paramname"><em>logs</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classripple_1_1reduce__relay_1_1SquelchHandler.html">SquelchHandler</a> const & </td>
|
|
<td class="paramname"><em>handler</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classripple_1_1Config.html">Config</a> const & </td>
|
|
<td class="paramname"><em>config</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">logs</td><td>reference to the logger </td></tr>
|
|
<tr><td class="paramname">handler</td><td>Squelch/unsquelch implementation </td></tr>
|
|
<tr><td class="paramname">config</td><td>reference to the global config </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="overlay_2Slot_8h_source.html#l00585">585</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a9c8c7845b5d5aa6fc88637b7012c1ae1" name="a9c8c7845b5d5aa6fc88637b7012c1ae1"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a9c8c7845b5d5aa6fc88637b7012c1ae1">◆ </a></span>~Slots()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::~<a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">Slots</a> </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a id="a4620b4efb1c01b20aa03fed5cc2fead8" name="a4620b4efb1c01b20aa03fed5cc2fead8"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a4620b4efb1c01b20aa03fed5cc2fead8">◆ </a></span>baseSquelchReady()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::baseSquelchReady </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Check if base squelching feature is enabled and ready. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="overlay_2Slot_8h_source.html#l00597">597</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a0cb7ab473a902dce9569b6bf0fe8a6b0" name="a0cb7ab473a902dce9569b6bf0fe8a6b0"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0cb7ab473a902dce9569b6bf0fe8a6b0">◆ </a></span>reduceRelayReady()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::reduceRelayReady </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Check if <a class="el" href="namespaceripple_1_1reduce__relay.html#adbdcc4999104abf99199a3420a21a62d">reduce_relay::WAIT_ON_BOOTUP</a> time passed since startup. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="overlay_2Slot_8h_source.html#l00604">604</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="abe8555ef9b1c03e6ba1c2191de3854a6" name="abe8555ef9b1c03e6ba1c2191de3854a6"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#abe8555ef9b1c03e6ba1c2191de3854a6">◆ </a></span>updateSlotAndSquelch() <span class="overload">[1/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::updateSlotAndSquelch </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a> const & </td>
|
|
<td class="paramname"><em>key</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const & </td>
|
|
<td class="paramname"><em>validator</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#aff561e306a36edd34ba6e5355611e37b">id_t</a> </td>
|
|
<td class="paramname"><em>id</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">protocol::MessageType </td>
|
|
<td class="paramname"><em>type</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Calls <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html#a73959f50e13d8633b21c884a165c8040" title="Update peer info.">Slot::update</a> of <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html" title="Slot is associated with a specific validator via validator's public key.">Slot</a> associated with the validator, with a noop callback. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">key</td><td><a class="el" href="classripple_1_1Message.html">Message</a>'s hash </td></tr>
|
|
<tr><td class="paramname">validator</td><td>Validator's public key </td></tr>
|
|
<tr><td class="paramname">id</td><td><a class="el" href="classripple_1_1Peer.html" title="Represents a peer connection in the overlay.">Peer</a>'s id which received the message </td></tr>
|
|
<tr><td class="paramname">type</td><td>Received protocol message type </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="overlay_2Slot_8h_source.html#l00622">622</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a93c9bd71e8bc76158894a66adc273f47" name="a93c9bd71e8bc76158894a66adc273f47"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a93c9bd71e8bc76158894a66adc273f47">◆ </a></span>updateSlotAndSquelch() <span class="overload">[2/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::updateSlotAndSquelch </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a> const & </td>
|
|
<td class="paramname"><em>key</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const & </td>
|
|
<td class="paramname"><em>validator</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#aff561e306a36edd34ba6e5355611e37b">id_t</a> </td>
|
|
<td class="paramname"><em>id</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">protocol::MessageType </td>
|
|
<td class="paramname"><em>type</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">typename <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html">Slot</a>< clock_type >::ignored_squelch_callback </td>
|
|
<td class="paramname"><em>callback</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Calls <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html#a73959f50e13d8633b21c884a165c8040" title="Update peer info.">Slot::update</a> of <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html" title="Slot is associated with a specific validator via validator's public key.">Slot</a> associated with the validator. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">key</td><td><a class="el" href="classripple_1_1Message.html">Message</a>'s hash </td></tr>
|
|
<tr><td class="paramname">validator</td><td>Validator's public key </td></tr>
|
|
<tr><td class="paramname">id</td><td><a class="el" href="classripple_1_1Peer.html" title="Represents a peer connection in the overlay.">Peer</a>'s id which received the message </td></tr>
|
|
<tr><td class="paramname">type</td><td>Received protocol message type </td></tr>
|
|
<tr><td class="paramname">callback</td><td>A callback to report ignored validations </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="overlay_2Slot_8h_source.html#l00785">785</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a343a426d5fd00c5db285d25c41261d8b" name="a343a426d5fd00c5db285d25c41261d8b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a343a426d5fd00c5db285d25c41261d8b">◆ </a></span>deleteIdlePeers()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::deleteIdlePeers </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Check if peers stopped relaying messages and if slots stopped receiving messages from the validator. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="overlay_2Slot_8h_source.html#l00823">823</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a7cde6d12764efbe79651285cb6d7e657" name="a7cde6d12764efbe79651285cb6d7e657"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a7cde6d12764efbe79651285cb6d7e657">◆ </a></span>inState() <span class="overload">[1/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>< <a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> > <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::inState </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const & </td>
|
|
<td class="paramname"><em>validator</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="namespaceripple_1_1reduce__relay.html#ac8510a72575fb51be1db4944073f8b22">PeerState</a> </td>
|
|
<td class="paramname"><em>state</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Return number of peers in state. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="overlay_2Slot_8h_source.html#l00654">654</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a41bd5c8427d9d0f583836f1ac95e420d" name="a41bd5c8427d9d0f583836f1ac95e420d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a41bd5c8427d9d0f583836f1ac95e420d">◆ </a></span>notInState()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>< <a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> > <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::notInState </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const & </td>
|
|
<td class="paramname"><em>validator</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="namespaceripple_1_1reduce__relay.html#ac8510a72575fb51be1db4944073f8b22">PeerState</a> </td>
|
|
<td class="paramname"><em>state</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Return number of peers not in state. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="overlay_2Slot_8h_source.html#l00664">664</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a7ebe56a4d63487ddcdf794455a205f60" name="a7ebe56a4d63487ddcdf794455a205f60"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a7ebe56a4d63487ddcdf794455a205f60">◆ </a></span>inState() <span class="overload">[2/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::inState </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const & </td>
|
|
<td class="paramname"><em>validator</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="namespaceripple_1_1reduce__relay.html#a9f15d21d6c73738cdfad6e99d22a001e">SlotState</a> </td>
|
|
<td class="paramname"><em>state</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Return true if <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html" title="Slot is associated with a specific validator via validator's public key.">Slot</a> is in state. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="overlay_2Slot_8h_source.html#l00674">674</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a4455590e9f39a3ba4404b0c507b5b8e1" name="a4455590e9f39a3ba4404b0c507b5b8e1"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a4455590e9f39a3ba4404b0c507b5b8e1">◆ </a></span>getSelected()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set</a>< <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#aff561e306a36edd34ba6e5355611e37b">id_t</a> > <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::getSelected </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const & </td>
|
|
<td class="paramname"><em>validator</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get selected peers. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="overlay_2Slot_8h_source.html#l00684">684</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a83720cd26893686bfbec0ed6134d32a4" name="a83720cd26893686bfbec0ed6134d32a4"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a83720cd26893686bfbec0ed6134d32a4">◆ </a></span>getPeers()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/container/unordered_map.html">std::unordered_map</a>< typename <a class="el" href="classripple_1_1Peer.html#a56cc3cdd9c73921f23cb43a2bfa696a1">Peer::id_t</a>, <a class="elRef" href="http://en.cppreference.com/w/cpp/utility/tuple.html">std::tuple</a>< <a class="el" href="namespaceripple_1_1reduce__relay.html#ac8510a72575fb51be1db4944073f8b22">PeerState</a>, uint16_t, uint32_t, <a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> > > <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::getPeers </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const & </td>
|
|
<td class="paramname"><em>validator</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get peers info. </p>
|
|
<p>Return map of peer's state, count, and squelch expiration milliseconds. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="overlay_2Slot_8h_source.html#l00698">698</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a8e1642999851a0fca28bf7713f935f83" name="a8e1642999851a0fca28bf7713f935f83"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a8e1642999851a0fca28bf7713f935f83">◆ </a></span>getState()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>< <a class="el" href="namespaceripple_1_1reduce__relay.html#a9f15d21d6c73738cdfad6e99d22a001e">SlotState</a> > <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::getState </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const & </td>
|
|
<td class="paramname"><em>validator</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html" title="Slot is associated with a specific validator via validator's public key.">Slot</a>'s state. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="overlay_2Slot_8h_source.html#l00708">708</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a2e8278ad904625304ffd967859e8a640" name="a2e8278ad904625304ffd967859e8a640"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a2e8278ad904625304ffd967859e8a640">◆ </a></span>deletePeer()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::deletePeer </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#aff561e306a36edd34ba6e5355611e37b">id_t</a> </td>
|
|
<td class="paramname"><em>id</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>erase</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Called when a peer is deleted. </p>
|
|
<p>If the peer was selected to be the source of messages from the validator then squelched peers have to be unsquelched. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">id</td><td><a class="el" href="classripple_1_1Peer.html" title="Represents a peer connection in the overlay.">Peer</a>'s id </td></tr>
|
|
<tr><td class="paramname">erase</td><td>If true then erase the peer </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="overlay_2Slot_8h_source.html#l00815">815</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a38b96c7d66e4b06aa2e3a6a5c909b5dc" name="a38b96c7d66e4b06aa2e3a6a5c909b5dc"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a38b96c7d66e4b06aa2e3a6a5c909b5dc">◆ </a></span>addPeerMessage()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::addPeerMessage </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a> const & </td>
|
|
<td class="paramname"><em>key</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#aff561e306a36edd34ba6e5355611e37b">id_t</a> </td>
|
|
<td class="paramname"><em>id</em> </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>Add message/peer if have not seen this message from the peer. </p>
|
|
<p>A message is aged after IDLED seconds. Return true if added </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="overlay_2Slot_8h_source.html#l00752">752</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Data Documentation</h2>
|
|
<a id="aa7919f48dde4ef09caa2b11ba77c838d" name="aa7919f48dde4ef09caa2b11ba77c838d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa7919f48dde4ef09caa2b11ba77c838d">◆ </a></span>reduceRelayReady_</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<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/atomic/atomic.html">std::atomic_bool</a> <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::reduceRelayReady_ {false}</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="overlay_2Slot_8h_source.html#l00732">732</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a5ac0e92ef5b67cb1276feef60072d2f4" name="a5ac0e92ef5b67cb1276feef60072d2f4"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a5ac0e92ef5b67cb1276feef60072d2f4">◆ </a></span>slots_</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="namespaceripple.html#a46c521271235f4e2715d7fa8b68940ca">hash_map</a><<a class="el" href="classripple_1_1PublicKey.html">PublicKey</a>, <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html">Slot</a><clock_type> > <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::slots_</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="overlay_2Slot_8h_source.html#l00734">734</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ae75eacda927a75954918d3926c5eb067" name="ae75eacda927a75954918d3926c5eb067"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae75eacda927a75954918d3926c5eb067">◆ </a></span>handler_</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classripple_1_1reduce__relay_1_1SquelchHandler.html">SquelchHandler</a> const& <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::handler_</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="overlay_2Slot_8h_source.html#l00735">735</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ae6103d07aef85097b639d9b4437d59b5" name="ae6103d07aef85097b639d9b4437d59b5"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae6103d07aef85097b639d9b4437d59b5">◆ </a></span>logs_</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classripple_1_1Logs.html">Logs</a>& <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::logs_</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="overlay_2Slot_8h_source.html#l00736">736</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a3d8dd94b251f9104affa1da77f2313fd" name="a3d8dd94b251f9104affa1da77f2313fd"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a3d8dd94b251f9104affa1da77f2313fd">◆ </a></span>journal_</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<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> const <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::journal_</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="overlay_2Slot_8h_source.html#l00737">737</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a3aac2d505f53ce4f11d951d8dd73f7df" name="a3aac2d505f53ce4f11d951d8dd73f7df"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a3aac2d505f53ce4f11d951d8dd73f7df">◆ </a></span>baseSquelchEnabled_</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool const <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::baseSquelchEnabled_</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="overlay_2Slot_8h_source.html#l00739">739</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a8582579d7793ebfd3f177a8ca98ee2d1" name="a8582579d7793ebfd3f177a8ca98ee2d1"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a8582579d7793ebfd3f177a8ca98ee2d1">◆ </a></span>maxSelectedPeers_</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint16_t const <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::maxSelectedPeers_</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="overlay_2Slot_8h_source.html#l00740">740</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a12e919ceb9fe6b32243e09eb78ebf7f2" name="a12e919ceb9fe6b32243e09eb78ebf7f2"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a12e919ceb9fe6b32243e09eb78ebf7f2">◆ </a></span>peersWithMessage_</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename clock_type > </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classripple_1_1reduce__relay_1_1Slots.html#a30d5904ccd225f8f52460c4df208ab37">messages</a> <a class="el" href="classripple_1_1reduce__relay_1_1Slots.html">ripple::reduce_relay::Slots</a>< clock_type >::peersWithMessage_</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Initial value:</b><div class="fragment"><div class="line">{</div>
|
|
<div class="line"> beast::get_abstract_clock<clock_type>()}</div>
|
|
</div><!-- fragment -->
|
|
<p class="definition">Definition at line <a class="el" href="overlay_2Slot_8h_source.html#l00746">746</a> of file <a class="el" href="overlay_2Slot_8h_source.html">overlay/Slot.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <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>
|