Files
rippled/LedgerReplayMsgHandler_8cpp_source.html
2023-04-11 16:57:37 +00:00

427 lines
73 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: LedgerReplayMsgHandler.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 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><li class="navelem"><a class="el" href="dir_7a91d0e0bd7703bd596640f6731f1d71.html">impl</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">LedgerReplayMsgHandler.cpp</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, 2020 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">#include &lt;ripple/app/ledger/LedgerMaster.h&gt;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &lt;ripple/app/ledger/LedgerReplayer.h&gt;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;ripple/app/ledger/impl/LedgerReplayMsgHandler.h&gt;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;ripple/app/main/Application.h&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; </div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/memory.html">memory</a>&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; </div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classripple_1_1LedgerReplayMsgHandler.html#af8042ba0549420417c7d10f313e544d0"> 28</a></span>&#160;<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#af8042ba0549420417c7d10f313e544d0">LedgerReplayMsgHandler::LedgerReplayMsgHandler</a>(</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; <a class="code" href="classripple_1_1Application.html">Application</a>&amp; app,</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; <a class="code" href="classripple_1_1LedgerReplayer.html">LedgerReplayer</a>&amp; replayer)</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; : app_(app)</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; , replayer_(replayer)</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; , journal_(app.journal(<span class="stringliteral">&quot;LedgerReplayMsgHandler&quot;</span>))</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;{</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;}</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;protocol::TMProofPathResponse</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classripple_1_1LedgerReplayMsgHandler.html#ae8fdb0da6b5df8ecf07772ef86ce364b"> 38</a></span>&#160;<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#ae8fdb0da6b5df8ecf07772ef86ce364b">LedgerReplayMsgHandler::processProofPathRequest</a>(</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;protocol::TMProofPathRequest&gt;</a> <span class="keyword">const</span>&amp; msg)</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; protocol::TMProofPathRequest&amp; packet = *msg;</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; protocol::TMProofPathResponse reply;</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="keywordflow">if</span> (!packet.has_key() || !packet.has_ledgerhash() || !packet.has_type() ||</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; packet.ledgerhash().size() != <a class="code" href="classripple_1_1base__uint.html#adbe18ef92b677603e8539b3a77c064b0">uint256::size</a>() ||</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; packet.key().size() != <a class="code" href="classripple_1_1base__uint.html#adbe18ef92b677603e8539b3a77c064b0">uint256::size</a>() ||</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; !protocol::TMLedgerMapType_IsValid(packet.type()))</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; {</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; JLOG(<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#af352d6af412eb7e1215ad63e1d482a9f">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;getProofPath: Invalid request&quot;</span>;</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; reply.set_error(protocol::TMReplyError::reBAD_REQUEST);</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keywordflow">return</span> reply;</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; }</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; reply.set_key(packet.key());</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; reply.set_ledgerhash(packet.ledgerhash());</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; reply.set_type(packet.type());</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span> key(packet.key());</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span> ledgerHash(packet.ledgerhash());</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="keyword">auto</span> ledger = <a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#a0e290f784d9f1426e6e796315f405d18">app_</a>.<a class="code" href="classripple_1_1Application.html#a57929fa83c551514e364fe6981b0c104">getLedgerMaster</a>().<a class="code" href="classripple_1_1LedgerMaster.html#a5f99fb5737062937149e4e33a95ffd06">getLedgerByHash</a>(ledgerHash);</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keywordflow">if</span> (!ledger)</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; {</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; JLOG(<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#af352d6af412eb7e1215ad63e1d482a9f">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>())</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; &lt;&lt; <span class="stringliteral">&quot;getProofPath: Don&#39;t have ledger &quot;</span> &lt;&lt; ledgerHash;</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; reply.set_error(protocol::TMReplyError::reNO_LEDGER);</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keywordflow">return</span> reply;</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; }</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; </div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> path = [&amp;]() -&gt; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>&lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;Blob&gt;</a>&gt; {</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <span class="keywordflow">switch</span> (packet.type())</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; <span class="keywordflow">case</span> protocol::lmACCOUNT_STATE:</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <span class="keywordflow">return</span> ledger-&gt;stateMap().getProofPath(key);</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <span class="keywordflow">case</span> protocol::lmTRANASCTION:</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keywordflow">return</span> ledger-&gt;txMap().getProofPath(key);</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="comment">// should not be here</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="comment">// because already tested with TMLedgerMapType_IsValid()</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <span class="keywordflow">return</span> {};</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; }</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; }();</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <span class="keywordflow">if</span> (!path)</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; JLOG(<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#af352d6af412eb7e1215ad63e1d482a9f">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;getProofPath: Don&#39;t have the node &quot;</span> &lt;&lt; key</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; &lt;&lt; <span class="stringliteral">&quot; of ledger &quot;</span> &lt;&lt; ledgerHash;</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; reply.set_error(protocol::TMReplyError::reNO_NODE);</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <span class="keywordflow">return</span> reply;</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; }</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; <span class="comment">// pack header</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <a class="code" href="classripple_1_1Serializer.html">Serializer</a> nData(128);</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <a class="code" href="namespaceripple.html#ace117d2fc5a43543b6a33fff822d4854">addRaw</a>(ledger-&gt;info(), nData);</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; reply.set_ledgerheader(nData.<a class="code" href="classripple_1_1Serializer.html#ac7156012b6dd5a536cf030b48109894c">getDataPtr</a>(), nData.<a class="code" href="classripple_1_1Serializer.html#aa5c7aa53db0c7c90c6a86dd5144e9255">getLength</a>());</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="comment">// pack path</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>&amp; b : *path)</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; reply.add_path(b.data(), b.size());</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; JLOG(<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#af352d6af412eb7e1215ad63e1d482a9f">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;getProofPath for the node &quot;</span> &lt;&lt; key</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; &lt;&lt; <span class="stringliteral">&quot; of ledger &quot;</span> &lt;&lt; ledgerHash &lt;&lt; <span class="stringliteral">&quot; path length &quot;</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; &lt;&lt; path-&gt;size();</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keywordflow">return</span> reply;</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;}</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;<span class="keywordtype">bool</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="classripple_1_1LedgerReplayMsgHandler.html#a6a320c690d5b3c0c34b86659b9137d37"> 105</a></span>&#160;<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#a6a320c690d5b3c0c34b86659b9137d37">LedgerReplayMsgHandler::processProofPathResponse</a>(</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;protocol::TMProofPathResponse&gt;</a> <span class="keyword">const</span>&amp; msg)</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; protocol::TMProofPathResponse&amp; reply = *msg;</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <span class="keywordflow">if</span> (reply.has_error() || !reply.has_key() || !reply.has_ledgerhash() ||</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; !reply.has_type() || !reply.has_ledgerheader() ||</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; reply.path_size() == 0)</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; {</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; JLOG(<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#af352d6af412eb7e1215ad63e1d482a9f">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;Bad message: Error reply&quot;</span>;</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</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; <span class="keywordflow">if</span> (reply.type() != protocol::lmACCOUNT_STATE)</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; {</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; JLOG(<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#af352d6af412eb7e1215ad63e1d482a9f">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>())</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; &lt;&lt; <span class="stringliteral">&quot;Bad message: we only support the state ShaMap for now&quot;</span>;</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</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; </div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="comment">// deserialize the header</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <span class="keyword">auto</span> info = <a class="code" href="namespaceripple.html#abd563ede46c4e47c4c7dec8bdf89b5fb">deserializeHeader</a>(</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; {reply.ledgerheader().data(), reply.ledgerheader().size()});</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> replyHash(reply.ledgerhash());</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="namespaceripple.html#a71f5c3f4baec0e09c5eab4d6f5b5efcb">calculateLedgerHash</a>(info) != replyHash)</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; {</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; JLOG(<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#af352d6af412eb7e1215ad63e1d482a9f">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;Bad message: Hash mismatch&quot;</span>;</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; }</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; info.hash = replyHash;</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; </div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> key(reply.key());</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <span class="keywordflow">if</span> (key != <a class="code" href="namespaceripple_1_1keylet.html#acda2d89a44551845c5be38291e5c9e8b">keylet::skip</a>().key)</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; {</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; JLOG(<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#af352d6af412eb7e1215ad63e1d482a9f">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>())</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; &lt;&lt; <span class="stringliteral">&quot;Bad message: we only support the short skip list for now. &quot;</span></div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="stringliteral">&quot;Key in reply &quot;</span></div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; &lt;&lt; key;</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; }</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; </div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <span class="comment">// verify the skip list</span></div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;Blob&gt;</a> path;</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; path.reserve(reply.path_size());</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; reply.path_size(); ++i)</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; {</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; path.emplace_back(reply.path(i).begin(), reply.path(i).end());</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; </div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="classripple_1_1SHAMap.html#af382ac10dccf3f4b82c64548cd05a677">SHAMap::verifyProofPath</a>(info.accountHash, key, path))</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; {</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; JLOG(<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#af352d6af412eb7e1215ad63e1d482a9f">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;Bad message: Proof path verify failed&quot;</span>;</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; }</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; </div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; <span class="comment">// deserialize the SHAMapItem</span></div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <span class="keyword">auto</span> node = <a class="code" href="classripple_1_1SHAMapTreeNode.html#ae1b494609b7a732614554da92e235f57">SHAMapTreeNode::makeFromWire</a>(<a class="code" href="namespaceripple.html#aabe37451093c21757855542d68fba3ce">makeSlice</a>(path.front()));</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <span class="keywordflow">if</span> (!node || !node-&gt;isLeaf())</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; {</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; JLOG(<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#af352d6af412eb7e1215ad63e1d482a9f">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;Bad message: Cannot deserialize&quot;</span>;</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; }</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="keywordflow">if</span> (<span class="keyword">auto</span> item = <span class="keyword">static_cast&lt;</span><a class="code" href="classripple_1_1SHAMapLeafNode.html">SHAMapLeafNode</a>*<span class="keyword">&gt;</span>(node.get())-&gt;<a class="code" href="classripple_1_1SHAMapLeafNode.html#ae5558bc731806e9562a8d49eccd77945">peekItem</a>())</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; {</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#a83ad644421269e93573d7733ac1a41b9">replayer_</a>.<a class="code" href="classripple_1_1LedgerReplayer.html#a759cf78a2dd1b613d9e1caccfe7be1e8">gotSkipList</a>(info, item);</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; }</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; JLOG(<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#af352d6af412eb7e1215ad63e1d482a9f">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;Bad message: Cannot get ShaMapItem&quot;</span>;</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</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; </div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160;protocol::TMReplayDeltaResponse</div>
<div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="classripple_1_1LedgerReplayMsgHandler.html#a3cbd5e0d38896e7564a8d7ed5e1d8152"> 178</a></span>&#160;<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#a3cbd5e0d38896e7564a8d7ed5e1d8152">LedgerReplayMsgHandler::processReplayDeltaRequest</a>(</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;protocol::TMReplayDeltaRequest&gt;</a> <span class="keyword">const</span>&amp; msg)</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;{</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; protocol::TMReplayDeltaRequest&amp; packet = *msg;</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; protocol::TMReplayDeltaResponse reply;</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; </div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <span class="keywordflow">if</span> (!packet.has_ledgerhash() ||</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; packet.ledgerhash().size() != <a class="code" href="classripple_1_1base__uint.html#adbe18ef92b677603e8539b3a77c064b0">uint256::size</a>())</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; {</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; JLOG(<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#af352d6af412eb7e1215ad63e1d482a9f">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;getReplayDelta: Invalid request&quot;</span>;</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; reply.set_error(protocol::TMReplyError::reBAD_REQUEST);</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; <span class="keywordflow">return</span> reply;</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"> 191</span>&#160; reply.set_ledgerhash(packet.ledgerhash());</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; </div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span> ledgerHash{packet.ledgerhash()};</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; <span class="keyword">auto</span> ledger = <a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#a0e290f784d9f1426e6e796315f405d18">app_</a>.<a class="code" href="classripple_1_1Application.html#a57929fa83c551514e364fe6981b0c104">getLedgerMaster</a>().<a class="code" href="classripple_1_1LedgerMaster.html#a5f99fb5737062937149e4e33a95ffd06">getLedgerByHash</a>(ledgerHash);</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; <span class="keywordflow">if</span> (!ledger || !ledger-&gt;isImmutable())</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; {</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; JLOG(<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#af352d6af412eb7e1215ad63e1d482a9f">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>())</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; &lt;&lt; <span class="stringliteral">&quot;getReplayDelta: Don&#39;t have ledger &quot;</span> &lt;&lt; ledgerHash;</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; reply.set_error(protocol::TMReplyError::reNO_LEDGER);</div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; <span class="keywordflow">return</span> reply;</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"> 202</span>&#160; </div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; <span class="comment">// pack header</span></div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; <a class="code" href="classripple_1_1Serializer.html">Serializer</a> nData(128);</div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; <a class="code" href="namespaceripple.html#ace117d2fc5a43543b6a33fff822d4854">addRaw</a>(ledger-&gt;info(), nData);</div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; reply.set_ledgerheader(nData.<a class="code" href="classripple_1_1Serializer.html#ac7156012b6dd5a536cf030b48109894c">getDataPtr</a>(), nData.<a class="code" href="classripple_1_1Serializer.html#aa5c7aa53db0c7c90c6a86dd5144e9255">getLength</a>());</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; <span class="comment">// pack transactions</span></div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span>&amp; txMap = ledger-&gt;txMap();</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; txMap.visitLeaves(</div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; [&amp;](boost::intrusive_ptr&lt;SHAMapItem const&gt; <span class="keyword">const</span>&amp; <a class="code" href="namespaceripple.html#ad5143ceada01141772ae4aab984f94bda555f976fd82d9e7e487770c44c7980bf">txNode</a>) {</div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; reply.add_transaction(<a class="code" href="namespaceripple.html#ad5143ceada01141772ae4aab984f94bda555f976fd82d9e7e487770c44c7980bf">txNode</a>-&gt;data(), <a class="code" href="namespaceripple.html#ad5143ceada01141772ae4aab984f94bda555f976fd82d9e7e487770c44c7980bf">txNode</a>-&gt;size());</div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; });</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; </div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160; JLOG(<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#af352d6af412eb7e1215ad63e1d482a9f">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;getReplayDelta for ledger &quot;</span> &lt;&lt; ledgerHash</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; &lt;&lt; <span class="stringliteral">&quot; txMap hash &quot;</span> &lt;&lt; txMap.getHash().as_uint256();</div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160; <span class="keywordflow">return</span> reply;</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; </div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160;<span class="keywordtype">bool</span></div>
<div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="classripple_1_1LedgerReplayMsgHandler.html#ab6699613bbd3d92c9068738cf9b5de07"> 220</a></span>&#160;<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#ab6699613bbd3d92c9068738cf9b5de07">LedgerReplayMsgHandler::processReplayDeltaResponse</a>(</div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;protocol::TMReplayDeltaResponse&gt;</a> <span class="keyword">const</span>&amp; msg)</div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160;{</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160; protocol::TMReplayDeltaResponse&amp; reply = *msg;</div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160; <span class="keywordflow">if</span> (reply.has_error() || !reply.has_ledgerheader())</div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160; {</div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160; JLOG(<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#af352d6af412eb7e1215ad63e1d482a9f">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;Bad message: Error reply&quot;</span>;</div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160; }</div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160; </div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; <span class="keyword">auto</span> info = <a class="code" href="namespaceripple.html#abd563ede46c4e47c4c7dec8bdf89b5fb">deserializeHeader</a>(</div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160; {reply.ledgerheader().data(), reply.ledgerheader().size()});</div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> replyHash(reply.ledgerhash());</div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="namespaceripple.html#a71f5c3f4baec0e09c5eab4d6f5b5efcb">calculateLedgerHash</a>(info) != replyHash)</div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160; {</div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160; JLOG(<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#af352d6af412eb7e1215ad63e1d482a9f">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;Bad message: Hash mismatch&quot;</span>;</div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160; }</div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160; info.hash = replyHash;</div>
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160; </div>
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160; <span class="keyword">auto</span> numTxns = reply.transaction_size();</div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map&lt;std::uint32_t, std::shared_ptr&lt;STTx const&gt;</a>&gt; orderedTxns;</div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160; <a class="code" href="classripple_1_1SHAMap.html">SHAMap</a> txMap(<a class="code" href="namespaceripple.html#a5d9fe757c37a7602a883d30b14e1bf3cae6bed345f53943469741d7295552fcd4">SHAMapType::TRANSACTION</a>, <a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#a0e290f784d9f1426e6e796315f405d18">app_</a>.<a class="code" href="classripple_1_1Application.html#a26ccdf06f25ceadec7894dd5f8da7eab">getNodeFamily</a>());</div>
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160; <span class="keywordflow">try</span></div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160; {</div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; numTxns; ++i)</div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160; {</div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160; <span class="comment">// deserialize:</span></div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160; <span class="comment">// -- TxShaMapItem for building a ShaMap for verification</span></div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160; <span class="comment">// -- Tx</span></div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160; <span class="comment">// -- TxMetaData for Tx ordering</span></div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160; <a class="code" href="classripple_1_1Serializer.html">Serializer</a> shaMapItemData(</div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160; reply.transaction(i).data(), reply.transaction(i).size());</div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160; </div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160; <a class="code" href="classripple_1_1SerialIter.html">SerialIter</a> txMetaSit(<a class="code" href="namespaceripple.html#aabe37451093c21757855542d68fba3ce">makeSlice</a>(reply.transaction(i)));</div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160; <a class="code" href="classripple_1_1SerialIter.html">SerialIter</a> txSit(txMetaSit.<a class="code" href="classripple_1_1SerialIter.html#a4131424f0e083369a1e562a5437d56e8">getSlice</a>(txMetaSit.<a class="code" href="classripple_1_1SerialIter.html#aa97628bd129c57f172027982c0ac4f1f">getVLDataLength</a>()));</div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160; <a class="code" href="classripple_1_1SerialIter.html">SerialIter</a> metaSit(txMetaSit.<a class="code" href="classripple_1_1SerialIter.html#a4131424f0e083369a1e562a5437d56e8">getSlice</a>(txMetaSit.<a class="code" href="classripple_1_1SerialIter.html#aa97628bd129c57f172027982c0ac4f1f">getVLDataLength</a>()));</div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160; </div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160; <span class="keyword">auto</span> tx = std::make_shared&lt;STTx const&gt;(txSit);</div>
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160; <span class="keywordflow">if</span> (!tx)</div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160; {</div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160; JLOG(<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#af352d6af412eb7e1215ad63e1d482a9f">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;Bad message: Cannot deserialize&quot;</span>;</div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160; }</div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160; <span class="keyword">auto</span> tid = tx-&gt;getTransactionID();</div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160; <a class="code" href="classripple_1_1STObject.html">STObject</a> meta(metaSit, <a class="code" href="namespaceripple.html#a1565922b53abf78b7587a6e60d8d24ba">sfMetadata</a>);</div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160; orderedTxns.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/map/emplace.html">emplace</a>(meta[<a class="code" href="namespaceripple.html#a25087ce817f91da8dcc101b2127067b0">sfTransactionIndex</a>], std::move(tx));</div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160; </div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>&#160; <span class="keywordflow">if</span> (!txMap.<a class="code" href="classripple_1_1SHAMap.html#a569baa82267b09d725839feafe6eedc0">addGiveItem</a>(</div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160; <a class="code" href="namespaceripple.html#ae0356b1de00f841c554c830be509dd58a5065e45315e5eab27c63b2dabd8ad150">SHAMapNodeType::tnTRANSACTION_MD</a>,</div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>&#160; <a class="code" href="namespaceripple.html#a0f98a7a60d7fb0c39572419ac15c959f">make_shamapitem</a>(tid, shaMapItemData.<a class="code" href="classripple_1_1Serializer.html#a394c3299f6cfcebdaa4bc98ec0c602d6">slice</a>())))</div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>&#160; {</div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160; JLOG(<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#af352d6af412eb7e1215ad63e1d482a9f">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;Bad message: Cannot deserialize&quot;</span>;</div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160; }</div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160; }</div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160; }</div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160; <span class="keywordflow">catch</span> (<a class="codeRef" href="http://en.cppreference.com/w/cpp/error/exception.html">std::exception</a> <span class="keyword">const</span>&amp;)</div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160; {</div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>&#160; JLOG(<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#af352d6af412eb7e1215ad63e1d482a9f">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;Bad message: Cannot deserialize&quot;</span>;</div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160; }</div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160; </div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160; <span class="keywordflow">if</span> (txMap.<a class="code" href="classripple_1_1SHAMap.html#a9b0dff3c3bf35efc30104c93becdc079">getHash</a>().<a class="code" href="classripple_1_1SHAMapHash.html#a8f95b5bc14b7085d368f56aeaa17ef4f">as_uint256</a>() != info.txHash)</div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160; {</div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160; JLOG(<a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#af352d6af412eb7e1215ad63e1d482a9f">journal_</a>.<a class="code" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>()) &lt;&lt; <span class="stringliteral">&quot;Bad message: Transactions verify failed&quot;</span>;</div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160; }</div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160; </div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>&#160; <a class="code" href="classripple_1_1LedgerReplayMsgHandler.html#a83ad644421269e93573d7733ac1a41b9">replayer_</a>.<a class="code" href="classripple_1_1LedgerReplayer.html#a8652a285d05995ff346e6ae2944bef97">gotReplayDelta</a>(info, std::move(orderedTxns));</div>
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>&#160;}</div>
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>&#160; </div>
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>&#160;} <span class="comment">// namespace ripple</span></div>
</div><!-- fragment --></div><!-- contents -->
<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#l00115">Application.h:115</a></div></div>
<div class="ttc" id="aclassripple_1_1Application_html_a26ccdf06f25ceadec7894dd5f8da7eab"><div class="ttname"><a href="classripple_1_1Application.html#a26ccdf06f25ceadec7894dd5f8da7eab">ripple::Application::getNodeFamily</a></div><div class="ttdeci">virtual Family &amp; getNodeFamily()=0</div></div>
<div class="ttc" id="anamespaceripple_html_aabe37451093c21757855542d68fba3ce"><div class="ttname"><a href="namespaceripple.html#aabe37451093c21757855542d68fba3ce">ripple::makeSlice</a></div><div class="ttdeci">std::enable_if_t&lt; std::is_same&lt; T, char &gt;::value||std::is_same&lt; T, unsigned char &gt;::value, Slice &gt; makeSlice(std::array&lt; T, N &gt; const &amp;a)</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00241">Slice.h:241</a></div></div>
<div class="ttc" id="anamespaceripple_html_a1565922b53abf78b7587a6e60d8d24ba"><div class="ttname"><a href="namespaceripple.html#a1565922b53abf78b7587a6e60d8d24ba">ripple::sfMetadata</a></div><div class="ttdeci">const SField sfMetadata</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_1SHAMap_html_a9b0dff3c3bf35efc30104c93becdc079"><div class="ttname"><a href="classripple_1_1SHAMap.html#a9b0dff3c3bf35efc30104c93becdc079">ripple::SHAMap::getHash</a></div><div class="ttdeci">SHAMapHash getHash() const</div><div class="ttdef"><b>Definition:</b> <a href="SHAMap_8cpp_source.html#l00857">SHAMap.cpp:857</a></div></div>
<div class="ttc" id="anamespaceripple_html_ad5143ceada01141772ae4aab984f94bda555f976fd82d9e7e487770c44c7980bf"><div class="ttname"><a href="namespaceripple.html#ad5143ceada01141772ae4aab984f94bda555f976fd82d9e7e487770c44c7980bf">ripple::HashPrefix::txNode</a></div><div class="ttdeci">@ txNode</div><div class="ttdoc">transaction plus metadata</div></div>
<div class="ttc" id="aexception_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/error/exception.html">std::exception</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="aclassripple_1_1SHAMapLeafNode_html_ae5558bc731806e9562a8d49eccd77945"><div class="ttname"><a href="classripple_1_1SHAMapLeafNode.html#ae5558bc731806e9562a8d49eccd77945">ripple::SHAMapLeafNode::peekItem</a></div><div class="ttdeci">boost::intrusive_ptr&lt; SHAMapItem const &gt; const &amp; peekItem() const</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapLeafNode_8cpp_source.html#l00044">SHAMapLeafNode.cpp:44</a></div></div>
<div class="ttc" id="anamespaceripple_html_a5d9fe757c37a7602a883d30b14e1bf3cae6bed345f53943469741d7295552fcd4"><div class="ttname"><a href="namespaceripple.html#a5d9fe757c37a7602a883d30b14e1bf3cae6bed345f53943469741d7295552fcd4">ripple::SHAMapType::TRANSACTION</a></div><div class="ttdeci">@ TRANSACTION</div></div>
<div class="ttc" id="anamespaceripple_html_a0f98a7a60d7fb0c39572419ac15c959f"><div class="ttname"><a href="namespaceripple.html#a0f98a7a60d7fb0c39572419ac15c959f">ripple::make_shamapitem</a></div><div class="ttdeci">boost::intrusive_ptr&lt; SHAMapItem &gt; make_shamapitem(uint256 const &amp;tag, Slice data)</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapItem_8h_source.html#l00160">SHAMapItem.h:160</a></div></div>
<div class="ttc" id="anamespaceripple_html_ace117d2fc5a43543b6a33fff822d4854"><div class="ttname"><a href="namespaceripple.html#ace117d2fc5a43543b6a33fff822d4854">ripple::addRaw</a></div><div class="ttdeci">void addRaw(LedgerInfo const &amp;info, Serializer &amp;s, bool includeHash)</div><div class="ttdef"><b>Definition:</b> <a href="View_8cpp_source.html#l00162">View.cpp:162</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 class="ttdoc">STL class.</div></div>
<div class="ttc" id="aclassripple_1_1LedgerReplayMsgHandler_html_af8042ba0549420417c7d10f313e544d0"><div class="ttname"><a href="classripple_1_1LedgerReplayMsgHandler.html#af8042ba0549420417c7d10f313e544d0">ripple::LedgerReplayMsgHandler::LedgerReplayMsgHandler</a></div><div class="ttdeci">LedgerReplayMsgHandler(Application &amp;app, LedgerReplayer &amp;replayer)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerReplayMsgHandler_8cpp_source.html#l00028">LedgerReplayMsgHandler.cpp:28</a></div></div>
<div class="ttc" id="anamespaceripple_1_1keylet_html_acda2d89a44551845c5be38291e5c9e8b"><div class="ttname"><a href="namespaceripple_1_1keylet.html#acda2d89a44551845c5be38291e5c9e8b">ripple::keylet::skip</a></div><div class="ttdeci">Keylet const &amp; skip() noexcept</div><div class="ttdoc">The index of the &quot;short&quot; skip list.</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8cpp_source.html#l00145">Indexes.cpp:145</a></div></div>
<div class="ttc" id="aemplace_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/map/emplace.html">std::map::emplace</a></div><div class="ttdeci">T emplace(T... args)</div></div>
<div class="ttc" id="aclassripple_1_1LedgerReplayMsgHandler_html_a3cbd5e0d38896e7564a8d7ed5e1d8152"><div class="ttname"><a href="classripple_1_1LedgerReplayMsgHandler.html#a3cbd5e0d38896e7564a8d7ed5e1d8152">ripple::LedgerReplayMsgHandler::processReplayDeltaRequest</a></div><div class="ttdeci">protocol::TMReplayDeltaResponse processReplayDeltaRequest(std::shared_ptr&lt; protocol::TMReplayDeltaRequest &gt; const &amp;msg)</div><div class="ttdoc">Process TMReplayDeltaRequest and return TMReplayDeltaResponse.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerReplayMsgHandler_8cpp_source.html#l00178">LedgerReplayMsgHandler.cpp:178</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerMaster_html_a5f99fb5737062937149e4e33a95ffd06"><div class="ttname"><a href="classripple_1_1LedgerMaster.html#a5f99fb5737062937149e4e33a95ffd06">ripple::LedgerMaster::getLedgerByHash</a></div><div class="ttdeci">std::shared_ptr&lt; Ledger const &gt; getLedgerByHash(uint256 const &amp;hash)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerMaster_8cpp_source.html#l01854">LedgerMaster.cpp:1854</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerReplayMsgHandler_html_af352d6af412eb7e1215ad63e1d482a9f"><div class="ttname"><a href="classripple_1_1LedgerReplayMsgHandler.html#af352d6af412eb7e1215ad63e1d482a9f">ripple::LedgerReplayMsgHandler::journal_</a></div><div class="ttdeci">beast::Journal journal_</div><div class="ttdef"><b>Definition:</b> <a href="LedgerReplayMsgHandler_8h_source.html#l00073">LedgerReplayMsgHandler.h:73</a></div></div>
<div class="ttc" id="aclassripple_1_1SHAMapTreeNode_html_ae1b494609b7a732614554da92e235f57"><div class="ttname"><a href="classripple_1_1SHAMapTreeNode.html#ae1b494609b7a732614554da92e235f57">ripple::SHAMapTreeNode::makeFromWire</a></div><div class="ttdeci">static std::shared_ptr&lt; SHAMapTreeNode &gt; makeFromWire(Slice rawNode)</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapTreeNode_8cpp_source.html#l00116">SHAMapTreeNode.cpp:116</a></div></div>
<div class="ttc" id="aclassripple_1_1SHAMapLeafNode_html"><div class="ttname"><a href="classripple_1_1SHAMapLeafNode.html">ripple::SHAMapLeafNode</a></div><div class="ttdef"><b>Definition:</b> <a href="SHAMapLeafNode_8h_source.html#l00032">SHAMapLeafNode.h:32</a></div></div>
<div class="ttc" id="aclassripple_1_1base__uint_html_adbe18ef92b677603e8539b3a77c064b0"><div class="ttname"><a href="classripple_1_1base__uint.html#adbe18ef92b677603e8539b3a77c064b0">ripple::base_uint&lt; 256 &gt;::size</a></div><div class="ttdeci">constexpr static std::size_t size()</div><div class="ttdef"><b>Definition:</b> <a href="base__uint_8h_source.html#l00519">base_uint.h:519</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerReplayer_html_a759cf78a2dd1b613d9e1caccfe7be1e8"><div class="ttname"><a href="classripple_1_1LedgerReplayer.html#a759cf78a2dd1b613d9e1caccfe7be1e8">ripple::LedgerReplayer::gotSkipList</a></div><div class="ttdeci">void gotSkipList(LedgerInfo const &amp;info, boost::intrusive_ptr&lt; SHAMapItem const &gt; const &amp;data)</div><div class="ttdoc">Process a skip list (extracted from a TMProofPathResponse message)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerReplayer_8cpp_source.html#l00173">LedgerReplayer.cpp:173</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&lt; 256 &gt;</a></div></div>
<div class="ttc" id="aclassripple_1_1SHAMap_html_af382ac10dccf3f4b82c64548cd05a677"><div class="ttname"><a href="classripple_1_1SHAMap.html#af382ac10dccf3f4b82c64548cd05a677">ripple::SHAMap::verifyProofPath</a></div><div class="ttdeci">static bool verifyProofPath(uint256 const &amp;rootHash, uint256 const &amp;key, std::vector&lt; Blob &gt; const &amp;path)</div><div class="ttdoc">Verify the proof path.</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapSync_8cpp_source.html#l00826">SHAMapSync.cpp:826</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerReplayMsgHandler_html_a6a320c690d5b3c0c34b86659b9137d37"><div class="ttname"><a href="classripple_1_1LedgerReplayMsgHandler.html#a6a320c690d5b3c0c34b86659b9137d37">ripple::LedgerReplayMsgHandler::processProofPathResponse</a></div><div class="ttdeci">bool processProofPathResponse(std::shared_ptr&lt; protocol::TMProofPathResponse &gt; const &amp;msg)</div><div class="ttdoc">Process TMProofPathResponse.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerReplayMsgHandler_8cpp_source.html#l00105">LedgerReplayMsgHandler.cpp:105</a></div></div>
<div class="ttc" id="aclassripple_1_1Application_html_a57929fa83c551514e364fe6981b0c104"><div class="ttname"><a href="classripple_1_1Application.html#a57929fa83c551514e364fe6981b0c104">ripple::Application::getLedgerMaster</a></div><div class="ttdeci">virtual LedgerMaster &amp; getLedgerMaster()=0</div></div>
<div class="ttc" id="aclassripple_1_1SHAMap_html_a569baa82267b09d725839feafe6eedc0"><div class="ttname"><a href="classripple_1_1SHAMap.html#a569baa82267b09d725839feafe6eedc0">ripple::SHAMap::addGiveItem</a></div><div class="ttdeci">bool addGiveItem(SHAMapNodeType type, boost::intrusive_ptr&lt; SHAMapItem const &gt; item)</div><div class="ttdef"><b>Definition:</b> <a href="SHAMap_8cpp_source.html#l00779">SHAMap.cpp:779</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerReplayMsgHandler_html_a0e290f784d9f1426e6e796315f405d18"><div class="ttname"><a href="classripple_1_1LedgerReplayMsgHandler.html#a0e290f784d9f1426e6e796315f405d18">ripple::LedgerReplayMsgHandler::app_</a></div><div class="ttdeci">Application &amp; app_</div><div class="ttdef"><b>Definition:</b> <a href="LedgerReplayMsgHandler_8h_source.html#l00071">LedgerReplayMsgHandler.h:71</a></div></div>
<div class="ttc" id="anamespaceripple_html_a71f5c3f4baec0e09c5eab4d6f5b5efcb"><div class="ttname"><a href="namespaceripple.html#a71f5c3f4baec0e09c5eab4d6f5b5efcb">ripple::calculateLedgerHash</a></div><div class="ttdeci">uint256 calculateLedgerHash(LedgerInfo const &amp;info)</div><div class="ttdef"><b>Definition:</b> <a href="Ledger_8cpp_source.html#l00065">Ledger.cpp:65</a></div></div>
<div class="ttc" id="aclassripple_1_1Serializer_html_ac7156012b6dd5a536cf030b48109894c"><div class="ttname"><a href="classripple_1_1Serializer.html#ac7156012b6dd5a536cf030b48109894c">ripple::Serializer::getDataPtr</a></div><div class="ttdeci">const void * getDataPtr() const</div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00189">Serializer.h:189</a></div></div>
<div class="ttc" id="aclassripple_1_1SHAMap_html"><div class="ttname"><a href="classripple_1_1SHAMap.html">ripple::SHAMap</a></div><div class="ttdoc">A SHAMap is both a radix tree with a fan-out of 16 and a Merkle tree.</div><div class="ttdef"><b>Definition:</b> <a href="SHAMap_8h_source.html#l00095">SHAMap.h:95</a></div></div>
<div class="ttc" id="anamespaceripple_html_ae0356b1de00f841c554c830be509dd58a5065e45315e5eab27c63b2dabd8ad150"><div class="ttname"><a href="namespaceripple.html#ae0356b1de00f841c554c830be509dd58a5065e45315e5eab27c63b2dabd8ad150">ripple::SHAMapNodeType::tnTRANSACTION_MD</a></div><div class="ttdeci">@ tnTRANSACTION_MD</div></div>
<div class="ttc" id="aclassripple_1_1LedgerReplayMsgHandler_html_ae8fdb0da6b5df8ecf07772ef86ce364b"><div class="ttname"><a href="classripple_1_1LedgerReplayMsgHandler.html#ae8fdb0da6b5df8ecf07772ef86ce364b">ripple::LedgerReplayMsgHandler::processProofPathRequest</a></div><div class="ttdeci">protocol::TMProofPathResponse processProofPathRequest(std::shared_ptr&lt; protocol::TMProofPathRequest &gt; const &amp;msg)</div><div class="ttdoc">Process TMProofPathRequest and return TMProofPathResponse.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerReplayMsgHandler_8cpp_source.html#l00038">LedgerReplayMsgHandler.cpp:38</a></div></div>
<div class="ttc" id="aclassripple_1_1Serializer_html_a394c3299f6cfcebdaa4bc98ec0c602d6"><div class="ttname"><a href="classripple_1_1Serializer.html#a394c3299f6cfcebdaa4bc98ec0c602d6">ripple::Serializer::slice</a></div><div class="ttdeci">Slice slice() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00063">Serializer.h:63</a></div></div>
<div class="ttc" id="aclassripple_1_1SerialIter_html"><div class="ttname"><a href="classripple_1_1SerialIter.html">ripple::SerialIter</a></div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00310">Serializer.h:310</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerReplayer_html_a8652a285d05995ff346e6ae2944bef97"><div class="ttname"><a href="classripple_1_1LedgerReplayer.html#a8652a285d05995ff346e6ae2944bef97">ripple::LedgerReplayer::gotReplayDelta</a></div><div class="ttdeci">void gotReplayDelta(LedgerInfo const &amp;info, std::map&lt; std::uint32_t, std::shared_ptr&lt; STTx const &gt;&gt; &amp;&amp;txns)</div><div class="ttdoc">Process a ledger delta (extracted from a TMReplayDeltaResponse message)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerReplayer_8cpp_source.html#l00196">LedgerReplayer.cpp:196</a></div></div>
<div class="ttc" id="amap_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/map.html">std::map</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="amemory_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/memory.html">memory</a></div></div>
<div class="ttc" id="anamespaceripple_html_a25087ce817f91da8dcc101b2127067b0"><div class="ttname"><a href="namespaceripple.html#a25087ce817f91da8dcc101b2127067b0">ripple::sfTransactionIndex</a></div><div class="ttdeci">const SF_UINT32 sfTransactionIndex</div></div>
<div class="ttc" id="aclassripple_1_1Serializer_html"><div class="ttname"><a href="classripple_1_1Serializer.html">ripple::Serializer</a></div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00039">Serializer.h:39</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerReplayMsgHandler_html_a83ad644421269e93573d7733ac1a41b9"><div class="ttname"><a href="classripple_1_1LedgerReplayMsgHandler.html#a83ad644421269e93573d7733ac1a41b9">ripple::LedgerReplayMsgHandler::replayer_</a></div><div class="ttdeci">LedgerReplayer &amp; replayer_</div><div class="ttdef"><b>Definition:</b> <a href="LedgerReplayMsgHandler_8h_source.html#l00072">LedgerReplayMsgHandler.h:72</a></div></div>
<div class="ttc" id="aclassripple_1_1STObject_html"><div class="ttname"><a href="classripple_1_1STObject.html">ripple::STObject</a></div><div class="ttdef"><b>Definition:</b> <a href="STObject_8h_source.html#l00051">STObject.h:51</a></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="anamespaceripple_html_abd563ede46c4e47c4c7dec8bdf89b5fb"><div class="ttname"><a href="namespaceripple.html#abd563ede46c4e47c4c7dec8bdf89b5fb">ripple::deserializeHeader</a></div><div class="ttdeci">LedgerInfo deserializeHeader(Slice data, bool hasHash)</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#l00275">InboundLedger.cpp:275</a></div></div>
<div class="ttc" id="aclassripple_1_1SerialIter_html_aa97628bd129c57f172027982c0ac4f1f"><div class="ttname"><a href="classripple_1_1SerialIter.html#aa97628bd129c57f172027982c0ac4f1f">ripple::SerialIter::getVLDataLength</a></div><div class="ttdeci">int getVLDataLength()</div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8cpp_source.html#l00470">Serializer.cpp:470</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerReplayer_html"><div class="ttname"><a href="classripple_1_1LedgerReplayer.html">ripple::LedgerReplayer</a></div><div class="ttdoc">Manages the lifetime of ledger replay tasks.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerReplayer_8h_source.html#l00072">LedgerReplayer.h:72</a></div></div>
<div class="ttc" id="aoptional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a></div></div>
<div class="ttc" id="aclassbeast_1_1Journal_html_a556228cb60bcf405c225d3f64b7b01ae"><div class="ttname"><a href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">beast::Journal::debug</a></div><div class="ttdeci">Stream debug() const</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00315">Journal.h:315</a></div></div>
<div class="ttc" id="aclassripple_1_1SHAMapHash_html_a8f95b5bc14b7085d368f56aeaa17ef4f"><div class="ttname"><a href="classripple_1_1SHAMapHash.html#a8f95b5bc14b7085d368f56aeaa17ef4f">ripple::SHAMapHash::as_uint256</a></div><div class="ttdeci">uint256 const &amp; as_uint256() const</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapHash_8h_source.html#l00043">SHAMapHash.h:43</a></div></div>
<div class="ttc" id="aclassripple_1_1Serializer_html_aa5c7aa53db0c7c90c6a86dd5144e9255"><div class="ttname"><a href="classripple_1_1Serializer.html#aa5c7aa53db0c7c90c6a86dd5144e9255">ripple::Serializer::getLength</a></div><div class="ttdeci">int getLength() const</div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00199">Serializer.h:199</a></div></div>
<div class="ttc" id="aclassripple_1_1LedgerReplayMsgHandler_html_ab6699613bbd3d92c9068738cf9b5de07"><div class="ttname"><a href="classripple_1_1LedgerReplayMsgHandler.html#ab6699613bbd3d92c9068738cf9b5de07">ripple::LedgerReplayMsgHandler::processReplayDeltaResponse</a></div><div class="ttdeci">bool processReplayDeltaResponse(std::shared_ptr&lt; protocol::TMReplayDeltaResponse &gt; const &amp;msg)</div><div class="ttdoc">Process TMReplayDeltaResponse.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerReplayMsgHandler_8cpp_source.html#l00220">LedgerReplayMsgHandler.cpp:220</a></div></div>
<div class="ttc" id="aclassripple_1_1SerialIter_html_a4131424f0e083369a1e562a5437d56e8"><div class="ttname"><a href="classripple_1_1SerialIter.html#a4131424f0e083369a1e562a5437d56e8">ripple::SerialIter::getSlice</a></div><div class="ttdeci">Slice getSlice(std::size_t bytes)</div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8cpp_source.html#l00495">Serializer.cpp:495</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>