Files
rippled/tx__reduce__relay__test_8cpp_source.html
2026-01-05 06:58:21 -08:00

461 lines
89 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: tx_reduce_relay_test.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">rippled
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
<!-- 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="dir_120ed4da3e3217b1e7fc0b4f48568e79.html">test</a></li><li class="navelem"><a class="el" href="dir_d1feb4416989cd829d5b1945d720f449.html">overlay</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">tx_reduce_relay_test.cpp</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#include &lt;test/jtx.h&gt;</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#include &lt;test/jtx/Env.h&gt;</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include &lt;xrpld/overlay/detail/OverlayImpl.h&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include &lt;xrpld/overlay/detail/PeerImp.h&gt;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include &lt;xrpld/peerfinder/detail/SlotImp.h&gt;</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include &lt;xrpl/basics/make_SSLContext.h&gt;</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include &lt;xrpl/beast/unit_test.h&gt;</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacexrpl.html">xrpl</a> {</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> </div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="keyword">namespace </span>test {</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> </div>
<div class="foldopen" id="foldopen00015" data-start="{" data-end="};">
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html"> 15</a></span><span class="keyword">class </span><a class="code hl_class" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html">tx_reduce_relay_test</a> : <span class="keyword">public</span> <a class="code hl_class" href="classbeast_1_1unit__test_1_1suite.html">beast::unit_test::suite</a></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span>{</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a7c8014087e976055132e071a325f84d4"> 18</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a7c8014087e976055132e071a325f84d4">socket_type</a> = boost::asio::ip::tcp::socket;</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#aac65d247896fd56ab109e98c49324add"> 19</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#aac65d247896fd56ab109e98c49324add">middle_type</a> = boost::beast::tcp_stream;</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#adea15e6d97ab4ed29bd2540a716b2823"> 20</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#adea15e6d97ab4ed29bd2540a716b2823">stream_type</a> = boost::beast::ssl_stream&lt;middle_type&gt;;</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#aae8facf5322c78894988b7a5679248c1"> 21</a></span> <span class="keyword">using </span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">shared_context</a> = <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;boost::asio::ssl::context&gt;</a>;</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00025" data-start="{" data-end="}">
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#aecc54ae333b164384291c2d449007add"> 25</a></span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#aecc54ae333b164384291c2d449007add">doTest</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; msg, <span class="keywordtype">bool</span> <a class="code hl_variable" href="classbeast_1_1unit__test_1_1suite.html#a19b8ee0ce850d78834984655ae83b20e">log</a>, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a>&lt;<span class="keywordtype">void</span>(<span class="keywordtype">bool</span>)&gt; f)</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> {</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <a class="code hl_variable" href="classbeast_1_1unit__test_1_1suite.html#aaa1237d9b85c69d35fe86645cee094b5">testcase</a>(msg);</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> f(<a class="code hl_variable" href="classbeast_1_1unit__test_1_1suite.html#a19b8ee0ce850d78834984655ae83b20e">log</a>);</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> }</div>
</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00032" data-start="{" data-end="}">
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a6d86338171c5919284b731172007802d"> 32</a></span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a6d86338171c5919284b731172007802d">testConfig</a>(<span class="keywordtype">bool</span> <a class="code hl_variable" href="classbeast_1_1unit__test_1_1suite.html#a19b8ee0ce850d78834984655ae83b20e">log</a>)</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> {</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#aecc54ae333b164384291c2d449007add">doTest</a>(<span class="stringliteral">&quot;Config Test&quot;</span>, <a class="code hl_variable" href="classbeast_1_1unit__test_1_1suite.html#a19b8ee0ce850d78834984655ae83b20e">log</a>, [&amp;](<span class="keywordtype">bool</span> <a class="code hl_variable" href="classbeast_1_1unit__test_1_1suite.html#a19b8ee0ce850d78834984655ae83b20e">log</a>) {</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <span class="keyword">auto</span> test = [&amp;](<span class="keywordtype">bool</span> enable,</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <span class="keywordtype">bool</span> metrics,</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> min,</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> pct,</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keywordtype">bool</span> <a class="code hl_enumvalue" href="namespacexrpl.html#ad1f0c105424fa7b20beea9ff9a0f2656a260ca9dd8a4577fc00b7bd5810298076">success</a> = <span class="keyword">true</span>) {</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a> str(<span class="stringliteral">&quot;[reduce_relay]&quot;</span>);</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> str &lt;&lt; <span class="stringliteral">&quot;[reduce_relay]\n&quot;</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> &lt;&lt; <span class="stringliteral">&quot;tx_enable=&quot;</span> &lt;&lt; <span class="keyword">static_cast&lt;</span><span class="keywordtype">int</span><span class="keyword">&gt;</span>(enable) &lt;&lt; <span class="stringliteral">&quot;\n&quot;</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> &lt;&lt; <span class="stringliteral">&quot;tx_metrics=&quot;</span> &lt;&lt; <span class="keyword">static_cast&lt;</span><span class="keywordtype">int</span><span class="keyword">&gt;</span>(metrics) &lt;&lt; <span class="stringliteral">&quot;\n&quot;</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> &lt;&lt; <span class="stringliteral">&quot;tx_min_peers=&quot;</span> &lt;&lt; min &lt;&lt; <span class="stringliteral">&quot;\n&quot;</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> &lt;&lt; <span class="stringliteral">&quot;tx_relay_percentage=&quot;</span> &lt;&lt; pct &lt;&lt; <span class="stringliteral">&quot;\n&quot;</span>;</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <a class="code hl_class" href="classxrpl_1_1Config.html">Config</a> c;</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="keywordflow">try</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> {</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> c.<a class="code hl_function" href="classxrpl_1_1Config.html#a871dc2f37455159feaa36eb0b91b6c3b">loadFromString</a>(str.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream/str.html">str</a>());</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> BEAST_EXPECT(c.<a class="code hl_variable" href="classxrpl_1_1Config.html#a2b6479c69736f7f633c5dfd6bbc9908c">TX_REDUCE_RELAY_ENABLE</a> == enable);</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> BEAST_EXPECT(c.<a class="code hl_variable" href="classxrpl_1_1Config.html#aa646d25eb060106518aab6b0f4210a36">TX_REDUCE_RELAY_METRICS</a> == metrics);</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> BEAST_EXPECT(c.<a class="code hl_variable" href="classxrpl_1_1Config.html#af559d587f075789fad7195f7daf79bf5">TX_REDUCE_RELAY_MIN_PEERS</a> == min);</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> BEAST_EXPECT(c.<a class="code hl_variable" href="classxrpl_1_1Config.html#a81730e751e008ebd2480ab7588d1725c">TX_RELAY_PERCENTAGE</a> == pct);</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="keywordflow">if</span> (<a class="code hl_enumvalue" href="namespacexrpl.html#ad1f0c105424fa7b20beea9ff9a0f2656a260ca9dd8a4577fc00b7bd5810298076">success</a>)</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <a class="code hl_function" href="classbeast_1_1unit__test_1_1suite.html#a5c723fb774d3c25ba877c5b9ce681d6f">pass</a>();</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="keywordflow">else</span></div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <a class="code hl_function" href="classbeast_1_1unit__test_1_1suite.html#af5ea30f883ad3a2a841af60a9a82c29c">fail</a>();</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> }</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="keywordflow">catch</span> (...)</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> {</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keywordflow">if</span> (<a class="code hl_enumvalue" href="namespacexrpl.html#ad1f0c105424fa7b20beea9ff9a0f2656a260ca9dd8a4577fc00b7bd5810298076">success</a>)</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <a class="code hl_function" href="classbeast_1_1unit__test_1_1suite.html#af5ea30f883ad3a2a841af60a9a82c29c">fail</a>();</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="keywordflow">else</span></div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <a class="code hl_function" href="classbeast_1_1unit__test_1_1suite.html#a5c723fb774d3c25ba877c5b9ce681d6f">pass</a>();</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> }</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> };</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> </div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> test(<span class="keyword">true</span>, <span class="keyword">true</span>, 20, 25);</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> test(<span class="keyword">false</span>, <span class="keyword">false</span>, 20, 25);</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> test(<span class="keyword">false</span>, <span class="keyword">false</span>, 20, 0, <span class="keyword">false</span>);</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> test(<span class="keyword">false</span>, <span class="keyword">false</span>, 20, 101, <span class="keyword">false</span>);</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> test(<span class="keyword">false</span>, <span class="keyword">false</span>, 9, 10, <span class="keyword">false</span>);</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> test(<span class="keyword">false</span>, <span class="keyword">false</span>, 10, 9, <span class="keyword">false</span>);</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> });</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> }</div>
</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> </div>
<div class="foldopen" id="foldopen00078" data-start="{" data-end="};">
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html"> 78</a></span> <span class="keyword">class </span><a class="code hl_class" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html">PeerTest</a> : <span class="keyword">public</span> <a class="code hl_class" href="classxrpl_1_1PeerImp.html">PeerImp</a></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> {</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="keyword">public</span>:</div>
<div class="foldopen" id="foldopen00081" data-start="{" data-end="}">
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#ac321184d85f7987541fcb1c509f72e44"> 81</a></span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#ac321184d85f7987541fcb1c509f72e44">PeerTest</a>(</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <a class="code hl_class" href="classxrpl_1_1Application.html">Application</a>&amp; app,</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;PeerFinder::Slot&gt;</a> <span class="keyword">const</span>&amp; <a class="code hl_function" href="classxrpl_1_1PeerImp.html#a111dccfb98bf9e7e3113bc3dc104698d">slot</a>,</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <a class="code hl_typedef" href="namespacexrpl.html#a3a4ac74e54fc39e5c6f7f61f93db19c1">http_request_type</a>&amp;&amp; request,</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <a class="code hl_class" href="classxrpl_1_1PublicKey.html">PublicKey</a> <span class="keyword">const</span>&amp; publicKey,</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">ProtocolVersion</a> <a class="code hl_namespace" href="namespaceprotocol.html">protocol</a>,</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <a class="code hl_class" href="classxrpl_1_1Resource_1_1Consumer.html">Resource::Consumer</a> consumer,</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr&lt;tx_reduce_relay_test::stream_type&gt;</a>&amp;&amp; stream_ptr,</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <a class="code hl_class" href="classxrpl_1_1OverlayImpl.html">OverlayImpl</a>&amp; overlay)</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> : <a class="code hl_class" href="classxrpl_1_1PeerImp.html">PeerImp</a>(</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> app,</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a3c8112d3a6fa896ab276245e39565600">sid_</a>,</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <a class="code hl_function" href="classxrpl_1_1PeerImp.html#a111dccfb98bf9e7e3113bc3dc104698d">slot</a>,</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <a class="code hl_namespace" href="namespacestd.html">std</a>::move(request),</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> publicKey,</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <a class="code hl_namespace" href="namespaceprotocol.html">protocol</a>,</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> consumer,</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <a class="code hl_namespace" href="namespacestd.html">std</a>::move(stream_ptr),</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> overlay)</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> {</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a3c8112d3a6fa896ab276245e39565600">sid_</a>++;</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> }</div>
</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#ae5f1754be96b72cb47dbb0d312c6ce67"> 103</a></span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#ae5f1754be96b72cb47dbb0d312c6ce67">~PeerTest</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> </div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00106" data-start="{" data-end="}">
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a3bd9b8098dbd51feae92f07f71aaceb9"> 106</a></span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a3bd9b8098dbd51feae92f07f71aaceb9">run</a>()<span class="keyword"> override</span></div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> }</div>
</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00110" data-start="{" data-end="}">
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#aa45b461c1d9245cbd18cceb531cb993d"> 110</a></span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#aa45b461c1d9245cbd18cceb531cb993d">send</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Message&gt;</a> <span class="keyword">const</span>&amp;)<span class="keyword"> override</span></div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a43526b2644448cbba25b69f50da8d898">sendTx_</a>++;</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> }</div>
</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00115" data-start="{" data-end="}">
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a62c4e5c9ceecbf2b2a4d34e88a564f1c"> 115</a></span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a62c4e5c9ceecbf2b2a4d34e88a564f1c">addTxQueue</a>(<a class="code hl_class" href="classxrpl_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; hash)<span class="keyword"> override</span></div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a60bcf2c6b650a17a2667870b05c28a2a">queueTx_</a>++;</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> }</div>
</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00120" data-start="{" data-end="}">
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a9b3b7a5543b8588f25af80d701a9363f"> 120</a></span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a9b3b7a5543b8588f25af80d701a9363f">init</a>()</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> {</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a60bcf2c6b650a17a2667870b05c28a2a">queueTx_</a> = 0;</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a43526b2644448cbba25b69f50da8d898">sendTx_</a> = 0;</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a3c8112d3a6fa896ab276245e39565600">sid_</a> = 0;</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> }</div>
</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a3c8112d3a6fa896ab276245e39565600"> 126</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a3c8112d3a6fa896ab276245e39565600">sid_</a> = 0;</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a60bcf2c6b650a17a2667870b05c28a2a"> 127</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a60bcf2c6b650a17a2667870b05c28a2a">queueTx_</a> = 0;</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a43526b2644448cbba25b69f50da8d898"> 128</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a43526b2644448cbba25b69f50da8d898">sendTx_</a> = 0;</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> };</div>
</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> </div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#aace3c1349df4c1884d128e8269c2cb92"> 131</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#aace3c1349df4c1884d128e8269c2cb92">lid_</a>{0};</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a9e52f14d36ba0563eccd23aa9ef5f2e2"> 132</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a9e52f14d36ba0563eccd23aa9ef5f2e2">rid_</a>{1};</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#ae70760bb28baaabe1443c6500ad2bbf0"> 133</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">shared_context</a> <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#ae70760bb28baaabe1443c6500ad2bbf0">context_</a>;</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a4f3185ce0d1011d41f482b2457dd91de"> 134</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">ProtocolVersion</a> <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a4f3185ce0d1011d41f482b2457dd91de">protocolVersion_</a>;</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a7d7854b340bf6fbaf8893a431cb4c3e6"> 135</a></span> boost::beast::multi_buffer <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a7d7854b340bf6fbaf8893a431cb4c3e6">read_buf_</a>;</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> </div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span><span class="keyword">public</span>:</div>
<div class="foldopen" id="foldopen00138" data-start="{" data-end="}">
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#acabc3f74aebba64ca42c2852f8b37421"> 138</a></span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#acabc3f74aebba64ca42c2852f8b37421">tx_reduce_relay_test</a>()</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> : <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#ae70760bb28baaabe1443c6500ad2bbf0">context_</a>(<a class="code hl_function" href="namespacexrpl.html#a5134a3e644a40509d0840760ed14d7a2">make_SSLContext</a>(<span class="stringliteral">&quot;&quot;</span>)), <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a4f3185ce0d1011d41f482b2457dd91de">protocolVersion_</a>{1, 7}</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> {</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> }</div>
</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> </div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00145" data-start="{" data-end="}">
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a694badf9950c6c6713bd7233469da6f7"> 145</a></span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a694badf9950c6c6713bd7233469da6f7">addPeer</a>(</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <a class="code hl_class" href="classxrpl_1_1test_1_1jtx_1_1Env.html">jtx::Env</a>&amp; env,</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt;<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;PeerTest&gt;</a>&gt;&amp; peers,</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a>&amp; nDisabled)</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> {</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> <span class="keyword">auto</span>&amp; overlay = <span class="keyword">dynamic_cast&lt;</span><a class="code hl_class" href="classxrpl_1_1OverlayImpl.html">OverlayImpl</a>&amp;<span class="keyword">&gt;</span>(env.<a class="code hl_function" href="classxrpl_1_1test_1_1jtx_1_1Env.html#a00e2950377b152b92bbf93e4b3c8c474">app</a>().<a class="code hl_function" href="classxrpl_1_1Application.html#ac6a91561d0d7a703f6a90ceacd32caef">overlay</a>());</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> boost::beast::http::request&lt;boost::beast::http::dynamic_body&gt; request;</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> (nDisabled == 0)</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> ? (<span class="keywordtype">void</span>)request.insert(</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> <span class="stringliteral">&quot;X-Protocol-Ctl&quot;</span>,</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <a class="code hl_function" href="namespacexrpl.html#aa86b0eef42a9aff91d0a0c2a7d665fc3">makeFeaturesRequestHeader</a>(<span class="keyword">false</span>, <span class="keyword">false</span>, <span class="keyword">true</span>, <span class="keyword">false</span>))</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> : (void)nDisabled--;</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> <span class="keyword">auto</span> stream_ptr = <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::make_unique&lt;stream_type&gt;</a>(</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> <a class="code hl_typedef" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a7c8014087e976055132e071a325f84d4">socket_type</a>(<a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::forward&lt;boost::asio::io_context&amp;&gt;</a>(</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> env.<a class="code hl_function" href="classxrpl_1_1test_1_1jtx_1_1Env.html#a00e2950377b152b92bbf93e4b3c8c474">app</a>().<a class="code hl_function" href="classxrpl_1_1Application.html#a947bd93203b27c026c29d79fa2a90ed6">getIOContext</a>())),</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> *<a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#ae70760bb28baaabe1443c6500ad2bbf0">context_</a>);</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> <a class="code hl_class" href="classbeast_1_1IP_1_1Endpoint.html">beast::IP::Endpoint</a> local(</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> boost::asio::ip::make_address(<span class="stringliteral">&quot;172.1.1.&quot;</span> + <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/string/basic_string/to_string.html">std::to_string</a>(<a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#aace3c1349df4c1884d128e8269c2cb92">lid_</a>)));</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> <a class="code hl_class" href="classbeast_1_1IP_1_1Endpoint.html">beast::IP::Endpoint</a> remote(</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> boost::asio::ip::make_address(<span class="stringliteral">&quot;172.1.1.&quot;</span> + <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/string/basic_string/to_string.html">std::to_string</a>(<a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a9e52f14d36ba0563eccd23aa9ef5f2e2">rid_</a>)));</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <a class="code hl_class" href="classxrpl_1_1PublicKey.html">PublicKey</a> key(<a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::get&lt;0&gt;</a>(<a class="code hl_function" href="namespacexrpl.html#a0cdcad0a3c6a2c14de0860e9ad61b8e1">randomKeyPair</a>(<a class="code hl_enumvalue" href="namespacexrpl.html#a0b0d50fcc4520f33b4417f1b74eee591a8183aa2c95dc1385c8f58bf1917fcb0b">KeyType::ed25519</a>)));</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> <span class="keyword">auto</span> consumer = overlay.resourceManager().newInboundEndpoint(remote);</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> <span class="keyword">auto</span> [slot, _] = overlay.peerFinder().new_inbound_slot(local, remote);</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> <span class="keyword">auto</span> <span class="keyword">const</span> peer = <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::make_shared&lt;PeerTest&gt;</a>(</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> env.<a class="code hl_function" href="classxrpl_1_1test_1_1jtx_1_1Env.html#a00e2950377b152b92bbf93e4b3c8c474">app</a>(),</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> slot,</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> std::move(request),</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> key,</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a4f3185ce0d1011d41f482b2457dd91de">protocolVersion_</a>,</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> consumer,</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> std::move(stream_ptr),</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> overlay);</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> BEAST_EXPECT(</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> overlay.findPeerByPublicKey(key) == <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;PeerImp&gt;</a>{});</div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> overlay.add_active(peer);</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> BEAST_EXPECT(overlay.findPeerByPublicKey(key) == peer);</div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> peers.emplace_back(peer); <span class="comment">// overlay stores week ptr to PeerImp</span></div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#aace3c1349df4c1884d128e8269c2cb92">lid_</a> += 2;</div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a9e52f14d36ba0563eccd23aa9ef5f2e2">rid_</a> += 2;</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> assert(<a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#aace3c1349df4c1884d128e8269c2cb92">lid_</a> &lt;= 254);</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> }</div>
</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> </div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00188" data-start="{" data-end="}">
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a4eda0fb6d4b20904f77b49a285114116"> 188</a></span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a4eda0fb6d4b20904f77b49a285114116">testRelay</a>(</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; test,</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> <span class="keywordtype">bool</span> txRREnabled,</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> nPeers,</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> nDisabled,</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> minPeers,</div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> relayPercentage,</div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> expectRelay,</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> expectQueue,</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set&lt;Peer::id_t&gt;</a> <span class="keyword">const</span>&amp; toSkip = {})</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> {</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> <a class="code hl_variable" href="classbeast_1_1unit__test_1_1suite.html#aaa1237d9b85c69d35fe86645cee094b5">testcase</a>(test);</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> <a class="code hl_class" href="classxrpl_1_1test_1_1jtx_1_1Env.html">jtx::Env</a> env(*<span class="keyword">this</span>);</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;std::shared_ptr&lt;PeerTest&gt;</a>&gt; peers;</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> env.app().config().TX_REDUCE_RELAY_ENABLE = txRREnabled;</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> env.app().config().TX_REDUCE_RELAY_MIN_PEERS = minPeers;</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> env.app().config().TX_RELAY_PERCENTAGE = relayPercentage;</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a9b3b7a5543b8588f25af80d701a9363f">PeerTest::init</a>();</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#aace3c1349df4c1884d128e8269c2cb92">lid_</a> = 0;</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a9e52f14d36ba0563eccd23aa9ef5f2e2">rid_</a> = 0;</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; nPeers; i++)</div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a694badf9950c6c6713bd7233469da6f7">addPeer</a>(env, peers, nDisabled);</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> </div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> <span class="keyword">auto</span> <span class="keyword">const</span> jtx = env.jt(<a class="code hl_enumvalue" href="namespacexrpl.html#adfcfa25ccc459fa509f891e4009ac1e3a5483bf26dec486ec0175e2a3ca816a0a">noop</a>(env.master));</div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> <span class="keywordflow">if</span> (BEAST_EXPECT(jtx.stx))</div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> {</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> protocol::TMTransaction m;</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> <a class="code hl_class" href="classxrpl_1_1Serializer.html">Serializer</a> s;</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> jtx.stx-&gt;add(s);</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> m.set_rawtransaction(s.<a class="code hl_function" href="classxrpl_1_1Serializer.html#aeb6510cb75e2a70eb986432a4f13d06e">data</a>(), s.<a class="code hl_function" href="classxrpl_1_1Serializer.html#abcfcb2a115105c462cec13fab8f6794b">size</a>());</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> m.set_deferred(<span class="keyword">false</span>);</div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> m.set_status(protocol::TransactionStatus::tsNEW);</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> env.app().overlay().relay(<a class="code hl_class" href="classxrpl_1_1base__uint.html">uint256</a>{0}, m, toSkip);</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> BEAST_EXPECT(</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a43526b2644448cbba25b69f50da8d898">PeerTest::sendTx_</a> == expectRelay &amp;&amp;</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> <a class="code hl_variable" href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a60bcf2c6b650a17a2667870b05c28a2a">PeerTest::queueTx_</a> == expectQueue);</div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> }</div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> }</div>
</div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> </div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00228" data-start="{" data-end="}">
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"><a class="line" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#aba41bbeb2ba969dfa0157923cf68e270"> 228</a></span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#aba41bbeb2ba969dfa0157923cf68e270">run</a>()<span class="keyword"> override</span></div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="classbeast_1_1unit__test_1_1suite.html#a19b8ee0ce850d78834984655ae83b20e">log</a> = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set&lt;Peer::id_t&gt;</a> skip = {0, 1, 2, 3, 4};</div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a6d86338171c5919284b731172007802d">testConfig</a>(<a class="code hl_variable" href="classbeast_1_1unit__test_1_1suite.html#a19b8ee0ce850d78834984655ae83b20e">log</a>);</div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> <span class="comment">// relay to all peers, no hash queue</span></div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a4eda0fb6d4b20904f77b49a285114116">testRelay</a>(<span class="stringliteral">&quot;feature disabled&quot;</span>, <span class="keyword">false</span>, 10, 0, 10, 25, 10, 0);</div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> <span class="comment">// relay to nPeers - skip (10-5=5)</span></div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a4eda0fb6d4b20904f77b49a285114116">testRelay</a>(<span class="stringliteral">&quot;feature disabled &amp; skip&quot;</span>, <span class="keyword">false</span>, 10, 0, 10, 25, 5, 0, skip);</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> <span class="comment">// relay to all peers because min is greater than nPeers</span></div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a4eda0fb6d4b20904f77b49a285114116">testRelay</a>(<span class="stringliteral">&quot;relay all 1&quot;</span>, <span class="keyword">true</span>, 10, 0, 20, 25, 10, 0);</div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> <span class="comment">// relay to all peers because min + disabled is greater thant nPeers</span></div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a4eda0fb6d4b20904f77b49a285114116">testRelay</a>(<span class="stringliteral">&quot;relay all 2&quot;</span>, <span class="keyword">true</span>, 20, 15, 10, 25, 20, 0);</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> <span class="comment">// relay to minPeers + 25% of nPeers-minPeers (20+0.25*(60-20)=30),</span></div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> <span class="comment">// queue the rest (30)</span></div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a4eda0fb6d4b20904f77b49a285114116">testRelay</a>(<span class="stringliteral">&quot;relay &amp; queue&quot;</span>, <span class="keyword">true</span>, 60, 0, 20, 25, 30, 30);</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> <span class="comment">// relay to minPeers + 25% of (nPeers - nPeers) - skip</span></div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> <span class="comment">// (20+0.25*(60-20)-5=25), queue the rest, skip counts towards relayed</span></div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> <span class="comment">// (60-25-5=30)</span></div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a4eda0fb6d4b20904f77b49a285114116">testRelay</a>(<span class="stringliteral">&quot;skip&quot;</span>, <span class="keyword">true</span>, 60, 0, 20, 25, 25, 30, skip);</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> <span class="comment">// relay to minPeers + disabled + 25% of (nPeers - minPeers - disabled)</span></div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> <span class="comment">// (20+10+0.25*(70-20-10)=40), queue the rest (30)</span></div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a4eda0fb6d4b20904f77b49a285114116">testRelay</a>(<span class="stringliteral">&quot;disabled&quot;</span>, <span class="keyword">true</span>, 70, 10, 20, 25, 40, 30);</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> <span class="comment">// relay to minPeers + disabled-not-in-skip + 25% of (nPeers - minPeers</span></div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> <span class="comment">// - disabled) (20+5+0.25*(70-20-10)=35), queue the rest, skip counts</span></div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> <span class="comment">// towards relayed (70-35-5=30))</span></div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a4eda0fb6d4b20904f77b49a285114116">testRelay</a>(<span class="stringliteral">&quot;disabled &amp; skip&quot;</span>, <span class="keyword">true</span>, 70, 10, 20, 25, 35, 30, skip);</div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> <span class="comment">// relay to minPeers + disabled + 25% of (nPeers - minPeers - disabled)</span></div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> <span class="comment">// - skip (10+5+0.25*(15-10-5)-10=5), queue the rest, skip counts</span></div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> <span class="comment">// towards relayed (15-5-10=0)</span></div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> skip = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};</div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a4eda0fb6d4b20904f77b49a285114116">testRelay</a>(<span class="stringliteral">&quot;disabled &amp; skip, no queue&quot;</span>, <span class="keyword">true</span>, 15, 5, 10, 25, 5, 0, skip);</div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> <span class="comment">// relay to minPeers + disabled + 25% of (nPeers - minPeers - disabled)</span></div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> <span class="comment">// - skip (10+2+0.25*(20-10-2)-14=0), queue the rest, skip counts</span></div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> <span class="comment">// towards relayed (20-14=6)</span></div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> skip = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13};</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> <a class="code hl_function" href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a4eda0fb6d4b20904f77b49a285114116">testRelay</a>(<span class="stringliteral">&quot;disabled &amp; skip, no relay&quot;</span>, <span class="keyword">true</span>, 20, 2, 10, 25, 0, 6, skip);</div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> }</div>
</div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span>};</div>
</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> </div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"><a class="line" href="namespacexrpl_1_1test.html#a20280b4fef0d04b36df1c2de5912b905"> 268</a></span>BEAST_DEFINE_TESTSUITE(tx_reduce_relay, overlay, <a class="code hl_namespace" href="namespacexrpl.html">xrpl</a>);</div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span>} <span class="comment">// namespace test</span></div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span>} <span class="comment">// namespace xrpl</span></div>
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div></div>
<div class="ttc" id="abasic_stringstream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a></div></div>
<div class="ttc" id="aclassbeast_1_1IP_1_1Endpoint_html"><div class="ttname"><a href="classbeast_1_1IP_1_1Endpoint.html">beast::IP::Endpoint</a></div><div class="ttdoc">A version-independent IP address and port combination.</div><div class="ttdef"><b>Definition</b> <a href="IPEndpoint_8h_source.html#l00018">IPEndpoint.h:19</a></div></div>
<div class="ttc" id="aclassbeast_1_1unit__test_1_1suite_html"><div class="ttname"><a href="classbeast_1_1unit__test_1_1suite.html">beast::unit_test::suite</a></div><div class="ttdoc">A testsuite class.</div><div class="ttdef"><b>Definition</b> <a href="suite_8h_source.html#l00051">suite.h:52</a></div></div>
<div class="ttc" id="aclassbeast_1_1unit__test_1_1suite_html_a19b8ee0ce850d78834984655ae83b20e"><div class="ttname"><a href="classbeast_1_1unit__test_1_1suite.html#a19b8ee0ce850d78834984655ae83b20e">beast::unit_test::suite::log</a></div><div class="ttdeci">log_os&lt; char &gt; log</div><div class="ttdoc">Logging output stream.</div><div class="ttdef"><b>Definition</b> <a href="suite_8h_source.html#l00149">suite.h:149</a></div></div>
<div class="ttc" id="aclassbeast_1_1unit__test_1_1suite_html_a5c723fb774d3c25ba877c5b9ce681d6f"><div class="ttname"><a href="classbeast_1_1unit__test_1_1suite.html#a5c723fb774d3c25ba877c5b9ce681d6f">beast::unit_test::suite::pass</a></div><div class="ttdeci">void pass()</div><div class="ttdoc">Record a successful test condition.</div><div class="ttdef"><b>Definition</b> <a href="suite_8h_source.html#l00508">suite.h:508</a></div></div>
<div class="ttc" id="aclassbeast_1_1unit__test_1_1suite_html_aaa1237d9b85c69d35fe86645cee094b5"><div class="ttname"><a href="classbeast_1_1unit__test_1_1suite.html#aaa1237d9b85c69d35fe86645cee094b5">beast::unit_test::suite::testcase</a></div><div class="ttdeci">testcase_t testcase</div><div class="ttdoc">Memberspace for declaring test cases.</div><div class="ttdef"><b>Definition</b> <a href="suite_8h_source.html#l00152">suite.h:152</a></div></div>
<div class="ttc" id="aclassbeast_1_1unit__test_1_1suite_html_af5ea30f883ad3a2a841af60a9a82c29c"><div class="ttname"><a href="classbeast_1_1unit__test_1_1suite.html#af5ea30f883ad3a2a841af60a9a82c29c">beast::unit_test::suite::fail</a></div><div class="ttdeci">void fail(String const &amp;reason, char const *file, int line)</div><div class="ttdoc">Record a failure.</div><div class="ttdef"><b>Definition</b> <a href="suite_8h_source.html#l00530">suite.h:530</a></div></div>
<div class="ttc" id="aclassxrpl_1_1Application_html"><div class="ttname"><a href="classxrpl_1_1Application.html">xrpl::Application</a></div><div class="ttdef"><b>Definition</b> <a href="Application_8h_source.html#l00094">Application.h:95</a></div></div>
<div class="ttc" id="aclassxrpl_1_1Application_html_a947bd93203b27c026c29d79fa2a90ed6"><div class="ttname"><a href="classxrpl_1_1Application.html#a947bd93203b27c026c29d79fa2a90ed6">xrpl::Application::getIOContext</a></div><div class="ttdeci">virtual boost::asio::io_context &amp; getIOContext()=0</div></div>
<div class="ttc" id="aclassxrpl_1_1Application_html_ac6a91561d0d7a703f6a90ceacd32caef"><div class="ttname"><a href="classxrpl_1_1Application.html#ac6a91561d0d7a703f6a90ceacd32caef">xrpl::Application::overlay</a></div><div class="ttdeci">virtual Overlay &amp; overlay()=0</div></div>
<div class="ttc" id="aclassxrpl_1_1Config_html"><div class="ttname"><a href="classxrpl_1_1Config.html">xrpl::Config</a></div><div class="ttdef"><b>Definition</b> <a href="Config_8h_source.html#l00066">Config.h:67</a></div></div>
<div class="ttc" id="aclassxrpl_1_1Config_html_a2b6479c69736f7f633c5dfd6bbc9908c"><div class="ttname"><a href="classxrpl_1_1Config.html#a2b6479c69736f7f633c5dfd6bbc9908c">xrpl::Config::TX_REDUCE_RELAY_ENABLE</a></div><div class="ttdeci">bool TX_REDUCE_RELAY_ENABLE</div><div class="ttdef"><b>Definition</b> <a href="Config_8h_source.html#l00240">Config.h:240</a></div></div>
<div class="ttc" id="aclassxrpl_1_1Config_html_a81730e751e008ebd2480ab7588d1725c"><div class="ttname"><a href="classxrpl_1_1Config.html#a81730e751e008ebd2480ab7588d1725c">xrpl::Config::TX_RELAY_PERCENTAGE</a></div><div class="ttdeci">std::size_t TX_RELAY_PERCENTAGE</div><div class="ttdef"><b>Definition</b> <a href="Config_8h_source.html#l00253">Config.h:253</a></div></div>
<div class="ttc" id="aclassxrpl_1_1Config_html_a871dc2f37455159feaa36eb0b91b6c3b"><div class="ttname"><a href="classxrpl_1_1Config.html#a871dc2f37455159feaa36eb0b91b6c3b">xrpl::Config::loadFromString</a></div><div class="ttdeci">void loadFromString(std::string const &amp;fileContents)</div><div class="ttdoc">Load the config from the contents of the string.</div><div class="ttdef"><b>Definition</b> <a href="Config_8cpp_source.html#l00461">Config.cpp:461</a></div></div>
<div class="ttc" id="aclassxrpl_1_1Config_html_aa646d25eb060106518aab6b0f4210a36"><div class="ttname"><a href="classxrpl_1_1Config.html#aa646d25eb060106518aab6b0f4210a36">xrpl::Config::TX_REDUCE_RELAY_METRICS</a></div><div class="ttdeci">bool TX_REDUCE_RELAY_METRICS</div><div class="ttdef"><b>Definition</b> <a href="Config_8h_source.html#l00247">Config.h:247</a></div></div>
<div class="ttc" id="aclassxrpl_1_1Config_html_af559d587f075789fad7195f7daf79bf5"><div class="ttname"><a href="classxrpl_1_1Config.html#af559d587f075789fad7195f7daf79bf5">xrpl::Config::TX_REDUCE_RELAY_MIN_PEERS</a></div><div class="ttdeci">std::size_t TX_REDUCE_RELAY_MIN_PEERS</div><div class="ttdef"><b>Definition</b> <a href="Config_8h_source.html#l00250">Config.h:250</a></div></div>
<div class="ttc" id="aclassxrpl_1_1OverlayImpl_html"><div class="ttname"><a href="classxrpl_1_1OverlayImpl.html">xrpl::OverlayImpl</a></div><div class="ttdef"><b>Definition</b> <a href="OverlayImpl_8h_source.html#l00043">OverlayImpl.h:44</a></div></div>
<div class="ttc" id="aclassxrpl_1_1PeerImp_html"><div class="ttname"><a href="classxrpl_1_1PeerImp.html">xrpl::PeerImp</a></div><div class="ttdoc">This class manages established peer-to-peer connections, handles message exchange,...</div><div class="ttdef"><b>Definition</b> <a href="PeerImp_8h_source.html#l00096">PeerImp.h:99</a></div></div>
<div class="ttc" id="aclassxrpl_1_1PeerImp_html_a111dccfb98bf9e7e3113bc3dc104698d"><div class="ttname"><a href="classxrpl_1_1PeerImp.html#a111dccfb98bf9e7e3113bc3dc104698d">xrpl::PeerImp::slot</a></div><div class="ttdeci">std::shared_ptr&lt; PeerFinder::Slot &gt; const &amp; slot()</div><div class="ttdef"><b>Definition</b> <a href="PeerImp_8h_source.html#l00332">PeerImp.h:332</a></div></div>
<div class="ttc" id="aclassxrpl_1_1PublicKey_html"><div class="ttname"><a href="classxrpl_1_1PublicKey.html">xrpl::PublicKey</a></div><div class="ttdoc">A public key.</div><div class="ttdef"><b>Definition</b> <a href="PublicKey_8h_source.html#l00042">PublicKey.h:43</a></div></div>
<div class="ttc" id="aclassxrpl_1_1Resource_1_1Consumer_html"><div class="ttname"><a href="classxrpl_1_1Resource_1_1Consumer.html">xrpl::Resource::Consumer</a></div><div class="ttdoc">An endpoint that consumes resources.</div><div class="ttdef"><b>Definition</b> <a href="Consumer_8h_source.html#l00016">Consumer.h:17</a></div></div>
<div class="ttc" id="aclassxrpl_1_1Serializer_html"><div class="ttname"><a href="classxrpl_1_1Serializer.html">xrpl::Serializer</a></div><div class="ttdef"><b>Definition</b> <a href="Serializer_8h_source.html#l00021">Serializer.h:22</a></div></div>
<div class="ttc" id="aclassxrpl_1_1Serializer_html_abcfcb2a115105c462cec13fab8f6794b"><div class="ttname"><a href="classxrpl_1_1Serializer.html#abcfcb2a115105c462cec13fab8f6794b">xrpl::Serializer::size</a></div><div class="ttdeci">std::size_t size() const noexcept</div><div class="ttdef"><b>Definition</b> <a href="Serializer_8h_source.html#l00053">Serializer.h:53</a></div></div>
<div class="ttc" id="aclassxrpl_1_1Serializer_html_aeb6510cb75e2a70eb986432a4f13d06e"><div class="ttname"><a href="classxrpl_1_1Serializer.html#aeb6510cb75e2a70eb986432a4f13d06e">xrpl::Serializer::data</a></div><div class="ttdeci">void const * data() const noexcept</div><div class="ttdef"><b>Definition</b> <a href="Serializer_8h_source.html#l00059">Serializer.h:59</a></div></div>
<div class="ttc" id="aclassxrpl_1_1base__uint_html"><div class="ttname"><a href="classxrpl_1_1base__uint.html">xrpl::base_uint&lt; 256 &gt;</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1jtx_1_1Env_html"><div class="ttname"><a href="classxrpl_1_1test_1_1jtx_1_1Env.html">xrpl::test::jtx::Env</a></div><div class="ttdoc">A transaction testing environment.</div><div class="ttdef"><b>Definition</b> <a href="Env_8h_source.html#l00101">Env.h:102</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1jtx_1_1Env_html_a00e2950377b152b92bbf93e4b3c8c474"><div class="ttname"><a href="classxrpl_1_1test_1_1jtx_1_1Env.html#a00e2950377b152b92bbf93e4b3c8c474">xrpl::test::jtx::Env::app</a></div><div class="ttdeci">Application &amp; app()</div><div class="ttdef"><b>Definition</b> <a href="Env_8h_source.html#l00244">Env.h:244</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest_html"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html">xrpl::test::tx_reduce_relay_test::PeerTest</a></div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00078">tx_reduce_relay_test.cpp:79</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest_html_a3bd9b8098dbd51feae92f07f71aaceb9"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a3bd9b8098dbd51feae92f07f71aaceb9">xrpl::test::tx_reduce_relay_test::PeerTest::run</a></div><div class="ttdeci">void run() override</div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00106">tx_reduce_relay_test.cpp:106</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest_html_a3c8112d3a6fa896ab276245e39565600"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a3c8112d3a6fa896ab276245e39565600">xrpl::test::tx_reduce_relay_test::PeerTest::sid_</a></div><div class="ttdeci">static std::size_t sid_</div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00126">tx_reduce_relay_test.cpp:126</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest_html_a43526b2644448cbba25b69f50da8d898"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a43526b2644448cbba25b69f50da8d898">xrpl::test::tx_reduce_relay_test::PeerTest::sendTx_</a></div><div class="ttdeci">static std::uint16_t sendTx_</div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00128">tx_reduce_relay_test.cpp:128</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest_html_a60bcf2c6b650a17a2667870b05c28a2a"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a60bcf2c6b650a17a2667870b05c28a2a">xrpl::test::tx_reduce_relay_test::PeerTest::queueTx_</a></div><div class="ttdeci">static std::uint16_t queueTx_</div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00127">tx_reduce_relay_test.cpp:127</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest_html_a62c4e5c9ceecbf2b2a4d34e88a564f1c"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a62c4e5c9ceecbf2b2a4d34e88a564f1c">xrpl::test::tx_reduce_relay_test::PeerTest::addTxQueue</a></div><div class="ttdeci">void addTxQueue(uint256 const &amp;hash) override</div><div class="ttdoc">Add transaction's hash to the transactions' hashes queue.</div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00115">tx_reduce_relay_test.cpp:115</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest_html_a9b3b7a5543b8588f25af80d701a9363f"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#a9b3b7a5543b8588f25af80d701a9363f">xrpl::test::tx_reduce_relay_test::PeerTest::init</a></div><div class="ttdeci">static void init()</div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00120">tx_reduce_relay_test.cpp:120</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest_html_aa45b461c1d9245cbd18cceb531cb993d"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#aa45b461c1d9245cbd18cceb531cb993d">xrpl::test::tx_reduce_relay_test::PeerTest::send</a></div><div class="ttdeci">void send(std::shared_ptr&lt; Message &gt; const &amp;) override</div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00110">tx_reduce_relay_test.cpp:110</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest_html_ac321184d85f7987541fcb1c509f72e44"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#ac321184d85f7987541fcb1c509f72e44">xrpl::test::tx_reduce_relay_test::PeerTest::PeerTest</a></div><div class="ttdeci">PeerTest(Application &amp;app, std::shared_ptr&lt; PeerFinder::Slot &gt; const &amp;slot, http_request_type &amp;&amp;request, PublicKey const &amp;publicKey, ProtocolVersion protocol, Resource::Consumer consumer, std::unique_ptr&lt; tx_reduce_relay_test::stream_type &gt; &amp;&amp;stream_ptr, OverlayImpl &amp;overlay)</div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00081">tx_reduce_relay_test.cpp:81</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest_html_ae5f1754be96b72cb47dbb0d312c6ce67"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test_1_1PeerTest.html#ae5f1754be96b72cb47dbb0d312c6ce67">xrpl::test::tx_reduce_relay_test::PeerTest::~PeerTest</a></div><div class="ttdeci">~PeerTest()=default</div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_html"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test.html">xrpl::test::tx_reduce_relay_test</a></div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00015">tx_reduce_relay_test.cpp:16</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_html_a4eda0fb6d4b20904f77b49a285114116"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a4eda0fb6d4b20904f77b49a285114116">xrpl::test::tx_reduce_relay_test::testRelay</a></div><div class="ttdeci">void testRelay(std::string const &amp;test, bool txRREnabled, std::uint16_t nPeers, std::uint16_t nDisabled, std::uint16_t minPeers, std::uint16_t relayPercentage, std::uint16_t expectRelay, std::uint16_t expectQueue, std::set&lt; Peer::id_t &gt; const &amp;toSkip={})</div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00188">tx_reduce_relay_test.cpp:188</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_html_a4f3185ce0d1011d41f482b2457dd91de"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a4f3185ce0d1011d41f482b2457dd91de">xrpl::test::tx_reduce_relay_test::protocolVersion_</a></div><div class="ttdeci">ProtocolVersion protocolVersion_</div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00134">tx_reduce_relay_test.cpp:134</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_html_a694badf9950c6c6713bd7233469da6f7"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a694badf9950c6c6713bd7233469da6f7">xrpl::test::tx_reduce_relay_test::addPeer</a></div><div class="ttdeci">void addPeer(jtx::Env &amp;env, std::vector&lt; std::shared_ptr&lt; PeerTest &gt; &gt; &amp;peers, std::uint16_t &amp;nDisabled)</div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00145">tx_reduce_relay_test.cpp:145</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_html_a6d86338171c5919284b731172007802d"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a6d86338171c5919284b731172007802d">xrpl::test::tx_reduce_relay_test::testConfig</a></div><div class="ttdeci">void testConfig(bool log)</div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00032">tx_reduce_relay_test.cpp:32</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_html_a7c8014087e976055132e071a325f84d4"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a7c8014087e976055132e071a325f84d4">xrpl::test::tx_reduce_relay_test::socket_type</a></div><div class="ttdeci">boost::asio::ip::tcp::socket socket_type</div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00018">tx_reduce_relay_test.cpp:18</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_html_a7d7854b340bf6fbaf8893a431cb4c3e6"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a7d7854b340bf6fbaf8893a431cb4c3e6">xrpl::test::tx_reduce_relay_test::read_buf_</a></div><div class="ttdeci">boost::beast::multi_buffer read_buf_</div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00135">tx_reduce_relay_test.cpp:135</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_html_a9e52f14d36ba0563eccd23aa9ef5f2e2"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#a9e52f14d36ba0563eccd23aa9ef5f2e2">xrpl::test::tx_reduce_relay_test::rid_</a></div><div class="ttdeci">std::uint16_t rid_</div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00132">tx_reduce_relay_test.cpp:132</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_html_aac65d247896fd56ab109e98c49324add"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#aac65d247896fd56ab109e98c49324add">xrpl::test::tx_reduce_relay_test::middle_type</a></div><div class="ttdeci">boost::beast::tcp_stream middle_type</div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00019">tx_reduce_relay_test.cpp:19</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_html_aace3c1349df4c1884d128e8269c2cb92"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#aace3c1349df4c1884d128e8269c2cb92">xrpl::test::tx_reduce_relay_test::lid_</a></div><div class="ttdeci">std::uint16_t lid_</div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00131">tx_reduce_relay_test.cpp:131</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_html_aba41bbeb2ba969dfa0157923cf68e270"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#aba41bbeb2ba969dfa0157923cf68e270">xrpl::test::tx_reduce_relay_test::run</a></div><div class="ttdeci">void run() override</div><div class="ttdoc">Runs the suite.</div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00228">tx_reduce_relay_test.cpp:228</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_html_acabc3f74aebba64ca42c2852f8b37421"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#acabc3f74aebba64ca42c2852f8b37421">xrpl::test::tx_reduce_relay_test::tx_reduce_relay_test</a></div><div class="ttdeci">tx_reduce_relay_test()</div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00138">tx_reduce_relay_test.cpp:138</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_html_adea15e6d97ab4ed29bd2540a716b2823"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#adea15e6d97ab4ed29bd2540a716b2823">xrpl::test::tx_reduce_relay_test::stream_type</a></div><div class="ttdeci">boost::beast::ssl_stream&lt; middle_type &gt; stream_type</div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00020">tx_reduce_relay_test.cpp:20</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_html_ae70760bb28baaabe1443c6500ad2bbf0"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#ae70760bb28baaabe1443c6500ad2bbf0">xrpl::test::tx_reduce_relay_test::context_</a></div><div class="ttdeci">shared_context context_</div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00133">tx_reduce_relay_test.cpp:133</a></div></div>
<div class="ttc" id="aclassxrpl_1_1test_1_1tx__reduce__relay__test_html_aecc54ae333b164384291c2d449007add"><div class="ttname"><a href="classxrpl_1_1test_1_1tx__reduce__relay__test.html#aecc54ae333b164384291c2d449007add">xrpl::test::tx_reduce_relay_test::doTest</a></div><div class="ttdeci">void doTest(std::string const &amp;msg, bool log, std::function&lt; void(bool)&gt; f)</div><div class="ttdef"><b>Definition</b> <a href="tx__reduce__relay__test_8cpp_source.html#l00025">tx_reduce_relay_test.cpp:25</a></div></div>
<div class="ttc" id="afunction_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a></div></div>
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a></div></div>
<div class="ttc" id="ais_same_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v</a></div><div class="ttdeci">T is_same_v</div></div>
<div class="ttc" id="anamespaceprotocol_html"><div class="ttname"><a href="namespaceprotocol.html">protocol</a></div><div class="ttdef"><b>Definition</b> <a href="ValidatorList_8h_source.html#l00019">ValidatorList.h:19</a></div></div>
<div class="ttc" id="anamespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdoc">STL namespace.</div></div>
<div class="ttc" id="anamespacexrpl_html"><div class="ttname"><a href="namespacexrpl.html">xrpl</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition</b> <a href="algorithm_8h_source.html#l00006">algorithm.h:6</a></div></div>
<div class="ttc" id="anamespacexrpl_html_a0b0d50fcc4520f33b4417f1b74eee591a8183aa2c95dc1385c8f58bf1917fcb0b"><div class="ttname"><a href="namespacexrpl.html#a0b0d50fcc4520f33b4417f1b74eee591a8183aa2c95dc1385c8f58bf1917fcb0b">xrpl::KeyType::ed25519</a></div><div class="ttdeci">@ ed25519</div></div>
<div class="ttc" id="anamespacexrpl_html_a0cdcad0a3c6a2c14de0860e9ad61b8e1"><div class="ttname"><a href="namespacexrpl.html#a0cdcad0a3c6a2c14de0860e9ad61b8e1">xrpl::randomKeyPair</a></div><div class="ttdeci">std::pair&lt; PublicKey, SecretKey &gt; randomKeyPair(KeyType type)</div><div class="ttdoc">Create a key pair using secure random numbers.</div><div class="ttdef"><b>Definition</b> <a href="SecretKey_8cpp_source.html#l00366">SecretKey.cpp:366</a></div></div>
<div class="ttc" id="anamespacexrpl_html_a3a4ac74e54fc39e5c6f7f61f93db19c1"><div class="ttname"><a href="namespacexrpl.html#a3a4ac74e54fc39e5c6f7f61f93db19c1">xrpl::http_request_type</a></div><div class="ttdeci">boost::beast::http::request&lt; boost::beast::http::dynamic_body &gt; http_request_type</div><div class="ttdef"><b>Definition</b> <a href="Handoff_8h_source.html#l00013">Handoff.h:14</a></div></div>
<div class="ttc" id="anamespacexrpl_html_a5134a3e644a40509d0840760ed14d7a2"><div class="ttname"><a href="namespacexrpl.html#a5134a3e644a40509d0840760ed14d7a2">xrpl::make_SSLContext</a></div><div class="ttdeci">std::shared_ptr&lt; boost::asio::ssl::context &gt; make_SSLContext(std::string const &amp;cipherList)</div><div class="ttdoc">Create a self-signed SSL context that allows anonymous Diffie Hellman.</div><div class="ttdef"><b>Definition</b> <a href="make__SSLContext_8cpp_source.html#l00366">make_SSLContext.cpp:366</a></div></div>
<div class="ttc" id="anamespacexrpl_html_aa86b0eef42a9aff91d0a0c2a7d665fc3"><div class="ttname"><a href="namespacexrpl.html#aa86b0eef42a9aff91d0a0c2a7d665fc3">xrpl::makeFeaturesRequestHeader</a></div><div class="ttdeci">std::string makeFeaturesRequestHeader(bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled)</div><div class="ttdoc">Make request header X-Protocol-Ctl value with supported features.</div><div class="ttdef"><b>Definition</b> <a href="Handshake_8cpp_source.html#l00056">Handshake.cpp:56</a></div></div>
<div class="ttc" id="anamespacexrpl_html_ad1f0c105424fa7b20beea9ff9a0f2656a260ca9dd8a4577fc00b7bd5810298076"><div class="ttname"><a href="namespacexrpl.html#ad1f0c105424fa7b20beea9ff9a0f2656a260ca9dd8a4577fc00b7bd5810298076">xrpl::TokenCodecErrc::success</a></div><div class="ttdeci">@ success</div></div>
<div class="ttc" id="anamespacexrpl_html_adfcfa25ccc459fa509f891e4009ac1e3a5483bf26dec486ec0175e2a3ca816a0a"><div class="ttname"><a href="namespacexrpl.html#adfcfa25ccc459fa509f891e4009ac1e3a5483bf26dec486ec0175e2a3ca816a0a">xrpl::ReleaseStrongRefAction::noop</a></div><div class="ttdeci">@ noop</div></div>
<div class="ttc" id="apair_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair</a></div></div>
<div class="ttc" id="aset_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/set.html">std::set</a></div></div>
<div class="ttc" id="ashared_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt; boost::asio::ssl::context &gt;</a></div></div>
<div class="ttc" id="asize_t_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div></div>
<div class="ttc" id="astr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_stringstream/str.html">std::stringstream::str</a></div><div class="ttdeci">T str(T... args)</div></div>
<div class="ttc" id="ato_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string/to_string.html">std::to_string</a></div><div class="ttdeci">T to_string(T... args)</div></div>
<div class="ttc" id="aunique_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a></div></div>
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>