Files
rippled/classripple_1_1test_1_1reduce__relay__simulate__test.html
2021-09-14 16:34:03 +00:00

1081 lines
60 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">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: ripple::test::reduce_relay_simulate_test 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 style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">rippled
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @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:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(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">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</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_1test.html">test</a></li><li class="navelem"><a class="el" href="classripple_1_1test_1_1reduce__relay__simulate__test.html">reduce_relay_simulate_test</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pro-types">Protected Types</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#pri-types">Private Types</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="classripple_1_1test_1_1reduce__relay__simulate__test-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">ripple::test::reduce_relay_simulate_test Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for ripple::test::reduce_relay_simulate_test:</div>
<div class="dyncontent">
<div class="center"><img src="classripple_1_1test_1_1reduce__relay__simulate__test__inherit__graph.png" border="0" usemap="#ripple_1_1test_1_1reduce__relay__simulate__test_inherit__map" alt="Inheritance graph"/></div>
<map name="ripple_1_1test_1_1reduce__relay__simulate__test_inherit__map" id="ripple_1_1test_1_1reduce__relay__simulate__test_inherit__map">
<area shape="rect" title=" " alt="" coords="5,169,164,211"/>
<area shape="rect" href="classripple_1_1test_1_1reduce__relay__test.html" title=" " alt="" coords="13,80,157,121"/>
<area shape="rect" title=" " alt="" coords="57,5,112,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for ripple::test::reduce_relay_simulate_test:</div>
<div class="dyncontent">
<div class="center"><img src="classripple_1_1test_1_1reduce__relay__simulate__test__coll__graph.png" border="0" usemap="#ripple_1_1test_1_1reduce__relay__simulate__test_coll__map" alt="Collaboration graph"/></div>
<map name="ripple_1_1test_1_1reduce__relay__simulate__test_coll__map" id="ripple_1_1test_1_1reduce__relay__simulate__test_coll__map">
<area shape="rect" title=" " alt="" coords="2483,367,2641,409"/>
<area shape="rect" href="classripple_1_1test_1_1reduce__relay__test.html" title=" " alt="" coords="2289,367,2433,409"/>
<area shape="rect" title=" " alt="" coords="2071,324,2126,351"/>
<area shape="rect" href="classripple_1_1test_1_1Network.html" title=" " alt="" coords="2021,375,2176,401"/>
<area shape="rect" href="classripple_1_1test_1_1OverlaySim.html" title=" " alt="" coords="1736,375,1912,401"/>
<area shape="rect" href="classripple_1_1test_1_1Overlay.html" title="Simulate server&#39;s OverlayImpl." alt="" coords="1353,251,1503,277"/>
<area shape="rect" href="classripple_1_1reduce__relay_1_1SquelchHandler.html" title="Abstract class." alt="" coords="957,291,1108,333"/>
<area shape="rect" href="classripple_1_1reduce__relay_1_1Slots.html" title=" " alt="" coords="1353,448,1503,504"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/container/unordered_map.html" title=" " alt="" coords="627,195,803,237"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/types/integer.html" title=" " alt="" coords="5,247,108,273"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/container/unordered_map.html" title=" " alt="" coords="628,117,803,158"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/container/array.html" title=" " alt="" coords="221,837,389,878"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html" title="STL class." alt="" coords="227,189,384,216"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/utility/functional/function.html" title=" " alt="" coords="1351,528,1505,584"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/utility/functional/function.html" title=" " alt="" coords="1345,353,1511,423"/>
<area shape="rect" href="classripple_1_1Logs.html" title="Manages partitions for logging." alt="" coords="984,644,1081,671"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/thread/mutex.html" title="STL class." alt="" coords="669,636,761,663"/>
<area shape="rect" href="classripple_1_1test_1_1ManualTimeKeeper.html" title=" " alt="" coords="943,1015,1123,1057"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/container/map.html" title=" " alt="" coords="413,585,588,655"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/string/basic_string.html" title="STL class." alt="" coords="13,1021,100,1048"/>
<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="221,1125,389,1166"/>
<area shape="rect" href="classripple_1_1test_1_1jtx_1_1Account.html" title="Immutable cryptographic account descriptor." alt="" coords="970,925,1095,966"/>
<area shape="rect" href="classripple_1_1Logs_1_1File.html" title="Manages a system file containing logged output." alt="" coords="652,585,779,612"/>
<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="937,357,1128,443"/>
<area shape="rect" href="classbeast_1_1Journal.html" title="A generic endpoint for log messages." alt="" coords="977,576,1088,603"/>
<area shape="rect" href="classripple_1_1test_1_1jtx_1_1Env.html" title="A transaction testing environment." alt="" coords="1749,815,1899,841"/>
<area shape="rect" href="classbeast_1_1Journal_1_1Sink.html" title="Abstraction for the underlying message destination." alt="" coords="642,511,789,537"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/container/unordered_map.html" title=" " alt="" coords="955,467,1110,552"/>
<area shape="rect" href="classripple_1_1PublicKey.html" title="A public key." alt="" coords="650,460,781,487"/>
<area shape="rect" href="classripple_1_1test_1_1Validator.html" title="Simulate Validator." alt="" coords="953,111,1112,137"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/types/size_t.html" title=" " alt="" coords="261,719,349,745"/>
<area shape="rect" href="classripple_1_1base__uint.html" title=" " alt="" coords="612,881,819,922"/>
<area shape="rect" href="classripple_1_1base__uint.html" title="Integers of any length that is a multiple of 32&#45;bits." alt="" coords="645,815,786,857"/>
<area shape="rect" href="classripple_1_1base__uint.html" title=" " alt="" coords="645,750,786,791"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/container/vector.html" title=" " alt="" coords="1569,135,1712,177"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/types/integer.html" title=" " alt="" coords="664,65,767,92"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html" title=" " alt="" coords="612,5,819,32"/>
<area shape="rect" href="structripple_1_1test_1_1jtx_1_1Env_1_1AppBundle.html" title=" " alt="" coords="1365,1118,1491,1159"/>
<area shape="rect" href="classripple_1_1Application.html" title=" " alt="" coords="645,1173,785,1200"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html" title=" " alt="" coords="947,1261,1118,1302"/>
<area shape="rect" href="classripple_1_1TimeKeeper.html" title="Manages various times used by the server." alt="" coords="643,1072,788,1099"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/chrono/time_point.html" title=" " alt="" coords="629,1123,801,1149"/>
<area shape="rect" href="classbeast_1_1manual__clock.html" title=" " alt="" coords="952,1327,1113,1383"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html" title=" " alt="" coords="947,1081,1118,1122"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/thread/thread.html" title="STL class." alt="" coords="987,1209,1079,1236"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/container/unordered_map.html" title=" " alt="" coords="1311,994,1545,1065"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/container/unordered_map.html" title=" " alt="" coords="1330,851,1526,907"/>
<area shape="rect" href="classripple_1_1SecretKey.html" title="A secret key." alt="" coords="649,947,781,973"/>
<area shape="rect" href="classbeast_1_1abstract__clock.html" title=" " alt="" coords="635,1327,796,1383"/>
<area shape="rect" href="classripple_1_1TERSubset.html" title=" " alt="" coords="1355,785,1501,826"/>
</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 name="pro-types"></a>
Protected Types</h2></td></tr>
<tr class="memitem:a14441737f30e94f46c7a775c1a504b5b"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a14441737f30e94f46c7a775c1a504b5b">State</a> { <a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a14441737f30e94f46c7a775c1a504b5bab681bc2d4ae474dce5735b0ca4fb3963">On</a>,
<a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a14441737f30e94f46c7a775c1a504b5bae88c8a9b1380f3477d59cadc90316492">Off</a>,
<a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a14441737f30e94f46c7a775c1a504b5ba3544829093ee68a8e1d99b4bd3913f34">WaitReset</a>
}</td></tr>
<tr class="separator:a14441737f30e94f46c7a775c1a504b5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19b9ca38a0b8be47fdbb53fb2e6f229c"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a19b9ca38a0b8be47fdbb53fb2e6f229c">EventType</a> { <a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a19b9ca38a0b8be47fdbb53fb2e6f229ca2095c2f99f9f8c542ee2e1d7dcbd6400">LinkDown</a> = 0,
<a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a19b9ca38a0b8be47fdbb53fb2e6f229ca3d9f9c80d39d6105ec9303000c4b948e">PeerDisconnected</a> = 1
}</td></tr>
<tr class="separator:a19b9ca38a0b8be47fdbb53fb2e6f229c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a75f851d11a1146ee76590e50046bb865"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a75f851d11a1146ee76590e50046bb865">printPeers</a> (const <a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &amp;msg, <a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> validator=0)</td></tr>
<tr class="separator:a75f851d11a1146ee76590e50046bb865"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e9bd02ca3d3f9cae61982ba146a2b47"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classripple_1_1Peer.html#a56cc3cdd9c73921f23cb43a2bfa696a1">Peer::id_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a3e9bd02ca3d3f9cae61982ba146a2b47">sendSquelch</a> (<a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &amp;validator, <a class="el" href="namespaceripple_1_1test.html#aa1cebcfe0b22832451be2f79791a9b56">PeerWPtr</a> const &amp;peerPtr, <a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>&lt; <a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> &gt; <a class="elRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">duration</a>)</td></tr>
<tr class="memdesc:a3e9bd02ca3d3f9cae61982ba146a2b47"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send squelch (if duration is set) or unsquelch (if duration not set) <a href="classripple_1_1test_1_1reduce__relay__test.html#a3e9bd02ca3d3f9cae61982ba146a2b47">More...</a><br /></td></tr>
<tr class="separator:a3e9bd02ca3d3f9cae61982ba146a2b47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e4ca44be9c15127eb6b758d51300116"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a1e4ca44be9c15127eb6b758d51300116">random</a> (bool log)</td></tr>
<tr class="memdesc:a1e4ca44be9c15127eb6b758d51300116"><td class="mdescLeft">&#160;</td><td class="mdescRight">Randomly brings the link between a validator and a peer down. <a href="classripple_1_1test_1_1reduce__relay__test.html#a1e4ca44be9c15127eb6b758d51300116">More...</a><br /></td></tr>
<tr class="separator:a1e4ca44be9c15127eb6b758d51300116"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ceca0735fa0fd6ee70209913005bb75"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a2ceca0735fa0fd6ee70209913005bb75">checkCounting</a> (<a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &amp;validator, bool isCountingState)</td></tr>
<tr class="separator:a2ceca0735fa0fd6ee70209913005bb75"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a893103e6a3ac66cc9f6fb5023bc28145"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a893103e6a3ac66cc9f6fb5023bc28145">doTest</a> (const <a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &amp;msg, bool log, <a class="elRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a>&lt; void(bool)&gt; f)</td></tr>
<tr class="separator:a893103e6a3ac66cc9f6fb5023bc28145"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f40d89cd9719792db3ec7310244cd93"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a7f40d89cd9719792db3ec7310244cd93">testInitialRound</a> (bool log)</td></tr>
<tr class="memdesc:a7f40d89cd9719792db3ec7310244cd93"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initial counting round: three peers receive message "faster" then others. <a href="classripple_1_1test_1_1reduce__relay__test.html#a7f40d89cd9719792db3ec7310244cd93">More...</a><br /></td></tr>
<tr class="separator:a7f40d89cd9719792db3ec7310244cd93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad016f2d4162ca03c4bf1aff2e40f5df8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#ad016f2d4162ca03c4bf1aff2e40f5df8">testPeerUnsquelchedTooSoon</a> (bool log)</td></tr>
<tr class="memdesc:ad016f2d4162ca03c4bf1aff2e40f5df8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Receiving message from squelched peer too soon should not change the slot's state to Counting. <a href="classripple_1_1test_1_1reduce__relay__test.html#ad016f2d4162ca03c4bf1aff2e40f5df8">More...</a><br /></td></tr>
<tr class="separator:ad016f2d4162ca03c4bf1aff2e40f5df8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57e1b32960f6d55e25f6e5bcb9b50459"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a57e1b32960f6d55e25f6e5bcb9b50459">testPeerUnsquelched</a> (bool log)</td></tr>
<tr class="memdesc:a57e1b32960f6d55e25f6e5bcb9b50459"><td class="mdescLeft">&#160;</td><td class="mdescRight">Receiving message from squelched peer should change the slot's state to Counting. <a href="classripple_1_1test_1_1reduce__relay__test.html#a57e1b32960f6d55e25f6e5bcb9b50459">More...</a><br /></td></tr>
<tr class="separator:a57e1b32960f6d55e25f6e5bcb9b50459"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d4e25580e1fbbe9b9cd62443ea75648"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a2d4e25580e1fbbe9b9cd62443ea75648">propagateAndSquelch</a> (bool log, bool purge=true, bool resetClock=true)</td></tr>
<tr class="memdesc:a2d4e25580e1fbbe9b9cd62443ea75648"><td class="mdescLeft">&#160;</td><td class="mdescRight">Propagate enough messages to generate one squelch event. <a href="classripple_1_1test_1_1reduce__relay__test.html#a2d4e25580e1fbbe9b9cd62443ea75648">More...</a><br /></td></tr>
<tr class="separator:a2d4e25580e1fbbe9b9cd62443ea75648"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a74c7472a14e78e6e23b9e83560344e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a3a74c7472a14e78e6e23b9e83560344e">propagateNoSquelch</a> (bool log, <a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> nMessages, bool countingState, bool purge=true, bool resetClock=true)</td></tr>
<tr class="memdesc:a3a74c7472a14e78e6e23b9e83560344e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send fewer message so that squelch event is not generated. <a href="classripple_1_1test_1_1reduce__relay__test.html#a3a74c7472a14e78e6e23b9e83560344e">More...</a><br /></td></tr>
<tr class="separator:a3a74c7472a14e78e6e23b9e83560344e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a075c95243c512993903f03b7da7aef62"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a075c95243c512993903f03b7da7aef62">testNewPeer</a> (bool log)</td></tr>
<tr class="memdesc:a075c95243c512993903f03b7da7aef62"><td class="mdescLeft">&#160;</td><td class="mdescRight">Receiving a message from new peer should change the slot's state to Counting. <a href="classripple_1_1test_1_1reduce__relay__test.html#a075c95243c512993903f03b7da7aef62">More...</a><br /></td></tr>
<tr class="separator:a075c95243c512993903f03b7da7aef62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebb78668649bd92db2ec58eac14ad614"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#aebb78668649bd92db2ec58eac14ad614">testSelectedPeerDisconnects</a> (bool log)</td></tr>
<tr class="memdesc:aebb78668649bd92db2ec58eac14ad614"><td class="mdescLeft">&#160;</td><td class="mdescRight">Selected peer disconnects. <a href="classripple_1_1test_1_1reduce__relay__test.html#aebb78668649bd92db2ec58eac14ad614">More...</a><br /></td></tr>
<tr class="separator:aebb78668649bd92db2ec58eac14ad614"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa729756cc1e3de8634eeef6430086baf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#aa729756cc1e3de8634eeef6430086baf">testSelectedPeerStopsRelaying</a> (bool log)</td></tr>
<tr class="memdesc:aa729756cc1e3de8634eeef6430086baf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Selected peer stops relaying. <a href="classripple_1_1test_1_1reduce__relay__test.html#aa729756cc1e3de8634eeef6430086baf">More...</a><br /></td></tr>
<tr class="separator:aa729756cc1e3de8634eeef6430086baf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05fd87af2d970d2222a3faef42766f11"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a05fd87af2d970d2222a3faef42766f11">testSquelchedPeerDisconnects</a> (bool log)</td></tr>
<tr class="memdesc:a05fd87af2d970d2222a3faef42766f11"><td class="mdescLeft">&#160;</td><td class="mdescRight">Squelched peer disconnects. <a href="classripple_1_1test_1_1reduce__relay__test.html#a05fd87af2d970d2222a3faef42766f11">More...</a><br /></td></tr>
<tr class="separator:a05fd87af2d970d2222a3faef42766f11"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf9729b605eefc284ea206ad3184f6e6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#abf9729b605eefc284ea206ad3184f6e6">testConfig</a> (bool log)</td></tr>
<tr class="separator:abf9729b605eefc284ea206ad3184f6e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a718c1bf68314139486eaa253b471c8f3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a718c1bf68314139486eaa253b471c8f3">testInternalHashRouter</a> (bool log)</td></tr>
<tr class="separator:a718c1bf68314139486eaa253b471c8f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8e1d229b2e7a36204bb66d0ec118154"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#ad8e1d229b2e7a36204bb66d0ec118154">testRandomSquelch</a> (bool l)</td></tr>
<tr class="separator:ad8e1d229b2e7a36204bb66d0ec118154"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a714853ccac02df2502045759ac482a36"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a714853ccac02df2502045759ac482a36">testHandshake</a> (bool log)</td></tr>
<tr class="separator:a714853ccac02df2502045759ac482a36"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a8e9c9fd3c4bd3f466bfbe2d8e5d33f81"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classripple_1_1test_1_1jtx_1_1Env.html">jtx::Env</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a8e9c9fd3c4bd3f466bfbe2d8e5d33f81">env_</a></td></tr>
<tr class="separator:a8e9c9fd3c4bd3f466bfbe2d8e5d33f81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5159c0a984f05e5b9a4f289e886223e1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classripple_1_1test_1_1Network.html">Network</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a5159c0a984f05e5b9a4f289e886223e1">network_</a></td></tr>
<tr class="separator:a5159c0a984f05e5b9a4f289e886223e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-types"></a>
Private Types</h2></td></tr>
<tr class="memitem:a2b13fd9b94fa108a9e2448569610b65a"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a2b13fd9b94fa108a9e2448569610b65a">Slot</a> = <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html">reduce_relay::Slot</a>&lt; <a class="el" href="classripple_1_1test_1_1ManualClock.html">ManualClock</a> &gt;</td></tr>
<tr class="separator:a2b13fd9b94fa108a9e2448569610b65a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22f401e345066d814b28d4d9fa51cee8"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a22f401e345066d814b28d4d9fa51cee8">id_t</a> = <a class="el" href="classripple_1_1Peer.html#a56cc3cdd9c73921f23cb43a2bfa696a1">Peer::id_t</a></td></tr>
<tr class="separator:a22f401e345066d814b28d4d9fa51cee8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a9ad2b1eb8514ae4109f0f5a394eb4100"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__simulate__test.html#a9ad2b1eb8514ae4109f0f5a394eb4100">testRandom</a> (bool log)</td></tr>
<tr class="separator:a9ad2b1eb8514ae4109f0f5a394eb4100"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6683bbc6449f26ae56eda7a69b453922"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1reduce__relay__simulate__test.html#a6683bbc6449f26ae56eda7a69b453922">run</a> () override</td></tr>
<tr class="separator:a6683bbc6449f26ae56eda7a69b453922"><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 class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l01579">1579</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a2b13fd9b94fa108a9e2448569610b65a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b13fd9b94fa108a9e2448569610b65a">&#9670;&nbsp;</a></span>Slot</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_1test_1_1reduce__relay__test.html#a2b13fd9b94fa108a9e2448569610b65a">ripple::test::reduce_relay_test::Slot</a> = <a class="el" href="classripple_1_1reduce__relay_1_1Slot.html">reduce_relay::Slot</a>&lt;<a class="el" href="classripple_1_1test_1_1ManualClock.html">ManualClock</a>&gt;</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l00879">879</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<a id="a22f401e345066d814b28d4d9fa51cee8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a22f401e345066d814b28d4d9fa51cee8">&#9670;&nbsp;</a></span>id_t</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_1test_1_1reduce__relay__test.html#a22f401e345066d814b28d4d9fa51cee8">ripple::test::reduce_relay_test::id_t</a> = <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 class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l00880">880</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a14441737f30e94f46c7a775c1a504b5b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14441737f30e94f46c7a775c1a504b5b">&#9670;&nbsp;</a></span>State</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a14441737f30e94f46c7a775c1a504b5b">ripple::test::reduce_relay_test::State</a></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a14441737f30e94f46c7a775c1a504b5bab681bc2d4ae474dce5735b0ca4fb3963"></a>On&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a14441737f30e94f46c7a775c1a504b5bae88c8a9b1380f3477d59cadc90316492"></a>Off&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a14441737f30e94f46c7a775c1a504b5ba3544829093ee68a8e1d99b4bd3913f34"></a>WaitReset&#160;</td><td class="fielddoc"></td></tr>
</table>
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l00915">915</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<a id="a19b9ca38a0b8be47fdbb53fb2e6f229c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19b9ca38a0b8be47fdbb53fb2e6f229c">&#9670;&nbsp;</a></span>EventType</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classripple_1_1test_1_1reduce__relay__test.html#a19b9ca38a0b8be47fdbb53fb2e6f229c">ripple::test::reduce_relay_test::EventType</a></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a19b9ca38a0b8be47fdbb53fb2e6f229ca2095c2f99f9f8c542ee2e1d7dcbd6400"></a>LinkDown&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a19b9ca38a0b8be47fdbb53fb2e6f229ca3d9f9c80d39d6105ec9303000c4b948e"></a>PeerDisconnected&#160;</td><td class="fielddoc"></td></tr>
</table>
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l00916">916</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a9ad2b1eb8514ae4109f0f5a394eb4100"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ad2b1eb8514ae4109f0f5a394eb4100">&#9670;&nbsp;</a></span>testRandom()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ripple::test::reduce_relay_simulate_test::testRandom </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>log</em></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 class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l01582">1582</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<a id="a6683bbc6449f26ae56eda7a69b453922"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6683bbc6449f26ae56eda7a69b453922">&#9670;&nbsp;</a></span>run()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ripple::test::reduce_relay_simulate_test::run </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l01588">1588</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<a id="a75f851d11a1146ee76590e50046bb865"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a75f851d11a1146ee76590e50046bb865">&#9670;&nbsp;</a></span>printPeers()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ripple::test::reduce_relay_test::printPeers </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &amp;&#160;</td>
<td class="paramname"><em>msg</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a>&#160;</td>
<td class="paramname"><em>validator</em> = <code>0</code>&#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">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l00884">884</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<a id="a3e9bd02ca3d3f9cae61982ba146a2b47"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e9bd02ca3d3f9cae61982ba146a2b47">&#9670;&nbsp;</a></span>sendSquelch()</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_1Peer.html#a56cc3cdd9c73921f23cb43a2bfa696a1">Peer::id_t</a> ripple::test::reduce_relay_test::sendSquelch </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &amp;&#160;</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_1test.html#aa1cebcfe0b22832451be2f79791a9b56">PeerWPtr</a> const &amp;&#160;</td>
<td class="paramname"><em>peerPtr</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="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> &gt;&#160;</td>
<td class="paramname"><em>duration</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">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Send squelch (if duration is set) or unsquelch (if duration not set) </p>
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l00898">898</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<a id="a1e4ca44be9c15127eb6b758d51300116"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e4ca44be9c15127eb6b758d51300116">&#9670;&nbsp;</a></span>random()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ripple::test::reduce_relay_test::random </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>log</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Randomly brings the link between a validator and a peer down. </p>
<p>Randomly disconnects a peer. Those events are generated one at a time. </p>
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l00938">938</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<a id="a2ceca0735fa0fd6ee70209913005bb75"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ceca0735fa0fd6ee70209913005bb75">&#9670;&nbsp;</a></span>checkCounting()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool ripple::test::reduce_relay_test::checkCounting </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &amp;&#160;</td>
<td class="paramname"><em>validator</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>isCountingState</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">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l01112">1112</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<a id="a893103e6a3ac66cc9f6fb5023bc28145"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a893103e6a3ac66cc9f6fb5023bc28145">&#9670;&nbsp;</a></span>doTest()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ripple::test::reduce_relay_test::doTest </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &amp;&#160;</td>
<td class="paramname"><em>msg</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>log</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a>&lt; void(bool)&gt;&#160;</td>
<td class="paramname"><em>f</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">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l01120">1120</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<a id="a7f40d89cd9719792db3ec7310244cd93"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f40d89cd9719792db3ec7310244cd93">&#9670;&nbsp;</a></span>testInitialRound()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ripple::test::reduce_relay_test::testInitialRound </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>log</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Initial counting round: three peers receive message "faster" then others. </p>
<p>Once the message count for the three peers reaches threshold the rest of the peers are squelched and the slot for the given validator is in Selected state. </p>
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l01132">1132</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<a id="ad016f2d4162ca03c4bf1aff2e40f5df8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad016f2d4162ca03c4bf1aff2e40f5df8">&#9670;&nbsp;</a></span>testPeerUnsquelchedTooSoon()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ripple::test::reduce_relay_test::testPeerUnsquelchedTooSoon </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>log</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Receiving message from squelched peer too soon should not change the slot's state to Counting. </p>
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l01143">1143</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<a id="a57e1b32960f6d55e25f6e5bcb9b50459"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57e1b32960f6d55e25f6e5bcb9b50459">&#9670;&nbsp;</a></span>testPeerUnsquelched()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ripple::test::reduce_relay_test::testPeerUnsquelched </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>log</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Receiving message from squelched peer should change the slot's state to Counting. </p>
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l01154">1154</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<a id="a2d4e25580e1fbbe9b9cd62443ea75648"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2d4e25580e1fbbe9b9cd62443ea75648">&#9670;&nbsp;</a></span>propagateAndSquelch()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool ripple::test::reduce_relay_test::propagateAndSquelch </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>log</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>purge</em> = <code>true</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>resetClock</em> = <code>true</code>&#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">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Propagate enough messages to generate one squelch event. </p>
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l01164">1164</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<a id="a3a74c7472a14e78e6e23b9e83560344e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a74c7472a14e78e6e23b9e83560344e">&#9670;&nbsp;</a></span>propagateNoSquelch()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool ripple::test::reduce_relay_test::propagateNoSquelch </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>log</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a>&#160;</td>
<td class="paramname"><em>nMessages</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>countingState</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>purge</em> = <code>true</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>resetClock</em> = <code>true</code>&#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">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Send fewer message so that squelch event is not generated. </p>
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l01200">1200</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<a id="a075c95243c512993903f03b7da7aef62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a075c95243c512993903f03b7da7aef62">&#9670;&nbsp;</a></span>testNewPeer()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ripple::test::reduce_relay_test::testNewPeer </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>log</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Receiving a message from new peer should change the slot's state to Counting. </p>
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l01231">1231</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<a id="aebb78668649bd92db2ec58eac14ad614"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aebb78668649bd92db2ec58eac14ad614">&#9670;&nbsp;</a></span>testSelectedPeerDisconnects()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ripple::test::reduce_relay_test::testSelectedPeerDisconnects </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>log</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Selected peer disconnects. </p>
<p>Should change the state to counting and unsquelch squelched peers. </p>
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l01243">1243</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<a id="aa729756cc1e3de8634eeef6430086baf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa729756cc1e3de8634eeef6430086baf">&#9670;&nbsp;</a></span>testSelectedPeerStopsRelaying()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ripple::test::reduce_relay_test::testSelectedPeerStopsRelaying </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>log</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Selected peer stops relaying. </p>
<p>Should change the state to counting and unsquelch squelched peers. </p>
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l01263">1263</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<a id="a05fd87af2d970d2222a3faef42766f11"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05fd87af2d970d2222a3faef42766f11">&#9670;&nbsp;</a></span>testSquelchedPeerDisconnects()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ripple::test::reduce_relay_test::testSquelchedPeerDisconnects </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>log</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Squelched peer disconnects. </p>
<p>Should not change the state to counting. </p>
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l01284">1284</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<a id="abf9729b605eefc284ea206ad3184f6e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf9729b605eefc284ea206ad3184f6e6">&#9670;&nbsp;</a></span>testConfig()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ripple::test::reduce_relay_test::testConfig </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>log</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l01306">1306</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<a id="a718c1bf68314139486eaa253b471c8f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a718c1bf68314139486eaa253b471c8f3">&#9670;&nbsp;</a></span>testInternalHashRouter()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ripple::test::reduce_relay_test::testInternalHashRouter </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>log</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l01348">1348</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<a id="ad8e1d229b2e7a36204bb66d0ec118154"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad8e1d229b2e7a36204bb66d0ec118154">&#9670;&nbsp;</a></span>testRandomSquelch()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ripple::test::reduce_relay_test::testRandomSquelch </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>l</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l01410">1410</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<a id="a714853ccac02df2502045759ac482a36"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a714853ccac02df2502045759ac482a36">&#9670;&nbsp;</a></span>testHandshake()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ripple::test::reduce_relay_test::testHandshake </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>log</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l01489">1489</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a8e9c9fd3c4bd3f466bfbe2d8e5d33f81"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e9c9fd3c4bd3f466bfbe2d8e5d33f81">&#9670;&nbsp;</a></span>env_</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_1test_1_1jtx_1_1Env.html">jtx::Env</a> ripple::test::reduce_relay_test::env_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l01553">1553</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
<a id="a5159c0a984f05e5b9a4f289e886223e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5159c0a984f05e5b9a4f289e886223e1">&#9670;&nbsp;</a></span>network_</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_1test_1_1Network.html">Network</a> ripple::test::reduce_relay_test::network_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="reduce__relay__test_8cpp_source.html#l01554">1554</a> of file <a class="el" href="reduce__relay__test_8cpp_source.html">reduce_relay_test.cpp</a>.</p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>