Files
rippled/InboundLedger_8h_source.html
2020-12-05 06:17:37 +00:00

385 lines
76 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: InboundLedger.h 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 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="dir_df9c78dcf3f59a33b12284f95992a64b.html">ripple</a></li><li class="navelem"><a class="el" href="dir_9f69212e4c6e2ca9ec5ab59cd7b6275c.html">app</a></li><li class="navelem"><a class="el" href="dir_796f40347441ba166e244d2eadcd4ae1.html">ledger</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">InboundLedger.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> This file is part of rippled: https://github.com/ripple/rippled</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> Copyright (c) 2012, 2013 Ripple Labs Inc.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> Permission to use, copy, modify, and/or distribute this software for any</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> purpose with or without fee is hereby granted, provided that the above</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> copyright notice and this permission notice appear in all copies.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> THE SOFTWARE IS PROVIDED &quot;AS IS&quot; AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#ifndef RIPPLE_APP_LEDGER_INBOUNDLEDGER_H_INCLUDED</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#define RIPPLE_APP_LEDGER_INBOUNDLEDGER_H_INCLUDED</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;ripple/app/ledger/Ledger.h&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;ripple/app/main/Application.h&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;ripple/basics/CountedObject.h&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;ripple/overlay/PeerSet.h&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a>&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/set.html">set</a>&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/utility.html">utility</a>&gt;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="comment">// A ledger we are trying to acquire</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html"> 34</a></span>&#160;<span class="keyword">class </span><a class="code" href="classripple_1_1InboundLedger.html">InboundLedger</a> final : <span class="keyword">public</span> <a class="code" href="classripple_1_1PeerSet.html">PeerSet</a>,</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <span class="keyword">public</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/enable_shared_from_this.html">std::enable_shared_from_this</a>&lt;InboundLedger&gt;,</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <span class="keyword">public</span> <a class="code" href="classripple_1_1CountedObject.html">CountedObject</a>&lt;InboundLedger&gt;</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;{</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#a6dbf6ff57c3af943706fc5d4ccac2d77"> 39</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classbeast_1_1abstract__clock.html">clock_type</a> = <a class="code" href="classbeast_1_1abstract__clock.html">beast::abstract_clock&lt;std::chrono::steady_clock&gt;</a>;</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <span class="keyword">using</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">PeerDataPairType</a> =</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#a951d36ae2d1afc458b8dfbbdf95fd9a9"> 42</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair&lt;std::weak_ptr&lt;Peer&gt;</a>, <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;protocol::TMLedgerData&gt;</a>&gt;;</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <span class="comment">// These are the reasons we might acquire a ledger</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#a3e8d7f8b5fa089a184dcc9b00b6e0da7"> 45</a></span>&#160; <span class="keyword">enum class</span> <a class="code" href="classripple_1_1InboundLedger.html#a3e8d7f8b5fa089a184dcc9b00b6e0da7">Reason</a> {</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a3e8d7f8b5fa089a184dcc9b00b6e0da7a5d83de1c9f32e1adaf68625c99c29ac4">HISTORY</a>, <span class="comment">// Acquiring past ledger</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a3e8d7f8b5fa089a184dcc9b00b6e0da7a5fe9db299562a253ce0745d25f54eb0f">SHARD</a>, <span class="comment">// Acquiring for shard</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a3e8d7f8b5fa089a184dcc9b00b6e0da7ac942dc2a9f958acddc67e11472d3ca0b">GENERIC</a>, <span class="comment">// Generic other reasons</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a3e8d7f8b5fa089a184dcc9b00b6e0da7a6ea28b46407abd2931a73c789ecdd944">CONSENSUS</a> <span class="comment">// We believe the consensus round requires this ledger</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; };</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a11813939c82e02d09b56fd1261ede70c">InboundLedger</a>(</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <a class="code" href="classripple_1_1Application.html">Application</a>&amp; app,</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; hash,</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> seq,</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a3e8d7f8b5fa089a184dcc9b00b6e0da7">Reason</a> reason,</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a6dbf6ff57c3af943706fc5d4ccac2d77">clock_type</a>&amp;);</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; </div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#abc70673dfc3d77f82742ede9978e4761">~InboundLedger</a>();</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; </div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="comment">// Called when another attempt is made to fetch this same ledger</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#af35ec9e2ff1776eba1202e3786b4e421">update</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> seq);</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#a48da57e1b1e803fcfa2179041b785814"> 67</a></span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a48da57e1b1e803fcfa2179041b785814">isComplete</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1PeerSet.html#a5e8e26a4201b05c805959c7fc909ec84">mComplete</a>;</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; }</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#ac76433579d38c33ad6fdbf5287118661"> 74</a></span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#ac76433579d38c33ad6fdbf5287118661">isFailed</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1PeerSet.html#a9a7d358bfb4c9ca39cbe143a270d6123">mFailed</a>;</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; }</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Ledger const&gt;</a></div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#aacf58eba403e792c8429de5e901816d3"> 80</a></span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#aacf58eba403e792c8429de5e901816d3">getLedger</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1InboundLedger.html#a74a4f62b06d14e1599aae9e6a95407da">mLedger</a>;</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; }</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#a6e5e040f5f6f3c159b3bf6fe46e58636"> 86</a></span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a6e5e040f5f6f3c159b3bf6fe46e58636">getSeq</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1InboundLedger.html#aecb5f5b5669afaa53902ae651f892a85">mSeq</a>;</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; }</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#adf5774b2251e6aece12ebf911fdd04b7">checkLocal</a>();</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a291eb601240f81e131f7a232f3eeeb71">init</a>(<a class="code" href="classripple_1_1PeerSet.html#a90a3672f3016e5d1c6128061879ec41e">ScopedLockType</a>&amp; collectionLock);</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; </div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#aee0269ce58c0a1b62f7c9d4ddbb8b891">gotData</a>(</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/weak_ptr.html">std::weak_ptr&lt;Peer&gt;</a>,</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;protocol::TMLedgerData&gt;</a> <span class="keyword">const</span>&amp;);</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keyword">using</span> <a class="code" href="classripple_1_1InboundLedger.html#ae1a3f88e5fd872d5110795abed583ed9">neededHash_t</a> =</div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#ae1a3f88e5fd872d5110795abed583ed9"> 102</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair&lt;protocol::TMGetObjectByHash::ObjectType, uint256&gt;</a>;</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; </div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <a class="code" href="classJson_1_1Value.html">Json::Value</a></div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a069c3ef1adae2c6d17c67e71071ca962">getJson</a>(<span class="keywordtype">int</span>);</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a0fcb919dd1a3c7f0e37525aee124ee7d">runData</a>();</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#af907877c2e81e4c01a47bf4b591d22f3"> 112</a></span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#af907877c2e81e4c01a47bf4b591d22f3">touch</a>()</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; {</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a2a13ec6bfca73fd260589fb12c2f7dd2">mLastAction</a> = <a class="code" href="classripple_1_1InboundLedger.html#ad40e902635b955a8f758d831dd973cfa">m_clock</a>.<a class="code" href="classbeast_1_1abstract__clock.html#ac9a577663353bfea66a096f12cb85293">now</a>();</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; }</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; </div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <a class="code" href="classbeast_1_1abstract__clock.html#a4e16832b0bdf9392c5138bbbde024d8e">clock_type::time_point</a></div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#a71ffa44fd29a244adb461a3ba64b7231"> 118</a></span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a71ffa44fd29a244adb461a3ba64b7231">getLastAction</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1InboundLedger.html#a2a13ec6bfca73fd260589fb12c2f7dd2">mLastAction</a>;</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; }</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; </div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#a6e9a443c8f271522e38916b0f673f07c"> 124</a></span>&#160; <span class="keyword">enum class</span> <a class="code" href="classripple_1_1InboundLedger.html#a6e9a443c8f271522e38916b0f673f07c">TriggerReason</a> { <a class="code" href="classripple_1_1InboundLedger.html#a6e9a443c8f271522e38916b0f673f07cab60ed88355ac3f6898fd8a7ab1734d06">added</a>, <a class="code" href="classripple_1_1InboundLedger.html#a6e9a443c8f271522e38916b0f673f07cae84afaab83ecb301b3d97ce4174d2773">reply</a>, <a class="code" href="classripple_1_1InboundLedger.html#a6e9a443c8f271522e38916b0f673f07ca90272dda245ae1fb3cf197e91a8689dc">timeout</a> };</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#acc4e907c349538824553f30a474d20d7">filterNodes</a>(</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair&lt;SHAMapNodeID, uint256&gt;</a>&gt;&amp; nodes,</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a6e9a443c8f271522e38916b0f673f07c">TriggerReason</a> reason);</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; </div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a20ff87d55f0ce1bec9f613749631f743">trigger</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Peer&gt;</a> <span class="keyword">const</span>&amp;, <a class="code" href="classripple_1_1InboundLedger.html#a6e9a443c8f271522e38916b0f673f07c">TriggerReason</a>);</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;neededHash_t&gt;</a></div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#af0959ff442612d29333b34f1c644342b">getNeededHashes</a>();</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; </div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a5108a46d0fc5c949956d9616d14a5f57">addPeers</a>();</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; </div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#ab32aa3e9b48fe810668c4d09fde2d369">tryDB</a>(<a class="code" href="classripple_1_1NodeStore_1_1Database.html">NodeStore::Database</a>&amp; srcDB);</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; </div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a61ad111ca63d997473cb3e50f49de9eb">done</a>();</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; </div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#abb06c0dd36a6e78848ce2bb0ff9258e7">onTimer</a>(<span class="keywordtype">bool</span> progress, <a class="code" href="classripple_1_1PeerSet.html#a90a3672f3016e5d1c6128061879ec41e">ScopedLockType</a>&amp; peerSetLock) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; </div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a053057694f4cef35279b5825cdc73406">queueJob</a>() <span class="keyword">override</span>;</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#a7d35d2afc9c0f8ea11d241cb352cc675"> 153</a></span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a7d35d2afc9c0f8ea11d241cb352cc675">onPeerAdded</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Peer&gt;</a> <span class="keyword">const</span>&amp; peer)<span class="keyword"> override</span></div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <span class="comment">// For historical nodes, do not trigger too soon</span></div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="comment">// since a fetch pack is probably coming</span></div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="classripple_1_1InboundLedger.html#ad3dc31446f3f8071d3960040e785f20b">mReason</a> != <a class="code" href="classripple_1_1InboundLedger.html#a3e8d7f8b5fa089a184dcc9b00b6e0da7a5d83de1c9f32e1adaf68625c99c29ac4">Reason::HISTORY</a>)</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a20ff87d55f0ce1bec9f613749631f743">trigger</a>(peer, <a class="code" href="classripple_1_1InboundLedger.html#a6e9a443c8f271522e38916b0f673f07cab60ed88355ac3f6898fd8a7ab1734d06">TriggerReason::added</a>);</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; }</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; </div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a16e175c43a207a208b6dcd8bf1e0f2c0">getPeerCount</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; </div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/weak_ptr.html">std::weak_ptr&lt;PeerSet&gt;</a></div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a48200c48c1b400de18691502dc89dce7">pmDowncast</a>() <span class="keyword">override</span>;</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; </div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; <span class="keywordtype">int</span></div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a679a7b5d794f6aca531f421da54c1eb5">processData</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Peer&gt;</a> peer, protocol::TMLedgerData&amp; data);</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; </div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a4e0aeebcfdf9b62947ba9b7388749257">takeHeader</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; data);</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; </div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a427de2950231fea5dbc847c67fdcb64a">receiveNode</a>(protocol::TMLedgerData&amp; packet, <a class="code" href="classripple_1_1SHAMapAddNode.html">SHAMapAddNode</a>&amp;);</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; </div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#ae0732eada133ab96152376c95a30fefa">takeTxRootNode</a>(<a class="code" href="classripple_1_1Slice.html">Slice</a> <span class="keyword">const</span>&amp; data, <a class="code" href="classripple_1_1SHAMapAddNode.html">SHAMapAddNode</a>&amp;);</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; </div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#acfbf0c63573f009a2c9f81cfa0bafa6e">takeAsRootNode</a>(<a class="code" href="classripple_1_1Slice.html">Slice</a> <span class="keyword">const</span>&amp; data, <a class="code" href="classripple_1_1SHAMapAddNode.html">SHAMapAddNode</a>&amp;);</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; </div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;uint256&gt;</a></div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a7c96da0b518e069159b422a1b63befc8">neededTxHashes</a>(<span class="keywordtype">int</span> max, <a class="code" href="classripple_1_1SHAMapSyncFilter.html">SHAMapSyncFilter</a>* filter) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; </div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;uint256&gt;</a></div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#ac3db6ca28927c4697ee227ddac810ca3">neededStateHashes</a>(<span class="keywordtype">int</span> max, <a class="code" href="classripple_1_1SHAMapSyncFilter.html">SHAMapSyncFilter</a>* filter) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; </div>
<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#ad40e902635b955a8f758d831dd973cfa"> 188</a></span>&#160; <a class="code" href="classbeast_1_1abstract__clock.html">clock_type</a>&amp; <a class="code" href="classripple_1_1InboundLedger.html#ad40e902635b955a8f758d831dd973cfa">m_clock</a>;</div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#a2a13ec6bfca73fd260589fb12c2f7dd2"> 189</a></span>&#160; <a class="code" href="classbeast_1_1abstract__clock.html#a4e16832b0bdf9392c5138bbbde024d8e">clock_type::time_point</a> <a class="code" href="classripple_1_1InboundLedger.html#a2a13ec6bfca73fd260589fb12c2f7dd2">mLastAction</a>;</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; </div>
<div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#a74a4f62b06d14e1599aae9e6a95407da"> 191</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Ledger&gt;</a> <a class="code" href="classripple_1_1InboundLedger.html#a74a4f62b06d14e1599aae9e6a95407da">mLedger</a>;</div>
<div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#a4a694446650bc8ed8271618b5c5ce030"> 192</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1InboundLedger.html#a4a694446650bc8ed8271618b5c5ce030">mHaveHeader</a>;</div>
<div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#a9422546cb7f2500003d47e883566aff5"> 193</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1InboundLedger.html#a9422546cb7f2500003d47e883566aff5">mHaveState</a>;</div>
<div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#a7bad4c3cb859e10d01f4cbd99407ed57"> 194</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1InboundLedger.html#a7bad4c3cb859e10d01f4cbd99407ed57">mHaveTransactions</a>;</div>
<div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#aee7c9597ee54dbe471af1d7db763161b"> 195</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1InboundLedger.html#aee7c9597ee54dbe471af1d7db763161b">mSignaled</a>;</div>
<div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#a3e4b6760e9cce86ce6b95148f38b78be"> 196</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1InboundLedger.html#a3e4b6760e9cce86ce6b95148f38b78be">mByHash</a>;</div>
<div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#aecb5f5b5669afaa53902ae651f892a85"> 197</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> <a class="code" href="classripple_1_1InboundLedger.html#aecb5f5b5669afaa53902ae651f892a85">mSeq</a>;</div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#ad3dc31446f3f8071d3960040e785f20b"> 198</a></span>&#160; <a class="code" href="classripple_1_1InboundLedger.html#a3e8d7f8b5fa089a184dcc9b00b6e0da7">Reason</a> <span class="keyword">const</span> <a class="code" href="classripple_1_1InboundLedger.html#ad3dc31446f3f8071d3960040e785f20b">mReason</a>;</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; </div>
<div class="line"><a name="l00200"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#a41d0600d8e996763c915ef7f3b48dbf6"> 200</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set&lt;uint256&gt;</a> <a class="code" href="classripple_1_1InboundLedger.html#a41d0600d8e996763c915ef7f3b48dbf6">mRecentNodes</a>;</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; </div>
<div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#a9fda4b33aa77b5e2ff68d94577be5569"> 202</a></span>&#160; <a class="code" href="classripple_1_1SHAMapAddNode.html">SHAMapAddNode</a> <a class="code" href="classripple_1_1InboundLedger.html#a9fda4b33aa77b5e2ff68d94577be5569">mStats</a>;</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; </div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; <span class="comment">// Data we have received from peers</span></div>
<div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#af3270da7ce84b7f24d9e2146e6700a4a"> 205</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a> <a class="code" href="classripple_1_1InboundLedger.html#af3270da7ce84b7f24d9e2146e6700a4a">mReceivedDataLock</a>;</div>
<div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#a950a4fa5555f757c3a1accdebdf2535c"> 206</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;PeerDataPairType&gt;</a> <a class="code" href="classripple_1_1InboundLedger.html#a950a4fa5555f757c3a1accdebdf2535c">mReceivedData</a>;</div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="classripple_1_1InboundLedger.html#a4855f9c04470b69be6097022c6bdde5b"> 207</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1InboundLedger.html#a4855f9c04470b69be6097022c6bdde5b">mReceiveDispatched</a>;</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160;};</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; </div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160;<a class="code" href="structripple_1_1LedgerInfo.html">LedgerInfo</a></div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160;<a class="code" href="namespaceripple.html#afeee0ebe7f71555ed01b34dbcfb0c7cd">deserializeHeader</a>(<a class="code" href="classripple_1_1Slice.html">Slice</a> data);</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; </div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160;<a class="code" href="structripple_1_1LedgerInfo.html">LedgerInfo</a></div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160;<a class="code" href="namespaceripple.html#a6852360c60203e3ad674250c949b6b64">deserializePrefixedHeader</a>(<a class="code" href="classripple_1_1Slice.html">Slice</a> data);</div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160; </div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160;} <span class="comment">// namespace ripple</span></div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160; </div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a41d0600d8e996763c915ef7f3b48dbf6"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a41d0600d8e996763c915ef7f3b48dbf6">ripple::InboundLedger::mRecentNodes</a></div><div class="ttdeci">std::set&lt; uint256 &gt; mRecentNodes</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00200">InboundLedger.h:200</a></div></div>
<div class="ttc" id="aclassripple_1_1Application_html"><div class="ttname"><a href="classripple_1_1Application.html">ripple::Application</a></div><div class="ttdef"><b>Definition:</b> <a href="Application_8h_source.html#l00097">Application.h:97</a></div></div>
<div class="ttc" id="aclassripple_1_1SHAMapAddNode_html"><div class="ttname"><a href="classripple_1_1SHAMapAddNode.html">ripple::SHAMapAddNode</a></div><div class="ttdef"><b>Definition:</b> <a href="SHAMapAddNode_8h_source.html#l00028">SHAMapAddNode.h:28</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a3e8d7f8b5fa089a184dcc9b00b6e0da7a5d83de1c9f32e1adaf68625c99c29ac4"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a3e8d7f8b5fa089a184dcc9b00b6e0da7a5d83de1c9f32e1adaf68625c99c29ac4">ripple::InboundLedger::Reason::HISTORY</a></div><div class="ttdeci">@ HISTORY</div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_af0959ff442612d29333b34f1c644342b"><div class="ttname"><a href="classripple_1_1InboundLedger.html#af0959ff442612d29333b34f1c644342b">ripple::InboundLedger::getNeededHashes</a></div><div class="ttdeci">std::vector&lt; neededHash_t &gt; getNeededHashes()</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l01051">InboundLedger.cpp:1051</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_ad3dc31446f3f8071d3960040e785f20b"><div class="ttname"><a href="classripple_1_1InboundLedger.html#ad3dc31446f3f8071d3960040e785f20b">ripple::InboundLedger::mReason</a></div><div class="ttdeci">const Reason mReason</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00198">InboundLedger.h:198</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a069c3ef1adae2c6d17c67e71071ca962"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a069c3ef1adae2c6d17c67e71071ca962">ripple::InboundLedger::getJson</a></div><div class="ttdeci">Json::Value getJson(int)</div><div class="ttdoc">Return a Json::objectValue.</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l01266">InboundLedger.cpp:1266</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a6e9a443c8f271522e38916b0f673f07c"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a6e9a443c8f271522e38916b0f673f07c">ripple::InboundLedger::TriggerReason</a></div><div class="ttdeci">TriggerReason</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00124">InboundLedger.h:124</a></div></div>
<div class="ttc" id="aclassripple_1_1CountedObject_html"><div class="ttname"><a href="classripple_1_1CountedObject.html">ripple::CountedObject</a></div><div class="ttdoc">Tracks the number of instances of an object.</div><div class="ttdef"><b>Definition:</b> <a href="CountedObject_8h_source.html#l00124">CountedObject.h:124</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Database_html"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Database.html">ripple::NodeStore::Database</a></div><div class="ttdoc">Persistency layer for NodeObject.</div><div class="ttdef"><b>Definition:</b> <a href="Database_8h_source.html#l00053">Database.h:53</a></div></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 class="ttdoc">STL class.</div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a3e8d7f8b5fa089a184dcc9b00b6e0da7a6ea28b46407abd2931a73c789ecdd944"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a3e8d7f8b5fa089a184dcc9b00b6e0da7a6ea28b46407abd2931a73c789ecdd944">ripple::InboundLedger::Reason::CONSENSUS</a></div><div class="ttdeci">@ CONSENSUS</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</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a9422546cb7f2500003d47e883566aff5"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a9422546cb7f2500003d47e883566aff5">ripple::InboundLedger::mHaveState</a></div><div class="ttdeci">bool mHaveState</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00193">InboundLedger.h:193</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html"><div class="ttname"><a href="classripple_1_1InboundLedger.html">ripple::InboundLedger</a></div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00034">InboundLedger.h:34</a></div></div>
<div class="ttc" id="autility_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/utility.html">utility</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a6e9a443c8f271522e38916b0f673f07cab60ed88355ac3f6898fd8a7ab1734d06"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a6e9a443c8f271522e38916b0f673f07cab60ed88355ac3f6898fd8a7ab1734d06">ripple::InboundLedger::TriggerReason::added</a></div><div class="ttdeci">@ added</div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a6e5e040f5f6f3c159b3bf6fe46e58636"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a6e5e040f5f6f3c159b3bf6fe46e58636">ripple::InboundLedger::getSeq</a></div><div class="ttdeci">std::uint32_t getSeq() const</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00086">InboundLedger.h:86</a></div></div>
<div class="ttc" id="aclassripple_1_1Slice_html"><div class="ttname"><a href="classripple_1_1Slice.html">ripple::Slice</a></div><div class="ttdoc">An immutable linear range of bytes.</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00044">Slice.h:44</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_aee7c9597ee54dbe471af1d7db763161b"><div class="ttname"><a href="classripple_1_1InboundLedger.html#aee7c9597ee54dbe471af1d7db763161b">ripple::InboundLedger::mSignaled</a></div><div class="ttdeci">bool mSignaled</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00195">InboundLedger.h:195</a></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="aclassripple_1_1InboundLedger_html_a3e8d7f8b5fa089a184dcc9b00b6e0da7ac942dc2a9f958acddc67e11472d3ca0b"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a3e8d7f8b5fa089a184dcc9b00b6e0da7ac942dc2a9f958acddc67e11472d3ca0b">ripple::InboundLedger::Reason::GENERIC</a></div><div class="ttdeci">@ GENERIC</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 class="ttdoc">STL class.</div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_aacf58eba403e792c8429de5e901816d3"><div class="ttname"><a href="classripple_1_1InboundLedger.html#aacf58eba403e792c8429de5e901816d3">ripple::InboundLedger::getLedger</a></div><div class="ttdeci">std::shared_ptr&lt; Ledger const &gt; getLedger() const</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00080">InboundLedger.h:80</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_af35ec9e2ff1776eba1202e3786b4e421"><div class="ttname"><a href="classripple_1_1InboundLedger.html#af35ec9e2ff1776eba1202e3786b4e421">ripple::InboundLedger::update</a></div><div class="ttdeci">void update(std::uint32_t seq)</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l00185">InboundLedger.cpp:185</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_af907877c2e81e4c01a47bf4b591d22f3"><div class="ttname"><a href="classripple_1_1InboundLedger.html#af907877c2e81e4c01a47bf4b591d22f3">ripple::InboundLedger::touch</a></div><div class="ttdeci">void touch()</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00112">InboundLedger.h:112</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a11813939c82e02d09b56fd1261ede70c"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a11813939c82e02d09b56fd1261ede70c">ripple::InboundLedger::InboundLedger</a></div><div class="ttdeci">InboundLedger(Application &amp;app, uint256 const &amp;hash, std::uint32_t seq, Reason reason, clock_type &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l00074">InboundLedger.cpp:74</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_abc70673dfc3d77f82742ede9978e4761"><div class="ttname"><a href="classripple_1_1InboundLedger.html#abc70673dfc3d77f82742ede9978e4761">ripple::InboundLedger::~InboundLedger</a></div><div class="ttdeci">~InboundLedger()</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l00218">InboundLedger.cpp:218</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a3e4b6760e9cce86ce6b95148f38b78be"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a3e4b6760e9cce86ce6b95148f38b78be">ripple::InboundLedger::mByHash</a></div><div class="ttdeci">bool mByHash</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00196">InboundLedger.h:196</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a7d35d2afc9c0f8ea11d241cb352cc675"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a7d35d2afc9c0f8ea11d241cb352cc675">ripple::InboundLedger::onPeerAdded</a></div><div class="ttdeci">void onPeerAdded(std::shared_ptr&lt; Peer &gt; const &amp;peer) override</div><div class="ttdoc">Hook called from addPeers().</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00153">InboundLedger.h:153</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_acc4e907c349538824553f30a474d20d7"><div class="ttname"><a href="classripple_1_1InboundLedger.html#acc4e907c349538824553f30a474d20d7">ripple::InboundLedger::filterNodes</a></div><div class="ttdeci">void filterNodes(std::vector&lt; std::pair&lt; SHAMapNodeID, uint256 &gt;&gt; &amp;nodes, TriggerReason reason)</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l00821">InboundLedger.cpp:821</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_ac76433579d38c33ad6fdbf5287118661"><div class="ttname"><a href="classripple_1_1InboundLedger.html#ac76433579d38c33ad6fdbf5287118661">ripple::InboundLedger::isFailed</a></div><div class="ttdeci">bool isFailed() const</div><div class="ttdoc">Returns false if we failed to get the data.</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00074">InboundLedger.h:74</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a679a7b5d794f6aca531f421da54c1eb5"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a679a7b5d794f6aca531f421da54c1eb5">ripple::InboundLedger::processData</a></div><div class="ttdeci">int processData(std::shared_ptr&lt; Peer &gt; peer, protocol::TMLedgerData &amp;data)</div><div class="ttdoc">Process one TMLedgerData Returns the number of useful nodes.</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l01118">InboundLedger.cpp:1118</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerSet_html_a5e8e26a4201b05c805959c7fc909ec84"><div class="ttname"><a href="classripple_1_1PeerSet.html#a5e8e26a4201b05c805959c7fc909ec84">ripple::PeerSet::mComplete</a></div><div class="ttdeci">bool mComplete</div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8h_source.html#l00114">PeerSet.h:114</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a053057694f4cef35279b5825cdc73406"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a053057694f4cef35279b5825cdc73406">ripple::InboundLedger::queueJob</a></div><div class="ttdeci">void queueJob() override</div><div class="ttdoc">Queue a job to call invokeOnTimer().</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l00169">InboundLedger.cpp:169</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_ac3db6ca28927c4697ee227ddac810ca3"><div class="ttname"><a href="classripple_1_1InboundLedger.html#ac3db6ca28927c4697ee227ddac810ca3">ripple::InboundLedger::neededStateHashes</a></div><div class="ttdeci">std::vector&lt; uint256 &gt; neededStateHashes(int max, SHAMapSyncFilter *filter) const</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l00270">InboundLedger.cpp:270</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_ae1a3f88e5fd872d5110795abed583ed9"><div class="ttname"><a href="classripple_1_1InboundLedger.html#ae1a3f88e5fd872d5110795abed583ed9">ripple::InboundLedger::neededHash_t</a></div><div class="ttdeci">std::pair&lt; protocol::TMGetObjectByHash::ObjectType, uint256 &gt; neededHash_t</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00102">InboundLedger.h:102</a></div></div>
<div class="ttc" id="anamespaceripple_html_afeee0ebe7f71555ed01b34dbcfb0c7cd"><div class="ttname"><a href="namespaceripple.html#afeee0ebe7f71555ed01b34dbcfb0c7cd">ripple::deserializeHeader</a></div><div class="ttdeci">LedgerInfo deserializeHeader(Slice data)</div><div class="ttdoc">Deserialize a ledger header from a byte array.</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l00277">InboundLedger.cpp:277</a></div></div>
<div class="ttc" id="aclassbeast_1_1abstract__clock_html_ac9a577663353bfea66a096f12cb85293"><div class="ttname"><a href="classbeast_1_1abstract__clock.html#ac9a577663353bfea66a096f12cb85293">beast::abstract_clock::now</a></div><div class="ttdeci">virtual time_point now() const =0</div><div class="ttdoc">Returns the current time.</div></div>
<div class="ttc" id="anamespaceripple_html_a6852360c60203e3ad674250c949b6b64"><div class="ttname"><a href="namespaceripple.html#a6852360c60203e3ad674250c949b6b64">ripple::deserializePrefixedHeader</a></div><div class="ttdeci">LedgerInfo deserializePrefixedHeader(Slice data)</div><div class="ttdoc">Deserialize a ledger header (prefixed with 4 bytes) from a byte array.</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l00298">InboundLedger.cpp:298</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a7c96da0b518e069159b422a1b63befc8"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a7c96da0b518e069159b422a1b63befc8">ripple::InboundLedger::neededTxHashes</a></div><div class="ttdeci">std::vector&lt; uint256 &gt; neededTxHashes(int max, SHAMapSyncFilter *filter) const</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l00264">InboundLedger.cpp:264</a></div></div>
<div class="ttc" id="aclassripple_1_1base__uint_html"><div class="ttname"><a href="classripple_1_1base__uint.html">ripple::base_uint</a></div><div class="ttdoc">Integers of any length that is a multiple of 32-bits.</div><div class="ttdef"><b>Definition:</b> <a href="base__uint_8h_source.html#l00073">base_uint.h:73</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a4e0aeebcfdf9b62947ba9b7388749257"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a4e0aeebcfdf9b62947ba9b7388749257">ripple::InboundLedger::takeHeader</a></div><div class="ttdeci">bool takeHeader(std::string const &amp;data)</div><div class="ttdoc">Take ledger header data Call with a lock.</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l00867">InboundLedger.cpp:867</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_aee0269ce58c0a1b62f7c9d4ddbb8b891"><div class="ttname"><a href="classripple_1_1InboundLedger.html#aee0269ce58c0a1b62f7c9d4ddbb8b891">ripple::InboundLedger::gotData</a></div><div class="ttdeci">bool gotData(std::weak_ptr&lt; Peer &gt;, std::shared_ptr&lt; protocol::TMLedgerData &gt; const &amp;)</div><div class="ttdoc">Stash a TMLedgerData received from a peer for later processing Returns 'true' if we need to dispatch.</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l01091">InboundLedger.cpp:1091</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a74a4f62b06d14e1599aae9e6a95407da"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a74a4f62b06d14e1599aae9e6a95407da">ripple::InboundLedger::mLedger</a></div><div class="ttdeci">std::shared_ptr&lt; Ledger &gt; mLedger</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00191">InboundLedger.h:191</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a6dbf6ff57c3af943706fc5d4ccac2d77"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a6dbf6ff57c3af943706fc5d4ccac2d77">ripple::InboundLedger::clock_type</a></div><div class="ttdeci">beast::abstract_clock&lt; std::chrono::steady_clock &gt; clock_type</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00039">InboundLedger.h:39</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a2a13ec6bfca73fd260589fb12c2f7dd2"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a2a13ec6bfca73fd260589fb12c2f7dd2">ripple::InboundLedger::mLastAction</a></div><div class="ttdeci">clock_type::time_point mLastAction</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00189">InboundLedger.h:189</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a71ffa44fd29a244adb461a3ba64b7231"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a71ffa44fd29a244adb461a3ba64b7231">ripple::InboundLedger::getLastAction</a></div><div class="ttdeci">clock_type::time_point getLastAction() const</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00118">InboundLedger.h:118</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a16e175c43a207a208b6dcd8bf1e0f2c0"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a16e175c43a207a208b6dcd8bf1e0f2c0">ripple::InboundLedger::getPeerCount</a></div><div class="ttdeci">std::size_t getPeerCount() const</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l00161">InboundLedger.cpp:161</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a5108a46d0fc5c949956d9616d14a5f57"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a5108a46d0fc5c949956d9616d14a5f57">ripple::InboundLedger::addPeers</a></div><div class="ttdeci">void addPeers()</div><div class="ttdoc">Add more peers to the set, if possible.</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l00479">InboundLedger.cpp:479</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerSet_html_a90a3672f3016e5d1c6128061879ec41e"><div class="ttname"><a href="classripple_1_1PeerSet.html#a90a3672f3016e5d1c6128061879ec41e">ripple::PeerSet::ScopedLockType</a></div><div class="ttdeci">std::unique_lock&lt; std::recursive_mutex &gt; ScopedLockType</div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8h_source.html#l00051">PeerSet.h:51</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_ab32aa3e9b48fe810668c4d09fde2d369"><div class="ttname"><a href="classripple_1_1InboundLedger.html#ab32aa3e9b48fe810668c4d09fde2d369">ripple::InboundLedger::tryDB</a></div><div class="ttdeci">void tryDB(NodeStore::Database &amp;srcDB)</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l00306">InboundLedger.cpp:306</a></div></div>
<div class="ttc" id="aenable_shared_from_this_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/enable_shared_from_this.html">std::enable_shared_from_this</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_ae0732eada133ab96152376c95a30fefa"><div class="ttname"><a href="classripple_1_1InboundLedger.html#ae0732eada133ab96152376c95a30fefa">ripple::InboundLedger::takeTxRootNode</a></div><div class="ttdeci">bool takeTxRootNode(Slice const &amp;data, SHAMapAddNode &amp;)</div><div class="ttdoc">Process AS root node received from a peer Call with a lock.</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l01029">InboundLedger.cpp:1029</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_ad40e902635b955a8f758d831dd973cfa"><div class="ttname"><a href="classripple_1_1InboundLedger.html#ad40e902635b955a8f758d831dd973cfa">ripple::InboundLedger::m_clock</a></div><div class="ttdeci">clock_type &amp; m_clock</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00188">InboundLedger.h:188</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a48200c48c1b400de18691502dc89dce7"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a48200c48c1b400de18691502dc89dce7">ripple::InboundLedger::pmDowncast</a></div><div class="ttdeci">std::weak_ptr&lt; PeerSet &gt; pmDowncast() override</div><div class="ttdoc">Return a weak pointer to this.</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l00487">InboundLedger.cpp:487</a></div></div>
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a4855f9c04470b69be6097022c6bdde5b"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a4855f9c04470b69be6097022c6bdde5b">ripple::InboundLedger::mReceiveDispatched</a></div><div class="ttdeci">bool mReceiveDispatched</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00207">InboundLedger.h:207</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a4a694446650bc8ed8271618b5c5ce030"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a4a694446650bc8ed8271618b5c5ce030">ripple::InboundLedger::mHaveHeader</a></div><div class="ttdeci">bool mHaveHeader</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00192">InboundLedger.h:192</a></div></div>
<div class="ttc" id="aclassbeast_1_1abstract__clock_html"><div class="ttname"><a href="classbeast_1_1abstract__clock.html">beast::abstract_clock&lt; std::chrono::steady_clock &gt;</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a48da57e1b1e803fcfa2179041b785814"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a48da57e1b1e803fcfa2179041b785814">ripple::InboundLedger::isComplete</a></div><div class="ttdeci">bool isComplete() const</div><div class="ttdoc">Returns true if we got all the data.</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00067">InboundLedger.h:67</a></div></div>
<div class="ttc" id="aweak_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/weak_ptr.html">std::weak_ptr&lt; Peer &gt;</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a6e9a443c8f271522e38916b0f673f07ca90272dda245ae1fb3cf197e91a8689dc"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a6e9a443c8f271522e38916b0f673f07ca90272dda245ae1fb3cf197e91a8689dc">ripple::InboundLedger::TriggerReason::timeout</a></div><div class="ttdeci">@ timeout</div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a6e9a443c8f271522e38916b0f673f07cae84afaab83ecb301b3d97ce4174d2773"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a6e9a443c8f271522e38916b0f673f07cae84afaab83ecb301b3d97ce4174d2773">ripple::InboundLedger::TriggerReason::reply</a></div><div class="ttdeci">@ reply</div></div>
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</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="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a9fda4b33aa77b5e2ff68d94577be5569"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a9fda4b33aa77b5e2ff68d94577be5569">ripple::InboundLedger::mStats</a></div><div class="ttdeci">SHAMapAddNode mStats</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00202">InboundLedger.h:202</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_aecb5f5b5669afaa53902ae651f892a85"><div class="ttname"><a href="classripple_1_1InboundLedger.html#aecb5f5b5669afaa53902ae651f892a85">ripple::InboundLedger::mSeq</a></div><div class="ttdeci">std::uint32_t mSeq</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00197">InboundLedger.h:197</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_acfbf0c63573f009a2c9f81cfa0bafa6e"><div class="ttname"><a href="classripple_1_1InboundLedger.html#acfbf0c63573f009a2c9f81cfa0bafa6e">ripple::InboundLedger::takeAsRootNode</a></div><div class="ttdeci">bool takeAsRootNode(Slice const &amp;data, SHAMapAddNode &amp;)</div><div class="ttdoc">Process AS root node received from a peer Call with a lock.</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l01004">InboundLedger.cpp:1004</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerSet_html"><div class="ttname"><a href="classripple_1_1PeerSet.html">ripple::PeerSet</a></div><div class="ttdoc">Supports data retrieval by managing a set of peers.</div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8h_source.html#l00048">PeerSet.h:48</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerSet_html_a9a7d358bfb4c9ca39cbe143a270d6123"><div class="ttname"><a href="classripple_1_1PeerSet.html#a9a7d358bfb4c9ca39cbe143a270d6123">ripple::PeerSet::mFailed</a></div><div class="ttdeci">bool mFailed</div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8h_source.html#l00115">PeerSet.h:115</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a61ad111ca63d997473cb3e50f49de9eb"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a61ad111ca63d997473cb3e50f49de9eb">ripple::InboundLedger::done</a></div><div class="ttdeci">void done()</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l00493">InboundLedger.cpp:493</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a20ff87d55f0ce1bec9f613749631f743"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a20ff87d55f0ce1bec9f613749631f743">ripple::InboundLedger::trigger</a></div><div class="ttdeci">void trigger(std::shared_ptr&lt; Peer &gt; const &amp;, TriggerReason)</div><div class="ttdoc">Request more nodes, perhaps from a specific peer.</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l00544">InboundLedger.cpp:544</a></div></div>
<div class="ttc" id="amutex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</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="astructripple_1_1LedgerInfo_html"><div class="ttname"><a href="structripple_1_1LedgerInfo.html">ripple::LedgerInfo</a></div><div class="ttdoc">Information about the notional ledger backing the view.</div><div class="ttdef"><b>Definition:</b> <a href="ReadView_8h_source.html#l00084">ReadView.h:84</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a3e8d7f8b5fa089a184dcc9b00b6e0da7"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a3e8d7f8b5fa089a184dcc9b00b6e0da7">ripple::InboundLedger::Reason</a></div><div class="ttdeci">Reason</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00045">InboundLedger.h:45</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a427de2950231fea5dbc847c67fdcb64a"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a427de2950231fea5dbc847c67fdcb64a">ripple::InboundLedger::receiveNode</a></div><div class="ttdeci">void receiveNode(protocol::TMLedgerData &amp;packet, SHAMapAddNode &amp;)</div><div class="ttdoc">Process node data received from a peer Call with a lock.</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l00915">InboundLedger.cpp:915</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a0fcb919dd1a3c7f0e37525aee124ee7d"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a0fcb919dd1a3c7f0e37525aee124ee7d">ripple::InboundLedger::runData</a></div><div class="ttdeci">void runData()</div><div class="ttdoc">Process pending TMLedgerData Query the 'best' peer.</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l01223">InboundLedger.cpp:1223</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a950a4fa5555f757c3a1accdebdf2535c"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a950a4fa5555f757c3a1accdebdf2535c">ripple::InboundLedger::mReceivedData</a></div><div class="ttdeci">std::vector&lt; PeerDataPairType &gt; mReceivedData</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00206">InboundLedger.h:206</a></div></div>
<div class="ttc" id="aclassripple_1_1SHAMapSyncFilter_html"><div class="ttname"><a href="classripple_1_1SHAMapSyncFilter.html">ripple::SHAMapSyncFilter</a></div><div class="ttdef"><b>Definition:</b> <a href="SHAMapSyncFilter_8h_source.html#l00030">SHAMapSyncFilter.h:30</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a3e8d7f8b5fa089a184dcc9b00b6e0da7a5fe9db299562a253ce0745d25f54eb0f"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a3e8d7f8b5fa089a184dcc9b00b6e0da7a5fe9db299562a253ce0745d25f54eb0f">ripple::InboundLedger::Reason::SHARD</a></div><div class="ttdeci">@ SHARD</div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_abb06c0dd36a6e78848ce2bb0ff9258e7"><div class="ttname"><a href="classripple_1_1InboundLedger.html#abb06c0dd36a6e78848ce2bb0ff9258e7">ripple::InboundLedger::onTimer</a></div><div class="ttdeci">void onTimer(bool progress, ScopedLockType &amp;peerSetLock) override</div><div class="ttdoc">Called with a lock by the PeerSet when the timer expires.</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l00428">InboundLedger.cpp:428</a></div></div>
<div class="ttc" id="aclassbeast_1_1abstract__clock_html_a4e16832b0bdf9392c5138bbbde024d8e"><div class="ttname"><a href="classbeast_1_1abstract__clock.html#a4e16832b0bdf9392c5138bbbde024d8e">beast::abstract_clock&lt; std::chrono::steady_clock &gt;::time_point</a></div><div class="ttdeci">typename std::chrono::steady_clock ::time_point time_point</div><div class="ttdef"><b>Definition:</b> <a href="abstract__clock_8h_source.html#l00063">abstract_clock.h:63</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_af3270da7ce84b7f24d9e2146e6700a4a"><div class="ttname"><a href="classripple_1_1InboundLedger.html#af3270da7ce84b7f24d9e2146e6700a4a">ripple::InboundLedger::mReceivedDataLock</a></div><div class="ttdeci">std::mutex mReceivedDataLock</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00205">InboundLedger.h:205</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_adf5774b2251e6aece12ebf911fdd04b7"><div class="ttname"><a href="classripple_1_1InboundLedger.html#adf5774b2251e6aece12ebf911fdd04b7">ripple::InboundLedger::checkLocal</a></div><div class="ttdeci">bool checkLocal()</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l00198">InboundLedger.cpp:198</a></div></div>
<div class="ttc" id="aset_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/set.html">set</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a7bad4c3cb859e10d01f4cbd99407ed57"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a7bad4c3cb859e10d01f4cbd99407ed57">ripple::InboundLedger::mHaveTransactions</a></div><div class="ttdeci">bool mHaveTransactions</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8h_source.html#l00194">InboundLedger.h:194</a></div></div>
<div class="ttc" id="aclassripple_1_1InboundLedger_html_a291eb601240f81e131f7a232f3eeeb71"><div class="ttname"><a href="classripple_1_1InboundLedger.html#a291eb601240f81e131f7a232f3eeeb71">ripple::InboundLedger::init</a></div><div class="ttdeci">void init(ScopedLockType &amp;collectionLock)</div><div class="ttdef"><b>Definition:</b> <a href="InboundLedger_8cpp_source.html#l00096">InboundLedger.cpp:96</a></div></div>
<div class="ttc" id="aclassJson_1_1Value_html"><div class="ttname"><a href="classJson_1_1Value.html">Json::Value</a></div><div class="ttdoc">Represents a JSON value.</div><div class="ttdef"><b>Definition:</b> <a href="json__value_8h_source.html#l00145">json_value.h:145</a></div></div>
<!-- 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>