This commit is contained in:
bthomee
2025-03-12 22:37:33 +00:00
parent 863da5c9e1
commit 7f0acfcddb
1732 changed files with 298086 additions and 297371 deletions

View File

@@ -99,305 +99,307 @@ $(function() {
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#define RIPPLE_TEST_CSF_LEDGERS_H_INCLUDED</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include &lt;test/csf/Tx.h&gt;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include &lt;xrpld/consensus/LedgerTiming.h&gt;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include &lt;xrpl/basics/UnorderedContainers.h&gt;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include &lt;xrpl/basics/chrono.h&gt;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include &lt;xrpl/basics/comparators.h&gt;</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include &lt;xrpl/basics/tagged_integer.h&gt;</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include &lt;xrpl/json/json_value.h&gt;</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor">#include &lt;boost/bimap/bimap.hpp&gt;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include &lt;xrpld/consensus/LedgerTiming.h&gt;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include &lt;xrpl/basics/UnorderedContainers.h&gt;</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include &lt;xrpl/basics/chrono.h&gt;</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include &lt;xrpl/basics/comparators.h&gt;</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#include &lt;xrpl/basics/tagged_integer.h&gt;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor">#include &lt;xrpl/json/json_value.h&gt;</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/optional.html">optional</a>&gt;</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><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 id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="keyword">namespace </span>test {</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><span class="keyword">namespace </span>csf {</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html"> 61</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a></div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span>{</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#a3ce4af742a4b6e94b3c0410aed30c8c2"> 63</a></span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html">LedgerOracle</a>;</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> </div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="keyword">struct </span>SeqTag;</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#af977b8184fe30083d872e230c43c726d"> 67</a></span> <span class="keyword">using </span><a class="code hl_class" href="classripple_1_1tagged__integer.html">Seq</a> = <a class="code hl_class" href="classripple_1_1tagged__integer.html">tagged_integer&lt;std::uint32_t, SeqTag&gt;</a>;</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> </div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="keyword">struct </span>IdTag;</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#afe81f84534dea5767de43a3dc0fe5b9b"> 70</a></span> <span class="keyword">using </span><a class="code hl_class" href="classripple_1_1tagged__integer.html">ID</a> = <a class="code hl_class" href="classripple_1_1tagged__integer.html">tagged_integer&lt;std::uint32_t, IdTag&gt;</a>;</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1MakeGenesis.html"> 72</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1MakeGenesis.html">MakeGenesis</a></div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> {</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> };</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="comment">// The instance is the common immutable data that will be assigned a unique</span></div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="comment">// ID by the oracle</span></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html"> 79</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">Instance</a></div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> {</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#aba1c0f8f9fda9d155c0fc8fa72b8f547"> 81</a></span> <a class="code hl_function" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#aba1c0f8f9fda9d155c0fc8fa72b8f547">Instance</a>()</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> {</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> }</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> </div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <span class="comment">// Sequence number</span></div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a53dfddac1d83437a31b3d66c563f7638"> 86</a></span> <a class="code hl_class" href="classripple_1_1tagged__integer.html">Seq</a> <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a>{0};</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> </div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <span class="comment">// Transactions added to generate this ledger</span></div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a16e8561caa911061110bcd4f8b650cba"> 89</a></span> <a class="code hl_typedef" href="namespaceripple_1_1test_1_1csf.html#a71159613165e817624cb1a482aeb3345">TxSetType</a> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a16e8561caa911061110bcd4f8b650cba">txs</a>;</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> </div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <span class="comment">// Resolution used to determine close time</span></div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a7fecef092ba649578b6dbf4971c4784e"> 92</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">NetClock::duration</a> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a7fecef092ba649578b6dbf4971c4784e">closeTimeResolution</a> = <a class="code hl_variable" href="namespaceripple.html#a70a22962c62019bd1d5728e3ba21d032">ledgerDefaultTimeResolution</a>;</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> </div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#afaff99ff2632821399e28b31f2247200"> 95</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/time_point.html">NetClock::time_point</a> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#afaff99ff2632821399e28b31f2247200">closeTime</a>;</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> </div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a9f8b0bca6da7d85d73372bc5119611c0"> 98</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a9f8b0bca6da7d85d73372bc5119611c0">closeTimeAgree</a> = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a90c701b09e5bd50c875e16d2bd8ca47c"> 101</a></span> <a class="code hl_class" href="classripple_1_1tagged__integer.html">ID</a> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a90c701b09e5bd50c875e16d2bd8ca47c">parentID</a>{0};</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> </div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a1c94fff3c3a71f68aaad45b435e19bc7"> 104</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/time_point.html">NetClock::time_point</a> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a1c94fff3c3a71f68aaad45b435e19bc7">parentCloseTime</a>;</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> </div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#af265404aca2eb28360fd77a4f530305a"> 109</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;Ledger::ID&gt;</a> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#af265404aca2eb28360fd77a4f530305a">ancestors</a>;</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> </div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <span class="keyword">auto</span></div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6ee8a93771bb3052c26d5a57eb50e980"> 112</a></span> <a class="code hl_function" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6ee8a93771bb3052c26d5a57eb50e980">asTie</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <span class="keywordflow">return</span> <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/utility/tuple/tie.html">std::tie</a>(</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a>,</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a16e8561caa911061110bcd4f8b650cba">txs</a>,</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a7fecef092ba649578b6dbf4971c4784e">closeTimeResolution</a>,</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#afaff99ff2632821399e28b31f2247200">closeTime</a>,</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a9f8b0bca6da7d85d73372bc5119611c0">closeTimeAgree</a>,</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a90c701b09e5bd50c875e16d2bd8ca47c">parentID</a>,</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a1c94fff3c3a71f68aaad45b435e19bc7">parentCloseTime</a>);</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> }</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> </div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> <span class="keyword">friend</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6c280829f26602147308c204f9092af3"> 125</a></span> <a class="code hl_friend" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6c280829f26602147308c204f9092af3">operator==</a>(<a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">Instance</a> <span class="keyword">const</span>&amp; a, <a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">Instance</a> <span class="keyword">const</span>&amp; b)</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> {</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <span class="keywordflow">return</span> a.<a class="code hl_function" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6ee8a93771bb3052c26d5a57eb50e980">asTie</a>() == b.<a class="code hl_function" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6ee8a93771bb3052c26d5a57eb50e980">asTie</a>();</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> }</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> </div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> <span class="keyword">friend</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#abf7689191f2bf3285d60bf205e9a8659"> 131</a></span> <a class="code hl_friend" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#abf7689191f2bf3285d60bf205e9a8659">operator!=</a>(<a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">Instance</a> <span class="keyword">const</span>&amp; a, <a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">Instance</a> <span class="keyword">const</span>&amp; b)</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> {</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> <span class="keywordflow">return</span> a.<a class="code hl_function" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6ee8a93771bb3052c26d5a57eb50e980">asTie</a>() != b.<a class="code hl_function" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6ee8a93771bb3052c26d5a57eb50e980">asTie</a>();</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> }</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> </div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#abeabc037a93a226346001d720cd8f202"> 136</a></span> <span class="keyword">friend</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <a class="code hl_friend" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#abeabc037a93a226346001d720cd8f202">operator&lt;</a>(<a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">Instance</a> <span class="keyword">const</span>&amp; a, <a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">Instance</a> <span class="keyword">const</span>&amp; b)</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> {</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> <span class="keywordflow">return</span> a.<a class="code hl_function" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6ee8a93771bb3052c26d5a57eb50e980">asTie</a>() &lt; b.<a class="code hl_function" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6ee8a93771bb3052c26d5a57eb50e980">asTie</a>();</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> }</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> </div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <span class="keyword">template</span> &lt;<span class="keyword">class</span> Hasher&gt;</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="keyword">friend</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#ac20b7c30c27182a653a4a205e89816b3"> 144</a></span> <a class="code hl_friend" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#ac20b7c30c27182a653a4a205e89816b3">hash_append</a>(Hasher&amp; h, <a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">Ledger::Instance</a> <span class="keyword">const</span>&amp; instance)</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> {</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <span class="keyword">using </span><a class="code hl_function" href="namespacebeast.html#a91bb66f7828c0bb3c5f6eaa0255ba40c">beast::hash_append</a>;</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <a class="code hl_friend" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#ac20b7c30c27182a653a4a205e89816b3">hash_append</a>(h, instance.<a class="code hl_function" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6ee8a93771bb3052c26d5a57eb50e980">asTie</a>());</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> }</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> };</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> </div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <span class="comment">// Single common genesis instance</span></div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#a06067398a21457f23377013cd6e9a3cf"> 152</a></span> <span class="keyword">static</span> <span class="keyword">const</span> <a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">Instance</a> <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a06067398a21457f23377013cd6e9a3cf">genesis</a>;</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> </div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#ae17a349a70dae4e17d3365a6216fde45"> 154</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#ae17a349a70dae4e17d3365a6216fde45">Ledger</a>(<a class="code hl_class" href="classripple_1_1tagged__integer.html">ID</a> <span class="keywordtype">id</span>, <a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">Instance</a> <span class="keyword">const</span>* i) : <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a734b038a4f68532dc05ab982a8480ae7">id_</a>{<a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#ad92a35fc6f64955e2cdf6ce2a1b66d13">id</a>}, <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b">instance_</a>{i}</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> {</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> }</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> </div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#ab07c94f8bc5d34242fa9618755c4ad2f"> 159</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#ab07c94f8bc5d34242fa9618755c4ad2f">Ledger</a>(<a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1MakeGenesis.html">MakeGenesis</a>) : <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b">instance_</a>(&amp;<a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a06067398a21457f23377013cd6e9a3cf">genesis</a>)</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> {</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> }</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> </div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> <span class="comment">// This is required by the generic Consensus for now and should be</span></div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <span class="comment">// migrated to the MakeGenesis approach above.</span></div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#aebb30fa85bcfd7c621c50a3d9a8340b3"> 165</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#aebb30fa85bcfd7c621c50a3d9a8340b3">Ledger</a>() : <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a>(<a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1MakeGenesis.html">MakeGenesis</a>{})</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> {</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> }</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> </div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> <a class="code hl_typedef" href="classripple_1_1test_1_1csf_1_1Ledger.html#afe81f84534dea5767de43a3dc0fe5b9b">ID</a></div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#ad92a35fc6f64955e2cdf6ce2a1b66d13"> 170</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#ad92a35fc6f64955e2cdf6ce2a1b66d13">id</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a734b038a4f68532dc05ab982a8480ae7">id_</a>;</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> }</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> </div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> <a class="code hl_typedef" href="classripple_1_1test_1_1csf_1_1Ledger.html#af977b8184fe30083d872e230c43c726d">Seq</a></div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#a881d03459c0fdadf8de8c2e34f727f5c"> 176</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#a881d03459c0fdadf8de8c2e34f727f5c">seq</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b">instance_</a>-&gt;<a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a53dfddac1d83437a31b3d66c563f7638">seq</a>;</div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> }</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> </div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">NetClock::duration</a></div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#a24d67310747d45fbc23c928770f21fec"> 182</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#a24d67310747d45fbc23c928770f21fec">closeTimeResolution</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b">instance_</a>-&gt;<a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a7fecef092ba649578b6dbf4971c4784e">closeTimeResolution</a>;</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> }</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> </div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#a81da7e57b7c3864fcaa96468e05d9db5"> 188</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#a81da7e57b7c3864fcaa96468e05d9db5">closeAgree</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b">instance_</a>-&gt;<a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a9f8b0bca6da7d85d73372bc5119611c0">closeTimeAgree</a>;</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> }</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> </div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/time_point.html">NetClock::time_point</a></div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#a51762b712ff675f7069ad6225761117b"> 194</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#a51762b712ff675f7069ad6225761117b">closeTime</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b">instance_</a>-&gt;<a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#afaff99ff2632821399e28b31f2247200">closeTime</a>;</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> }</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> </div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/time_point.html">NetClock::time_point</a></div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#a3901578883505aadc2fcc2feb9b5344c"> 200</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#a3901578883505aadc2fcc2feb9b5344c">parentCloseTime</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b">instance_</a>-&gt;<a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a1c94fff3c3a71f68aaad45b435e19bc7">parentCloseTime</a>;</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> }</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> </div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> <a class="code hl_typedef" href="classripple_1_1test_1_1csf_1_1Ledger.html#afe81f84534dea5767de43a3dc0fe5b9b">ID</a></div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#a129e52b6245954f525cfca44c673f644"> 206</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#a129e52b6245954f525cfca44c673f644">parentID</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b">instance_</a>-&gt;<a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a90c701b09e5bd50c875e16d2bd8ca47c">parentID</a>;</div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> }</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> </div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> <a class="code hl_typedef" href="namespaceripple_1_1test_1_1csf.html#a71159613165e817624cb1a482aeb3345">TxSetType</a> <span class="keyword">const</span>&amp;</div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#ac71cd56e9ce54c266adfc8d1582fc3a7"> 212</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#ac71cd56e9ce54c266adfc8d1582fc3a7">txs</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b">instance_</a>-&gt;<a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a16e8561caa911061110bcd4f8b650cba">txs</a>;</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> }</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> </div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#ad46ef51c2bccdf342f2cc7d8981584da">isAncestor</a>(<a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a> <span class="keyword">const</span>&amp; ancestor) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> </div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> <a class="code hl_typedef" href="classripple_1_1test_1_1csf_1_1Ledger.html#afe81f84534dea5767de43a3dc0fe5b9b">ID</a></div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#ae087b8addc8f7753e9a4dc92efb7c46d">operator[]</a>(<a class="code hl_typedef" href="classripple_1_1test_1_1csf_1_1Ledger.html#af977b8184fe30083d872e230c43c726d">Seq</a> <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a>) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> </div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> <span class="keyword">friend</span> <a class="code hl_class" href="classripple_1_1tagged__integer.html">Ledger::Seq</a></div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> <a class="code hl_friend" href="classripple_1_1test_1_1csf_1_1Ledger.html#a44a6073a13a26322ef0bc2e48b0594f8">mismatch</a>(<a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a> <span class="keyword">const</span>&amp; a, <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a> <span class="keyword">const</span>&amp; o);</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> </div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a></div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#a7bc8181b16188a8f129a67154afaf74d">getJson</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> </div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#a0964bfc852804225e6d04b9ccd21b038"> 234</a></span> <span class="keyword">friend</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> <a class="code hl_friend" href="classripple_1_1test_1_1csf_1_1Ledger.html#a0964bfc852804225e6d04b9ccd21b038">operator&lt;</a>(<a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a> <span class="keyword">const</span>&amp; a, <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a> <span class="keyword">const</span>&amp; b)</div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> {</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> <span class="keywordflow">return</span> a.<a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#ad92a35fc6f64955e2cdf6ce2a1b66d13">id</a>() &lt; b.<a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#ad92a35fc6f64955e2cdf6ce2a1b66d13">id</a>();</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> }</div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> </div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#a734b038a4f68532dc05ab982a8480ae7"> 241</a></span> <a class="code hl_class" href="classripple_1_1tagged__integer.html">ID</a> <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a734b038a4f68532dc05ab982a8480ae7">id_</a>{0};</div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b"> 242</a></span> <a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">Instance</a> <span class="keyword">const</span>* <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b">instance_</a>;</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span>};</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> </div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html"> 247</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html">LedgerOracle</a></div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span>{</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aaf9cf53659194829c130fa990d73a19f"> 249</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aaf9cf53659194829c130fa990d73a19f">InstanceMap</a> = boost::bimaps::bimap&lt;</div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> boost::bimaps::set_of&lt;Ledger::Instance, ripple::less&lt;Ledger::Instance&gt;&gt;,</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> boost::bimaps::set_of&lt;Ledger::ID, ripple::less&lt;Ledger::ID&gt;&gt;&gt;;</div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#a2d89c460f3342a86889a560b6bfb6192"> 252</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#a2d89c460f3342a86889a560b6bfb6192">InstanceEntry</a> = InstanceMap::value_type;</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> </div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> <span class="comment">// Set of all known ledgers; note this is never pruned</span></div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#a9eadbbd2c55e5879e7f9a4e24ea4ed34"> 255</a></span> <a class="code hl_typedef" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aaf9cf53659194829c130fa990d73a19f">InstanceMap</a> <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#a9eadbbd2c55e5879e7f9a4e24ea4ed34">instances_</a>;</div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> </div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> <span class="comment">// ID for the next unique ledger</span></div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> <a class="code hl_class" href="classripple_1_1tagged__integer.html">Ledger::ID</a></div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aa0bb795de089fec669c5f840ced9d562">nextID</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> </div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#a6986248b55e7165075b34f72d7c35fb6">LedgerOracle</a>();</div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> </div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;Ledger&gt;</a></div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aaf00a6b30982d192939144e0397a6e6a">lookup</a>(<a class="code hl_class" href="classripple_1_1tagged__integer.html">Ledger::ID</a> <span class="keyword">const</span>&amp; <span class="keywordtype">id</span>) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> </div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</span> <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a></div>
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aa5c1e0afad87b1998cbe4152134cecc2">accept</a>(</div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span> <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a> <span class="keyword">const</span>&amp; curr,</div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span> <a class="code hl_typedef" href="namespaceripple_1_1test_1_1csf.html#a71159613165e817624cb1a482aeb3345">TxSetType</a> <span class="keyword">const</span>&amp; txs,</div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">NetClock::duration</a> closeTimeResolution,</div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/time_point.html">NetClock::time_point</a> <span class="keyword">const</span>&amp; consensusCloseTime);</div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> </div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a></div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#a0f14f1bf5d1566c976fd59082d5e6423"> 284</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#a0f14f1bf5d1566c976fd59082d5e6423">accept</a>(<a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a> <span class="keyword">const</span>&amp; curr, <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Tx.html">Tx</a> tx)</div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> {</div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> <span class="keyword">using namespace </span>std::chrono_literals;</div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aa5c1e0afad87b1998cbe4152134cecc2">accept</a>(</div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> curr,</div>
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> <a class="code hl_typedef" href="namespaceripple_1_1test_1_1csf.html#a71159613165e817624cb1a482aeb3345">TxSetType</a>{tx},</div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> curr.<a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#a24d67310747d45fbc23c928770f21fec">closeTimeResolution</a>(),</div>
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> curr.<a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#a51762b712ff675f7069ad6225761117b">closeTime</a>() + 1s);</div>
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> }</div>
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno"> 293</span> </div>
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno"> 303</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno"> 304</span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aaf98b15ed5a342de9724ffad089b266b">branches</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set&lt;Ledger&gt;</a> <span class="keyword">const</span>&amp; ledgers) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno"> 305</span>};</div>
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno"> 306</span> </div>
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html"> 326</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html">LedgerHistoryHelper</a></div>
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno"> 327</span>{</div>
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a19232cf258e58cf9103a5304572f8763"> 328</a></span> <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html">LedgerOracle</a> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a19232cf258e58cf9103a5304572f8763">oracle</a>;</div>
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a663259269bf0ff6fa4873fded850e4bd"> 329</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">Tx::ID</a> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a663259269bf0ff6fa4873fded850e4bd">nextTx</a>{0};</div>
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#aa555f5bc1be372437144be4fa7f7b3b2"> 330</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/unordered_map.html">std::unordered_map&lt;std::string, Ledger&gt;</a> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#aa555f5bc1be372437144be4fa7f7b3b2">ledgers</a>;</div>
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a0dd272179e7a1612364a5928f8018af3"> 331</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set&lt;char&gt;</a> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a0dd272179e7a1612364a5928f8018af3">seen</a>;</div>
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno"> 332</span> </div>
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a7ef5b418cae8c2cc2938aae361a04733"> 333</a></span> <a class="code hl_function" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a7ef5b418cae8c2cc2938aae361a04733">LedgerHistoryHelper</a>()</div>
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno"> 334</span> {</div>
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno"> 335</span> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#aa555f5bc1be372437144be4fa7f7b3b2">ledgers</a>[<span class="stringliteral">&quot;&quot;</span>] = <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a>{<a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1MakeGenesis.html">Ledger::MakeGenesis</a>{}};</div>
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno"> 336</span> }</div>
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno"> 337</span> </div>
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno"> 343</span> <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a> <span class="keyword">const</span>&amp;</div>
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a1273c816f2a0f172257f23fcfa0f0a2d"> 344</a></span> <a class="code hl_function" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a1273c816f2a0f172257f23fcfa0f0a2d">operator[]</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; s)</div>
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno"> 345</span> {</div>
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno"> 346</span> <span class="keyword">auto</span> it = <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#aa555f5bc1be372437144be4fa7f7b3b2">ledgers</a>.find(s);</div>
<div class="line"><a id="l00347" name="l00347"></a><span class="lineno"> 347</span> <span class="keywordflow">if</span> (it != <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#aa555f5bc1be372437144be4fa7f7b3b2">ledgers</a>.end())</div>
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno"> 348</span> <span class="keywordflow">return</span> it-&gt;second;</div>
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno"> 349</span> </div>
<div class="line"><a id="l00350" name="l00350"></a><span class="lineno"> 350</span> <span class="comment">// enforce that the new suffix has never been seen</span></div>
<div class="line"><a id="l00351" name="l00351"></a><span class="lineno"> 351</span> assert(<a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a0dd272179e7a1612364a5928f8018af3">seen</a>.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/container/set/emplace.html">emplace</a>(s.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/string/basic_string/back.html">back</a>()).second);</div>
<div class="line"><a id="l00352" name="l00352"></a><span class="lineno"> 352</span> </div>
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno"> 353</span> <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a> <span class="keyword">const</span>&amp; parent = (*this)[s.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/string/basic_string/substr.html">substr</a>(0, s.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/string/basic_string/size.html">size</a>() - 1)];</div>
<div class="line"><a id="l00354" name="l00354"></a><span class="lineno"> 354</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#aa555f5bc1be372437144be4fa7f7b3b2">ledgers</a>.emplace(s, <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a19232cf258e58cf9103a5304572f8763">oracle</a>.<a class="code hl_function" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aa5c1e0afad87b1998cbe4152134cecc2">accept</a>(parent, <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Tx.html">Tx</a>{++nextTx}))</div>
<div class="line"><a id="l00355" name="l00355"></a><span class="lineno"> 355</span> .first-&gt;second;</div>
<div class="line"><a id="l00356" name="l00356"></a><span class="lineno"> 356</span> }</div>
<div class="line"><a id="l00357" name="l00357"></a><span class="lineno"> 357</span>};</div>
<div class="line"><a id="l00358" name="l00358"></a><span class="lineno"> 358</span> </div>
<div class="line"><a id="l00359" name="l00359"></a><span class="lineno"> 359</span>} <span class="comment">// namespace csf</span></div>
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno"> 360</span>} <span class="comment">// namespace test</span></div>
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno"> 361</span>} <span class="comment">// namespace ripple</span></div>
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno"> 362</span> </div>
<div class="line"><a id="l00363" name="l00363"></a><span class="lineno"> 363</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="preprocessor">#include &lt;boost/bimap/bimap.hpp&gt;</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/optional.html">optional</a>&gt;</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><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 id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span><span class="keyword">namespace </span>test {</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span><span class="keyword">namespace </span>csf {</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html"> 63</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a></div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span>{</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#a3ce4af742a4b6e94b3c0410aed30c8c2"> 65</a></span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html">LedgerOracle</a>;</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> </div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="keyword">struct </span>SeqTag;</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#af977b8184fe30083d872e230c43c726d"> 69</a></span> <span class="keyword">using </span><a class="code hl_class" href="classripple_1_1tagged__integer.html">Seq</a> = <a class="code hl_class" href="classripple_1_1tagged__integer.html">tagged_integer&lt;std::uint32_t, SeqTag&gt;</a>;</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> </div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="keyword">struct </span>IdTag;</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#afe81f84534dea5767de43a3dc0fe5b9b"> 72</a></span> <span class="keyword">using </span><a class="code hl_class" href="classripple_1_1tagged__integer.html">ID</a> = <a class="code hl_class" href="classripple_1_1tagged__integer.html">tagged_integer&lt;std::uint32_t, IdTag&gt;</a>;</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> </div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1MakeGenesis.html"> 74</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1MakeGenesis.html">MakeGenesis</a></div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> {</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> };</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> </div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="comment">// The instance is the common immutable data that will be assigned a unique</span></div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="comment">// ID by the oracle</span></div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html"> 81</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">Instance</a></div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> {</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#aba1c0f8f9fda9d155c0fc8fa72b8f547"> 83</a></span> <a class="code hl_function" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#aba1c0f8f9fda9d155c0fc8fa72b8f547">Instance</a>()</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> {</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> }</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> </div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="comment">// Sequence number</span></div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a53dfddac1d83437a31b3d66c563f7638"> 88</a></span> <a class="code hl_class" href="classripple_1_1tagged__integer.html">Seq</a> <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a>{0};</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> </div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <span class="comment">// Transactions added to generate this ledger</span></div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a16e8561caa911061110bcd4f8b650cba"> 91</a></span> <a class="code hl_typedef" href="namespaceripple_1_1test_1_1csf.html#a71159613165e817624cb1a482aeb3345">TxSetType</a> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a16e8561caa911061110bcd4f8b650cba">txs</a>;</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> </div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="comment">// Resolution used to determine close time</span></div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a7fecef092ba649578b6dbf4971c4784e"> 94</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">NetClock::duration</a> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a7fecef092ba649578b6dbf4971c4784e">closeTimeResolution</a> = <a class="code hl_variable" href="namespaceripple.html#a70a22962c62019bd1d5728e3ba21d032">ledgerDefaultTimeResolution</a>;</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#afaff99ff2632821399e28b31f2247200"> 97</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/time_point.html">NetClock::time_point</a> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#afaff99ff2632821399e28b31f2247200">closeTime</a>;</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> </div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a9f8b0bca6da7d85d73372bc5119611c0"> 100</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a9f8b0bca6da7d85d73372bc5119611c0">closeTimeAgree</a> = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> </div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a90c701b09e5bd50c875e16d2bd8ca47c"> 103</a></span> <a class="code hl_class" href="classripple_1_1tagged__integer.html">ID</a> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a90c701b09e5bd50c875e16d2bd8ca47c">parentID</a>{0};</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> </div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a1c94fff3c3a71f68aaad45b435e19bc7"> 106</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/time_point.html">NetClock::time_point</a> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a1c94fff3c3a71f68aaad45b435e19bc7">parentCloseTime</a>;</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> </div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#af265404aca2eb28360fd77a4f530305a"> 111</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;Ledger::ID&gt;</a> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#af265404aca2eb28360fd77a4f530305a">ancestors</a>;</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> </div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <span class="keyword">auto</span></div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6ee8a93771bb3052c26d5a57eb50e980"> 114</a></span> <a class="code hl_function" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6ee8a93771bb3052c26d5a57eb50e980">asTie</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <span class="keywordflow">return</span> <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/utility/tuple/tie.html">std::tie</a>(</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a>,</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a16e8561caa911061110bcd4f8b650cba">txs</a>,</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a7fecef092ba649578b6dbf4971c4784e">closeTimeResolution</a>,</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#afaff99ff2632821399e28b31f2247200">closeTime</a>,</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a9f8b0bca6da7d85d73372bc5119611c0">closeTimeAgree</a>,</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a90c701b09e5bd50c875e16d2bd8ca47c">parentID</a>,</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a1c94fff3c3a71f68aaad45b435e19bc7">parentCloseTime</a>);</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> }</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> </div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <span class="keyword">friend</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6c280829f26602147308c204f9092af3"> 127</a></span> <a class="code hl_friend" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6c280829f26602147308c204f9092af3">operator==</a>(<a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">Instance</a> <span class="keyword">const</span>&amp; a, <a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">Instance</a> <span class="keyword">const</span>&amp; b)</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> {</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> <span class="keywordflow">return</span> a.<a class="code hl_function" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6ee8a93771bb3052c26d5a57eb50e980">asTie</a>() == b.<a class="code hl_function" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6ee8a93771bb3052c26d5a57eb50e980">asTie</a>();</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> }</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> </div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <span class="keyword">friend</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#abf7689191f2bf3285d60bf205e9a8659"> 133</a></span> <a class="code hl_friend" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#abf7689191f2bf3285d60bf205e9a8659">operator!=</a>(<a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">Instance</a> <span class="keyword">const</span>&amp; a, <a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">Instance</a> <span class="keyword">const</span>&amp; b)</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> {</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <span class="keywordflow">return</span> a.<a class="code hl_function" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6ee8a93771bb3052c26d5a57eb50e980">asTie</a>() != b.<a class="code hl_function" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6ee8a93771bb3052c26d5a57eb50e980">asTie</a>();</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> }</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> </div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#abeabc037a93a226346001d720cd8f202"> 138</a></span> <span class="keyword">friend</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> <a class="code hl_friend" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#abeabc037a93a226346001d720cd8f202">operator&lt;</a>(<a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">Instance</a> <span class="keyword">const</span>&amp; a, <a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">Instance</a> <span class="keyword">const</span>&amp; b)</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> {</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="keywordflow">return</span> a.<a class="code hl_function" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6ee8a93771bb3052c26d5a57eb50e980">asTie</a>() &lt; b.<a class="code hl_function" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6ee8a93771bb3052c26d5a57eb50e980">asTie</a>();</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> }</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> </div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="keyword">template</span> &lt;<span class="keyword">class</span> Hasher&gt;</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="keyword">friend</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#ac20b7c30c27182a653a4a205e89816b3"> 146</a></span> <a class="code hl_friend" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#ac20b7c30c27182a653a4a205e89816b3">hash_append</a>(Hasher&amp; h, <a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">Ledger::Instance</a> <span class="keyword">const</span>&amp; instance)</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> {</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <span class="keyword">using </span><a class="code hl_function" href="namespacebeast.html#a91bb66f7828c0bb3c5f6eaa0255ba40c">beast::hash_append</a>;</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> <a class="code hl_friend" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#ac20b7c30c27182a653a4a205e89816b3">hash_append</a>(h, instance.<a class="code hl_function" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6ee8a93771bb3052c26d5a57eb50e980">asTie</a>());</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> }</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> };</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> </div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> <span class="comment">// Single common genesis instance</span></div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#a06067398a21457f23377013cd6e9a3cf"> 154</a></span> <span class="keyword">static</span> <span class="keyword">const</span> <a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">Instance</a> <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a06067398a21457f23377013cd6e9a3cf">genesis</a>;</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> </div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#ae17a349a70dae4e17d3365a6216fde45"> 156</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#ae17a349a70dae4e17d3365a6216fde45">Ledger</a>(<a class="code hl_class" href="classripple_1_1tagged__integer.html">ID</a> <span class="keywordtype">id</span>, <a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">Instance</a> <span class="keyword">const</span>* i) : <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a734b038a4f68532dc05ab982a8480ae7">id_</a>{<a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#ad92a35fc6f64955e2cdf6ce2a1b66d13">id</a>}, <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b">instance_</a>{i}</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> {</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> }</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> </div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#ab07c94f8bc5d34242fa9618755c4ad2f"> 161</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#ab07c94f8bc5d34242fa9618755c4ad2f">Ledger</a>(<a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1MakeGenesis.html">MakeGenesis</a>) : <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b">instance_</a>(&amp;<a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a06067398a21457f23377013cd6e9a3cf">genesis</a>)</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> {</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> }</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> </div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <span class="comment">// This is required by the generic Consensus for now and should be</span></div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> <span class="comment">// migrated to the MakeGenesis approach above.</span></div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#aebb30fa85bcfd7c621c50a3d9a8340b3"> 167</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#aebb30fa85bcfd7c621c50a3d9a8340b3">Ledger</a>() : <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a>(<a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1MakeGenesis.html">MakeGenesis</a>{})</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> {</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> }</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> </div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> <a class="code hl_typedef" href="classripple_1_1test_1_1csf_1_1Ledger.html#afe81f84534dea5767de43a3dc0fe5b9b">ID</a></div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#ad92a35fc6f64955e2cdf6ce2a1b66d13"> 172</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#ad92a35fc6f64955e2cdf6ce2a1b66d13">id</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a734b038a4f68532dc05ab982a8480ae7">id_</a>;</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> }</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> </div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> <a class="code hl_typedef" href="classripple_1_1test_1_1csf_1_1Ledger.html#af977b8184fe30083d872e230c43c726d">Seq</a></div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#a881d03459c0fdadf8de8c2e34f727f5c"> 178</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#a881d03459c0fdadf8de8c2e34f727f5c">seq</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b">instance_</a>-&gt;<a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a53dfddac1d83437a31b3d66c563f7638">seq</a>;</div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> }</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> </div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">NetClock::duration</a></div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#a24d67310747d45fbc23c928770f21fec"> 184</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#a24d67310747d45fbc23c928770f21fec">closeTimeResolution</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b">instance_</a>-&gt;<a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a7fecef092ba649578b6dbf4971c4784e">closeTimeResolution</a>;</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> }</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> </div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#a81da7e57b7c3864fcaa96468e05d9db5"> 190</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#a81da7e57b7c3864fcaa96468e05d9db5">closeAgree</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b">instance_</a>-&gt;<a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a9f8b0bca6da7d85d73372bc5119611c0">closeTimeAgree</a>;</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> }</div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> </div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/time_point.html">NetClock::time_point</a></div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#a51762b712ff675f7069ad6225761117b"> 196</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#a51762b712ff675f7069ad6225761117b">closeTime</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b">instance_</a>-&gt;<a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#afaff99ff2632821399e28b31f2247200">closeTime</a>;</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> }</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> </div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/time_point.html">NetClock::time_point</a></div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#a3901578883505aadc2fcc2feb9b5344c"> 202</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#a3901578883505aadc2fcc2feb9b5344c">parentCloseTime</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b">instance_</a>-&gt;<a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a1c94fff3c3a71f68aaad45b435e19bc7">parentCloseTime</a>;</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> }</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> </div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> <a class="code hl_typedef" href="classripple_1_1test_1_1csf_1_1Ledger.html#afe81f84534dea5767de43a3dc0fe5b9b">ID</a></div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#a129e52b6245954f525cfca44c673f644"> 208</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#a129e52b6245954f525cfca44c673f644">parentID</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b">instance_</a>-&gt;<a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a90c701b09e5bd50c875e16d2bd8ca47c">parentID</a>;</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> }</div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> </div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> <a class="code hl_typedef" href="namespaceripple_1_1test_1_1csf.html#a71159613165e817624cb1a482aeb3345">TxSetType</a> <span class="keyword">const</span>&amp;</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#ac71cd56e9ce54c266adfc8d1582fc3a7"> 214</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#ac71cd56e9ce54c266adfc8d1582fc3a7">txs</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b">instance_</a>-&gt;<a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a16e8561caa911061110bcd4f8b650cba">txs</a>;</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> }</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> </div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#ad46ef51c2bccdf342f2cc7d8981584da">isAncestor</a>(<a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a> <span class="keyword">const</span>&amp; ancestor) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> </div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> <a class="code hl_typedef" href="classripple_1_1test_1_1csf_1_1Ledger.html#afe81f84534dea5767de43a3dc0fe5b9b">ID</a></div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#ae087b8addc8f7753e9a4dc92efb7c46d">operator[]</a>(<a class="code hl_typedef" href="classripple_1_1test_1_1csf_1_1Ledger.html#af977b8184fe30083d872e230c43c726d">Seq</a> <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1seq.html">seq</a>) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> </div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> <span class="keyword">friend</span> <a class="code hl_class" href="classripple_1_1tagged__integer.html">Ledger::Seq</a></div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> <a class="code hl_friend" href="classripple_1_1test_1_1csf_1_1Ledger.html#a44a6073a13a26322ef0bc2e48b0594f8">mismatch</a>(<a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a> <span class="keyword">const</span>&amp; a, <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a> <span class="keyword">const</span>&amp; o);</div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> </div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a></div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#a7bc8181b16188a8f129a67154afaf74d">getJson</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> </div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#a0964bfc852804225e6d04b9ccd21b038"> 236</a></span> <span class="keyword">friend</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> <a class="code hl_friend" href="classripple_1_1test_1_1csf_1_1Ledger.html#a0964bfc852804225e6d04b9ccd21b038">operator&lt;</a>(<a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a> <span class="keyword">const</span>&amp; a, <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a> <span class="keyword">const</span>&amp; b)</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> {</div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> <span class="keywordflow">return</span> a.<a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#ad92a35fc6f64955e2cdf6ce2a1b66d13">id</a>() &lt; b.<a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#ad92a35fc6f64955e2cdf6ce2a1b66d13">id</a>();</div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> }</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> </div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#a734b038a4f68532dc05ab982a8480ae7"> 243</a></span> <a class="code hl_class" href="classripple_1_1tagged__integer.html">ID</a> <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a734b038a4f68532dc05ab982a8480ae7">id_</a>{0};</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b"> 244</a></span> <a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">Instance</a> <span class="keyword">const</span>* <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b">instance_</a>;</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span>};</div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> </div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html"> 249</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html">LedgerOracle</a></div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span>{</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aaf9cf53659194829c130fa990d73a19f"> 251</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aaf9cf53659194829c130fa990d73a19f">InstanceMap</a> = boost::bimaps::bimap&lt;</div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> boost::bimaps::set_of&lt;Ledger::Instance, ripple::less&lt;Ledger::Instance&gt;&gt;,</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> boost::bimaps::set_of&lt;Ledger::ID, ripple::less&lt;Ledger::ID&gt;&gt;&gt;;</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#a2d89c460f3342a86889a560b6bfb6192"> 254</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#a2d89c460f3342a86889a560b6bfb6192">InstanceEntry</a> = InstanceMap::value_type;</div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> </div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> <span class="comment">// Set of all known ledgers; note this is never pruned</span></div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#a9eadbbd2c55e5879e7f9a4e24ea4ed34"> 257</a></span> <a class="code hl_typedef" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aaf9cf53659194829c130fa990d73a19f">InstanceMap</a> <a class="code hl_variable" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#a9eadbbd2c55e5879e7f9a4e24ea4ed34">instances_</a>;</div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> </div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> <span class="comment">// ID for the next unique ledger</span></div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> <a class="code hl_class" href="classripple_1_1tagged__integer.html">Ledger::ID</a></div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aa0bb795de089fec669c5f840ced9d562">nextID</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> </div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#a6986248b55e7165075b34f72d7c35fb6">LedgerOracle</a>();</div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> </div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;Ledger&gt;</a></div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aaf00a6b30982d192939144e0397a6e6a">lookup</a>(<a class="code hl_class" href="classripple_1_1tagged__integer.html">Ledger::ID</a> <span class="keyword">const</span>&amp; <span class="keywordtype">id</span>) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span> </div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span> <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a></div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aa5c1e0afad87b1998cbe4152134cecc2">accept</a>(</div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a> <span class="keyword">const</span>&amp; curr,</div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span> <a class="code hl_typedef" href="namespaceripple_1_1test_1_1csf.html#a71159613165e817624cb1a482aeb3345">TxSetType</a> <span class="keyword">const</span>&amp; txs,</div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">NetClock::duration</a> closeTimeResolution,</div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/time_point.html">NetClock::time_point</a> <span class="keyword">const</span>&amp; consensusCloseTime);</div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> </div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a></div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#a0f14f1bf5d1566c976fd59082d5e6423"> 286</a></span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#a0f14f1bf5d1566c976fd59082d5e6423">accept</a>(<a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a> <span class="keyword">const</span>&amp; curr, <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Tx.html">Tx</a> tx)</div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> {</div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> <span class="keyword">using namespace </span>std::chrono_literals;</div>
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aa5c1e0afad87b1998cbe4152134cecc2">accept</a>(</div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> curr,</div>
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> <a class="code hl_typedef" href="namespaceripple_1_1test_1_1csf.html#a71159613165e817624cb1a482aeb3345">TxSetType</a>{tx},</div>
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> curr.<a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#a24d67310747d45fbc23c928770f21fec">closeTimeResolution</a>(),</div>
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno"> 293</span> curr.<a class="code hl_function" href="classripple_1_1test_1_1csf_1_1Ledger.html#a51762b712ff675f7069ad6225761117b">closeTime</a>() + 1s);</div>
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno"> 294</span> }</div>
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno"> 295</span> </div>
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno"> 305</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno"> 306</span> <a class="code hl_function" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aaf98b15ed5a342de9724ffad089b266b">branches</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set&lt;Ledger&gt;</a> <span class="keyword">const</span>&amp; ledgers) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno"> 307</span>};</div>
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno"> 308</span> </div>
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html"> 328</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html">LedgerHistoryHelper</a></div>
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno"> 329</span>{</div>
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a19232cf258e58cf9103a5304572f8763"> 330</a></span> <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html">LedgerOracle</a> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a19232cf258e58cf9103a5304572f8763">oracle</a>;</div>
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a663259269bf0ff6fa4873fded850e4bd"> 331</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">Tx::ID</a> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a663259269bf0ff6fa4873fded850e4bd">nextTx</a>{0};</div>
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#aa555f5bc1be372437144be4fa7f7b3b2"> 332</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/unordered_map.html">std::unordered_map&lt;std::string, Ledger&gt;</a> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#aa555f5bc1be372437144be4fa7f7b3b2">ledgers</a>;</div>
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a0dd272179e7a1612364a5928f8018af3"> 333</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set&lt;char&gt;</a> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a0dd272179e7a1612364a5928f8018af3">seen</a>;</div>
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno"> 334</span> </div>
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a7ef5b418cae8c2cc2938aae361a04733"> 335</a></span> <a class="code hl_function" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a7ef5b418cae8c2cc2938aae361a04733">LedgerHistoryHelper</a>()</div>
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno"> 336</span> {</div>
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno"> 337</span> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#aa555f5bc1be372437144be4fa7f7b3b2">ledgers</a>[<span class="stringliteral">&quot;&quot;</span>] = <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a>{<a class="code hl_struct" href="structripple_1_1test_1_1csf_1_1Ledger_1_1MakeGenesis.html">Ledger::MakeGenesis</a>{}};</div>
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno"> 338</span> }</div>
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno"> 339</span> </div>
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno"> 345</span> <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a> <span class="keyword">const</span>&amp;</div>
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a1273c816f2a0f172257f23fcfa0f0a2d"> 346</a></span> <a class="code hl_function" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a1273c816f2a0f172257f23fcfa0f0a2d">operator[]</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; s)</div>
<div class="line"><a id="l00347" name="l00347"></a><span class="lineno"> 347</span> {</div>
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno"> 348</span> <span class="keyword">auto</span> it = <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#aa555f5bc1be372437144be4fa7f7b3b2">ledgers</a>.find(s);</div>
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno"> 349</span> <span class="keywordflow">if</span> (it != <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#aa555f5bc1be372437144be4fa7f7b3b2">ledgers</a>.end())</div>
<div class="line"><a id="l00350" name="l00350"></a><span class="lineno"> 350</span> <span class="keywordflow">return</span> it-&gt;second;</div>
<div class="line"><a id="l00351" name="l00351"></a><span class="lineno"> 351</span> </div>
<div class="line"><a id="l00352" name="l00352"></a><span class="lineno"> 352</span> <span class="comment">// enforce that the new suffix has never been seen</span></div>
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno"> 353</span> assert(<a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a0dd272179e7a1612364a5928f8018af3">seen</a>.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/container/set/emplace.html">emplace</a>(s.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/string/basic_string/back.html">back</a>()).second);</div>
<div class="line"><a id="l00354" name="l00354"></a><span class="lineno"> 354</span> </div>
<div class="line"><a id="l00355" name="l00355"></a><span class="lineno"> 355</span> <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Ledger.html">Ledger</a> <span class="keyword">const</span>&amp; parent = (*this)[s.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/string/basic_string/substr.html">substr</a>(0, s.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/string/basic_string/size.html">size</a>() - 1)];</div>
<div class="line"><a id="l00356" name="l00356"></a><span class="lineno"> 356</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#aa555f5bc1be372437144be4fa7f7b3b2">ledgers</a>.emplace(s, <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a19232cf258e58cf9103a5304572f8763">oracle</a>.<a class="code hl_function" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aa5c1e0afad87b1998cbe4152134cecc2">accept</a>(parent, <a class="code hl_class" href="classripple_1_1test_1_1csf_1_1Tx.html">Tx</a>{++nextTx}))</div>
<div class="line"><a id="l00357" name="l00357"></a><span class="lineno"> 357</span> .first-&gt;second;</div>
<div class="line"><a id="l00358" name="l00358"></a><span class="lineno"> 358</span> }</div>
<div class="line"><a id="l00359" name="l00359"></a><span class="lineno"> 359</span>};</div>
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno"> 360</span> </div>
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno"> 361</span>} <span class="comment">// namespace csf</span></div>
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno"> 362</span>} <span class="comment">// namespace test</span></div>
<div class="line"><a id="l00363" name="l00363"></a><span class="lineno"> 363</span>} <span class="comment">// namespace ripple</span></div>
<div class="line"><a id="l00364" name="l00364"></a><span class="lineno"> 364</span> </div>
<div class="line"><a id="l00365" name="l00365"></a><span class="lineno"> 365</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="aback_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string/back.html">std::string::back</a></div><div class="ttdeci">T back(T... args)</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>
<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#l00147">json_value.h:148</a></div></div>
<div class="ttc" id="aclassripple_1_1tagged__integer_html"><div class="ttname"><a href="classripple_1_1tagged__integer.html">ripple::tagged_integer&lt; std::uint32_t, SeqTag &gt;</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1LedgerOracle_html"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1LedgerOracle.html">ripple::test::csf::LedgerOracle</a></div><div class="ttdoc">Oracle maintaining unique ledgers for a simulation.</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00247">ledgers.h:248</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1LedgerOracle_html_a0f14f1bf5d1566c976fd59082d5e6423"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#a0f14f1bf5d1566c976fd59082d5e6423">ripple::test::csf::LedgerOracle::accept</a></div><div class="ttdeci">Ledger accept(Ledger const &amp;curr, Tx tx)</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00284">ledgers.h:284</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1LedgerOracle_html_a2d89c460f3342a86889a560b6bfb6192"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#a2d89c460f3342a86889a560b6bfb6192">ripple::test::csf::LedgerOracle::InstanceEntry</a></div><div class="ttdeci">InstanceMap::value_type InstanceEntry</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00252">ledgers.h:252</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1LedgerOracle_html"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1LedgerOracle.html">ripple::test::csf::LedgerOracle</a></div><div class="ttdoc">Oracle maintaining unique ledgers for a simulation.</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00249">ledgers.h:250</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1LedgerOracle_html_a0f14f1bf5d1566c976fd59082d5e6423"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#a0f14f1bf5d1566c976fd59082d5e6423">ripple::test::csf::LedgerOracle::accept</a></div><div class="ttdeci">Ledger accept(Ledger const &amp;curr, Tx tx)</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00286">ledgers.h:286</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1LedgerOracle_html_a2d89c460f3342a86889a560b6bfb6192"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#a2d89c460f3342a86889a560b6bfb6192">ripple::test::csf::LedgerOracle::InstanceEntry</a></div><div class="ttdeci">InstanceMap::value_type InstanceEntry</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00254">ledgers.h:254</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1LedgerOracle_html_a6986248b55e7165075b34f72d7c35fb6"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#a6986248b55e7165075b34f72d7c35fb6">ripple::test::csf::LedgerOracle::LedgerOracle</a></div><div class="ttdeci">LedgerOracle()</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8cpp_source.html#l00085">ledgers.cpp:85</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1LedgerOracle_html_a9eadbbd2c55e5879e7f9a4e24ea4ed34"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#a9eadbbd2c55e5879e7f9a4e24ea4ed34">ripple::test::csf::LedgerOracle::instances_</a></div><div class="ttdeci">InstanceMap instances_</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00255">ledgers.h:255</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1LedgerOracle_html_a9eadbbd2c55e5879e7f9a4e24ea4ed34"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#a9eadbbd2c55e5879e7f9a4e24ea4ed34">ripple::test::csf::LedgerOracle::instances_</a></div><div class="ttdeci">InstanceMap instances_</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00257">ledgers.h:257</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1LedgerOracle_html_aa0bb795de089fec669c5f840ced9d562"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aa0bb795de089fec669c5f840ced9d562">ripple::test::csf::LedgerOracle::nextID</a></div><div class="ttdeci">Ledger::ID nextID() const</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8cpp_source.html#l00091">ledgers.cpp:91</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1LedgerOracle_html_aa5c1e0afad87b1998cbe4152134cecc2"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aa5c1e0afad87b1998cbe4152134cecc2">ripple::test::csf::LedgerOracle::accept</a></div><div class="ttdeci">Ledger accept(Ledger const &amp;curr, TxSetType const &amp;txs, NetClock::duration closeTimeResolution, NetClock::time_point const &amp;consensusCloseTime)</div><div class="ttdoc">Accept the given txs and generate a new ledger.</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8cpp_source.html#l00097">ledgers.cpp:97</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1LedgerOracle_html_aaf00a6b30982d192939144e0397a6e6a"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aaf00a6b30982d192939144e0397a6e6a">ripple::test::csf::LedgerOracle::lookup</a></div><div class="ttdeci">std::optional&lt; Ledger &gt; lookup(Ledger::ID const &amp;id) const</div><div class="ttdoc">Find the ledger with the given ID.</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8cpp_source.html#l00129">ledgers.cpp:129</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1LedgerOracle_html_aaf98b15ed5a342de9724ffad089b266b"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aaf98b15ed5a342de9724ffad089b266b">ripple::test::csf::LedgerOracle::branches</a></div><div class="ttdeci">std::size_t branches(std::set&lt; Ledger &gt; const &amp;ledgers) const</div><div class="ttdoc">Determine the number of distinct branches for the set of ledgers.</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8cpp_source.html#l00140">ledgers.cpp:140</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1LedgerOracle_html_aaf9cf53659194829c130fa990d73a19f"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aaf9cf53659194829c130fa990d73a19f">ripple::test::csf::LedgerOracle::InstanceMap</a></div><div class="ttdeci">boost::bimaps::bimap&lt; boost::bimaps::set_of&lt; Ledger::Instance, ripple::less&lt; Ledger::Instance &gt; &gt;, boost::bimaps::set_of&lt; Ledger::ID, ripple::less&lt; Ledger::ID &gt; &gt; &gt; InstanceMap</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00249">ledgers.h:251</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html">ripple::test::csf::Ledger</a></div><div class="ttdoc">A ledger is a set of observed transactions and a sequence number identifying the ledger.</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00061">ledgers.h:62</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_a06067398a21457f23377013cd6e9a3cf"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#a06067398a21457f23377013cd6e9a3cf">ripple::test::csf::Ledger::genesis</a></div><div class="ttdeci">static const Instance genesis</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00152">ledgers.h:152</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_a0964bfc852804225e6d04b9ccd21b038"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#a0964bfc852804225e6d04b9ccd21b038">ripple::test::csf::Ledger::operator&lt;</a></div><div class="ttdeci">friend bool operator&lt;(Ledger const &amp;a, Ledger const &amp;b)</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00234">ledgers.h:235</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_a129e52b6245954f525cfca44c673f644"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#a129e52b6245954f525cfca44c673f644">ripple::test::csf::Ledger::parentID</a></div><div class="ttdeci">ID parentID() const</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00206">ledgers.h:206</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_a24d67310747d45fbc23c928770f21fec"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#a24d67310747d45fbc23c928770f21fec">ripple::test::csf::Ledger::closeTimeResolution</a></div><div class="ttdeci">NetClock::duration closeTimeResolution() const</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00182">ledgers.h:182</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_a3901578883505aadc2fcc2feb9b5344c"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#a3901578883505aadc2fcc2feb9b5344c">ripple::test::csf::Ledger::parentCloseTime</a></div><div class="ttdeci">NetClock::time_point parentCloseTime() const</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00200">ledgers.h:200</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1LedgerOracle_html_aaf9cf53659194829c130fa990d73a19f"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1LedgerOracle.html#aaf9cf53659194829c130fa990d73a19f">ripple::test::csf::LedgerOracle::InstanceMap</a></div><div class="ttdeci">boost::bimaps::bimap&lt; boost::bimaps::set_of&lt; Ledger::Instance, ripple::less&lt; Ledger::Instance &gt; &gt;, boost::bimaps::set_of&lt; Ledger::ID, ripple::less&lt; Ledger::ID &gt; &gt; &gt; InstanceMap</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00251">ledgers.h:253</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html">ripple::test::csf::Ledger</a></div><div class="ttdoc">A ledger is a set of observed transactions and a sequence number identifying the ledger.</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00063">ledgers.h:64</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_a06067398a21457f23377013cd6e9a3cf"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#a06067398a21457f23377013cd6e9a3cf">ripple::test::csf::Ledger::genesis</a></div><div class="ttdeci">static const Instance genesis</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00154">ledgers.h:154</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_a0964bfc852804225e6d04b9ccd21b038"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#a0964bfc852804225e6d04b9ccd21b038">ripple::test::csf::Ledger::operator&lt;</a></div><div class="ttdeci">friend bool operator&lt;(Ledger const &amp;a, Ledger const &amp;b)</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00236">ledgers.h:237</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_a129e52b6245954f525cfca44c673f644"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#a129e52b6245954f525cfca44c673f644">ripple::test::csf::Ledger::parentID</a></div><div class="ttdeci">ID parentID() const</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00208">ledgers.h:208</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_a24d67310747d45fbc23c928770f21fec"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#a24d67310747d45fbc23c928770f21fec">ripple::test::csf::Ledger::closeTimeResolution</a></div><div class="ttdeci">NetClock::duration closeTimeResolution() const</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00184">ledgers.h:184</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_a3901578883505aadc2fcc2feb9b5344c"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#a3901578883505aadc2fcc2feb9b5344c">ripple::test::csf::Ledger::parentCloseTime</a></div><div class="ttdeci">NetClock::time_point parentCloseTime() const</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00202">ledgers.h:202</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_a44a6073a13a26322ef0bc2e48b0594f8"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#a44a6073a13a26322ef0bc2e48b0594f8">ripple::test::csf::Ledger::mismatch</a></div><div class="ttdeci">friend Ledger::Seq mismatch(Ledger const &amp;a, Ledger const &amp;o)</div><div class="ttdoc">Return the sequence number of the first mismatching ancestor.</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8cpp_source.html#l00058">ledgers.cpp:58</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_a51762b712ff675f7069ad6225761117b"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#a51762b712ff675f7069ad6225761117b">ripple::test::csf::Ledger::closeTime</a></div><div class="ttdeci">NetClock::time_point closeTime() const</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00194">ledgers.h:194</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_a6614d5b7b7b7063c71f5e8a8118b7a6b"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b">ripple::test::csf::Ledger::instance_</a></div><div class="ttdeci">Instance const * instance_</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00242">ledgers.h:242</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_a734b038a4f68532dc05ab982a8480ae7"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#a734b038a4f68532dc05ab982a8480ae7">ripple::test::csf::Ledger::id_</a></div><div class="ttdeci">ID id_</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00241">ledgers.h:241</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_a51762b712ff675f7069ad6225761117b"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#a51762b712ff675f7069ad6225761117b">ripple::test::csf::Ledger::closeTime</a></div><div class="ttdeci">NetClock::time_point closeTime() const</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00196">ledgers.h:196</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_a6614d5b7b7b7063c71f5e8a8118b7a6b"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#a6614d5b7b7b7063c71f5e8a8118b7a6b">ripple::test::csf::Ledger::instance_</a></div><div class="ttdeci">Instance const * instance_</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00244">ledgers.h:244</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_a734b038a4f68532dc05ab982a8480ae7"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#a734b038a4f68532dc05ab982a8480ae7">ripple::test::csf::Ledger::id_</a></div><div class="ttdeci">ID id_</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00243">ledgers.h:243</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_a7bc8181b16188a8f129a67154afaf74d"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#a7bc8181b16188a8f129a67154afaf74d">ripple::test::csf::Ledger::getJson</a></div><div class="ttdeci">Json::Value getJson() const</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8cpp_source.html#l00031">ledgers.cpp:31</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_a81da7e57b7c3864fcaa96468e05d9db5"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#a81da7e57b7c3864fcaa96468e05d9db5">ripple::test::csf::Ledger::closeAgree</a></div><div class="ttdeci">bool closeAgree() const</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00188">ledgers.h:188</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_a881d03459c0fdadf8de8c2e34f727f5c"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#a881d03459c0fdadf8de8c2e34f727f5c">ripple::test::csf::Ledger::seq</a></div><div class="ttdeci">Seq seq() const</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00176">ledgers.h:176</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_ab07c94f8bc5d34242fa9618755c4ad2f"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#ab07c94f8bc5d34242fa9618755c4ad2f">ripple::test::csf::Ledger::Ledger</a></div><div class="ttdeci">Ledger(MakeGenesis)</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00159">ledgers.h:159</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_ac71cd56e9ce54c266adfc8d1582fc3a7"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#ac71cd56e9ce54c266adfc8d1582fc3a7">ripple::test::csf::Ledger::txs</a></div><div class="ttdeci">TxSetType const &amp; txs() const</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00212">ledgers.h:212</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_a81da7e57b7c3864fcaa96468e05d9db5"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#a81da7e57b7c3864fcaa96468e05d9db5">ripple::test::csf::Ledger::closeAgree</a></div><div class="ttdeci">bool closeAgree() const</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00190">ledgers.h:190</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_a881d03459c0fdadf8de8c2e34f727f5c"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#a881d03459c0fdadf8de8c2e34f727f5c">ripple::test::csf::Ledger::seq</a></div><div class="ttdeci">Seq seq() const</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00178">ledgers.h:178</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_ab07c94f8bc5d34242fa9618755c4ad2f"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#ab07c94f8bc5d34242fa9618755c4ad2f">ripple::test::csf::Ledger::Ledger</a></div><div class="ttdeci">Ledger(MakeGenesis)</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00161">ledgers.h:161</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_ac71cd56e9ce54c266adfc8d1582fc3a7"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#ac71cd56e9ce54c266adfc8d1582fc3a7">ripple::test::csf::Ledger::txs</a></div><div class="ttdeci">TxSetType const &amp; txs() const</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00214">ledgers.h:214</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_ad46ef51c2bccdf342f2cc7d8981584da"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#ad46ef51c2bccdf342f2cc7d8981584da">ripple::test::csf::Ledger::isAncestor</a></div><div class="ttdeci">bool isAncestor(Ledger const &amp;ancestor) const</div><div class="ttdoc">Determine whether ancestor is really an ancestor of this ledger.</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8cpp_source.html#l00040">ledgers.cpp:40</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_ad92a35fc6f64955e2cdf6ce2a1b66d13"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#ad92a35fc6f64955e2cdf6ce2a1b66d13">ripple::test::csf::Ledger::id</a></div><div class="ttdeci">ID id() const</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00170">ledgers.h:170</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_ad92a35fc6f64955e2cdf6ce2a1b66d13"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#ad92a35fc6f64955e2cdf6ce2a1b66d13">ripple::test::csf::Ledger::id</a></div><div class="ttdeci">ID id() const</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00172">ledgers.h:172</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_ae087b8addc8f7753e9a4dc92efb7c46d"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#ae087b8addc8f7753e9a4dc92efb7c46d">ripple::test::csf::Ledger::operator[]</a></div><div class="ttdeci">ID operator[](Seq seq) const</div><div class="ttdoc">Return the id of the ancestor with the given seq (if exists/known)</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8cpp_source.html#l00048">ledgers.cpp:48</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_ae17a349a70dae4e17d3365a6216fde45"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#ae17a349a70dae4e17d3365a6216fde45">ripple::test::csf::Ledger::Ledger</a></div><div class="ttdeci">Ledger(ID id, Instance const *i)</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00154">ledgers.h:154</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_aebb30fa85bcfd7c621c50a3d9a8340b3"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#aebb30fa85bcfd7c621c50a3d9a8340b3">ripple::test::csf::Ledger::Ledger</a></div><div class="ttdeci">Ledger()</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00165">ledgers.h:165</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_af977b8184fe30083d872e230c43c726d"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#af977b8184fe30083d872e230c43c726d">ripple::test::csf::Ledger::Seq</a></div><div class="ttdeci">tagged_integer&lt; std::uint32_t, SeqTag &gt; Seq</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00067">ledgers.h:67</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_afe81f84534dea5767de43a3dc0fe5b9b"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#afe81f84534dea5767de43a3dc0fe5b9b">ripple::test::csf::Ledger::ID</a></div><div class="ttdeci">tagged_integer&lt; std::uint32_t, IdTag &gt; ID</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00070">ledgers.h:70</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_ae17a349a70dae4e17d3365a6216fde45"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#ae17a349a70dae4e17d3365a6216fde45">ripple::test::csf::Ledger::Ledger</a></div><div class="ttdeci">Ledger(ID id, Instance const *i)</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00156">ledgers.h:156</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_aebb30fa85bcfd7c621c50a3d9a8340b3"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#aebb30fa85bcfd7c621c50a3d9a8340b3">ripple::test::csf::Ledger::Ledger</a></div><div class="ttdeci">Ledger()</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00167">ledgers.h:167</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_af977b8184fe30083d872e230c43c726d"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#af977b8184fe30083d872e230c43c726d">ripple::test::csf::Ledger::Seq</a></div><div class="ttdeci">tagged_integer&lt; std::uint32_t, SeqTag &gt; Seq</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00069">ledgers.h:69</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Ledger_html_afe81f84534dea5767de43a3dc0fe5b9b"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Ledger.html#afe81f84534dea5767de43a3dc0fe5b9b">ripple::test::csf::Ledger::ID</a></div><div class="ttdeci">tagged_integer&lt; std::uint32_t, IdTag &gt; ID</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00072">ledgers.h:72</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Tx_html"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Tx.html">ripple::test::csf::Tx</a></div><div class="ttdoc">A single transaction.</div><div class="ttdef"><b>Definition:</b> <a href="Tx_8h_source.html#l00041">Tx.h:42</a></div></div>
<div class="ttc" id="aduration_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::duration</a></div></div>
<div class="ttc" id="aemplace_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/set/emplace.html">std::set::emplace</a></div><div class="ttdeci">T emplace(T... args)</div></div>
@@ -410,29 +412,29 @@ $(function() {
<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="asize_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string/size.html">std::string::size</a></div><div class="ttdeci">T size(T... args)</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_1test_1_1csf_1_1LedgerHistoryHelper_html"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html">ripple::test::csf::LedgerHistoryHelper</a></div><div class="ttdoc">Helper for writing unit tests with controlled ledger histories.</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00326">ledgers.h:327</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1LedgerHistoryHelper_html_a0dd272179e7a1612364a5928f8018af3"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a0dd272179e7a1612364a5928f8018af3">ripple::test::csf::LedgerHistoryHelper::seen</a></div><div class="ttdeci">std::set&lt; char &gt; seen</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00331">ledgers.h:331</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1LedgerHistoryHelper_html_a1273c816f2a0f172257f23fcfa0f0a2d"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a1273c816f2a0f172257f23fcfa0f0a2d">ripple::test::csf::LedgerHistoryHelper::operator[]</a></div><div class="ttdeci">Ledger const &amp; operator[](std::string const &amp;s)</div><div class="ttdoc">Get or create the ledger with the given string history.</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00344">ledgers.h:344</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1LedgerHistoryHelper_html_a19232cf258e58cf9103a5304572f8763"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a19232cf258e58cf9103a5304572f8763">ripple::test::csf::LedgerHistoryHelper::oracle</a></div><div class="ttdeci">LedgerOracle oracle</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00328">ledgers.h:328</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1LedgerHistoryHelper_html_a663259269bf0ff6fa4873fded850e4bd"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a663259269bf0ff6fa4873fded850e4bd">ripple::test::csf::LedgerHistoryHelper::nextTx</a></div><div class="ttdeci">Tx::ID nextTx</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00329">ledgers.h:329</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1LedgerHistoryHelper_html_a7ef5b418cae8c2cc2938aae361a04733"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a7ef5b418cae8c2cc2938aae361a04733">ripple::test::csf::LedgerHistoryHelper::LedgerHistoryHelper</a></div><div class="ttdeci">LedgerHistoryHelper()</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00333">ledgers.h:333</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1LedgerHistoryHelper_html_aa555f5bc1be372437144be4fa7f7b3b2"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#aa555f5bc1be372437144be4fa7f7b3b2">ripple::test::csf::LedgerHistoryHelper::ledgers</a></div><div class="ttdeci">std::unordered_map&lt; std::string, Ledger &gt; ledgers</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00330">ledgers.h:330</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">ripple::test::csf::Ledger::Instance</a></div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00079">ledgers.h:80</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_a16e8561caa911061110bcd4f8b650cba"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a16e8561caa911061110bcd4f8b650cba">ripple::test::csf::Ledger::Instance::txs</a></div><div class="ttdeci">TxSetType txs</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00089">ledgers.h:89</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_a1c94fff3c3a71f68aaad45b435e19bc7"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a1c94fff3c3a71f68aaad45b435e19bc7">ripple::test::csf::Ledger::Instance::parentCloseTime</a></div><div class="ttdeci">NetClock::time_point parentCloseTime</div><div class="ttdoc">Parent ledger close time.</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00104">ledgers.h:104</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_a53dfddac1d83437a31b3d66c563f7638"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a53dfddac1d83437a31b3d66c563f7638">ripple::test::csf::Ledger::Instance::seq</a></div><div class="ttdeci">Seq seq</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00086">ledgers.h:86</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_a6c280829f26602147308c204f9092af3"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6c280829f26602147308c204f9092af3">ripple::test::csf::Ledger::Instance::operator==</a></div><div class="ttdeci">friend bool operator==(Instance const &amp;a, Instance const &amp;b)</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00125">ledgers.h:125</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_a6ee8a93771bb3052c26d5a57eb50e980"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6ee8a93771bb3052c26d5a57eb50e980">ripple::test::csf::Ledger::Instance::asTie</a></div><div class="ttdeci">auto asTie() const</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00112">ledgers.h:112</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_a7fecef092ba649578b6dbf4971c4784e"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a7fecef092ba649578b6dbf4971c4784e">ripple::test::csf::Ledger::Instance::closeTimeResolution</a></div><div class="ttdeci">NetClock::duration closeTimeResolution</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00092">ledgers.h:92</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_a90c701b09e5bd50c875e16d2bd8ca47c"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a90c701b09e5bd50c875e16d2bd8ca47c">ripple::test::csf::Ledger::Instance::parentID</a></div><div class="ttdeci">ID parentID</div><div class="ttdoc">Parent ledger id.</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00101">ledgers.h:101</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_a9f8b0bca6da7d85d73372bc5119611c0"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a9f8b0bca6da7d85d73372bc5119611c0">ripple::test::csf::Ledger::Instance::closeTimeAgree</a></div><div class="ttdeci">bool closeTimeAgree</div><div class="ttdoc">Whether consensus agreed on the close time.</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00098">ledgers.h:98</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_aba1c0f8f9fda9d155c0fc8fa72b8f547"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#aba1c0f8f9fda9d155c0fc8fa72b8f547">ripple::test::csf::Ledger::Instance::Instance</a></div><div class="ttdeci">Instance()</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00081">ledgers.h:81</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_abeabc037a93a226346001d720cd8f202"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#abeabc037a93a226346001d720cd8f202">ripple::test::csf::Ledger::Instance::operator&lt;</a></div><div class="ttdeci">friend bool operator&lt;(Instance const &amp;a, Instance const &amp;b)</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00136">ledgers.h:137</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_abf7689191f2bf3285d60bf205e9a8659"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#abf7689191f2bf3285d60bf205e9a8659">ripple::test::csf::Ledger::Instance::operator!=</a></div><div class="ttdeci">friend bool operator!=(Instance const &amp;a, Instance const &amp;b)</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00131">ledgers.h:131</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_ac20b7c30c27182a653a4a205e89816b3"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#ac20b7c30c27182a653a4a205e89816b3">ripple::test::csf::Ledger::Instance::hash_append</a></div><div class="ttdeci">friend void hash_append(Hasher &amp;h, Ledger::Instance const &amp;instance)</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00144">ledgers.h:144</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_af265404aca2eb28360fd77a4f530305a"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#af265404aca2eb28360fd77a4f530305a">ripple::test::csf::Ledger::Instance::ancestors</a></div><div class="ttdeci">std::vector&lt; Ledger::ID &gt; ancestors</div><div class="ttdoc">IDs of this ledgers ancestors.</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00109">ledgers.h:109</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_afaff99ff2632821399e28b31f2247200"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#afaff99ff2632821399e28b31f2247200">ripple::test::csf::Ledger::Instance::closeTime</a></div><div class="ttdeci">NetClock::time_point closeTime</div><div class="ttdoc">When the ledger closed (up to closeTimeResolution)</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00095">ledgers.h:95</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1MakeGenesis_html"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1MakeGenesis.html">ripple::test::csf::Ledger::MakeGenesis</a></div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00072">ledgers.h:73</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1LedgerHistoryHelper_html"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html">ripple::test::csf::LedgerHistoryHelper</a></div><div class="ttdoc">Helper for writing unit tests with controlled ledger histories.</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00328">ledgers.h:329</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1LedgerHistoryHelper_html_a0dd272179e7a1612364a5928f8018af3"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a0dd272179e7a1612364a5928f8018af3">ripple::test::csf::LedgerHistoryHelper::seen</a></div><div class="ttdeci">std::set&lt; char &gt; seen</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00333">ledgers.h:333</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1LedgerHistoryHelper_html_a1273c816f2a0f172257f23fcfa0f0a2d"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a1273c816f2a0f172257f23fcfa0f0a2d">ripple::test::csf::LedgerHistoryHelper::operator[]</a></div><div class="ttdeci">Ledger const &amp; operator[](std::string const &amp;s)</div><div class="ttdoc">Get or create the ledger with the given string history.</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00346">ledgers.h:346</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1LedgerHistoryHelper_html_a19232cf258e58cf9103a5304572f8763"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a19232cf258e58cf9103a5304572f8763">ripple::test::csf::LedgerHistoryHelper::oracle</a></div><div class="ttdeci">LedgerOracle oracle</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00330">ledgers.h:330</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1LedgerHistoryHelper_html_a663259269bf0ff6fa4873fded850e4bd"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a663259269bf0ff6fa4873fded850e4bd">ripple::test::csf::LedgerHistoryHelper::nextTx</a></div><div class="ttdeci">Tx::ID nextTx</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00331">ledgers.h:331</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1LedgerHistoryHelper_html_a7ef5b418cae8c2cc2938aae361a04733"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#a7ef5b418cae8c2cc2938aae361a04733">ripple::test::csf::LedgerHistoryHelper::LedgerHistoryHelper</a></div><div class="ttdeci">LedgerHistoryHelper()</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00335">ledgers.h:335</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1LedgerHistoryHelper_html_aa555f5bc1be372437144be4fa7f7b3b2"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1LedgerHistoryHelper.html#aa555f5bc1be372437144be4fa7f7b3b2">ripple::test::csf::LedgerHistoryHelper::ledgers</a></div><div class="ttdeci">std::unordered_map&lt; std::string, Ledger &gt; ledgers</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00332">ledgers.h:332</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html">ripple::test::csf::Ledger::Instance</a></div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00081">ledgers.h:82</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_a16e8561caa911061110bcd4f8b650cba"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a16e8561caa911061110bcd4f8b650cba">ripple::test::csf::Ledger::Instance::txs</a></div><div class="ttdeci">TxSetType txs</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00091">ledgers.h:91</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_a1c94fff3c3a71f68aaad45b435e19bc7"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a1c94fff3c3a71f68aaad45b435e19bc7">ripple::test::csf::Ledger::Instance::parentCloseTime</a></div><div class="ttdeci">NetClock::time_point parentCloseTime</div><div class="ttdoc">Parent ledger close time.</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00106">ledgers.h:106</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_a53dfddac1d83437a31b3d66c563f7638"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a53dfddac1d83437a31b3d66c563f7638">ripple::test::csf::Ledger::Instance::seq</a></div><div class="ttdeci">Seq seq</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00088">ledgers.h:88</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_a6c280829f26602147308c204f9092af3"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6c280829f26602147308c204f9092af3">ripple::test::csf::Ledger::Instance::operator==</a></div><div class="ttdeci">friend bool operator==(Instance const &amp;a, Instance const &amp;b)</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00127">ledgers.h:127</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_a6ee8a93771bb3052c26d5a57eb50e980"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a6ee8a93771bb3052c26d5a57eb50e980">ripple::test::csf::Ledger::Instance::asTie</a></div><div class="ttdeci">auto asTie() const</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00114">ledgers.h:114</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_a7fecef092ba649578b6dbf4971c4784e"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a7fecef092ba649578b6dbf4971c4784e">ripple::test::csf::Ledger::Instance::closeTimeResolution</a></div><div class="ttdeci">NetClock::duration closeTimeResolution</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00094">ledgers.h:94</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_a90c701b09e5bd50c875e16d2bd8ca47c"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a90c701b09e5bd50c875e16d2bd8ca47c">ripple::test::csf::Ledger::Instance::parentID</a></div><div class="ttdeci">ID parentID</div><div class="ttdoc">Parent ledger id.</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00103">ledgers.h:103</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_a9f8b0bca6da7d85d73372bc5119611c0"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#a9f8b0bca6da7d85d73372bc5119611c0">ripple::test::csf::Ledger::Instance::closeTimeAgree</a></div><div class="ttdeci">bool closeTimeAgree</div><div class="ttdoc">Whether consensus agreed on the close time.</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00100">ledgers.h:100</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_aba1c0f8f9fda9d155c0fc8fa72b8f547"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#aba1c0f8f9fda9d155c0fc8fa72b8f547">ripple::test::csf::Ledger::Instance::Instance</a></div><div class="ttdeci">Instance()</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00083">ledgers.h:83</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_abeabc037a93a226346001d720cd8f202"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#abeabc037a93a226346001d720cd8f202">ripple::test::csf::Ledger::Instance::operator&lt;</a></div><div class="ttdeci">friend bool operator&lt;(Instance const &amp;a, Instance const &amp;b)</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00138">ledgers.h:139</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_abf7689191f2bf3285d60bf205e9a8659"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#abf7689191f2bf3285d60bf205e9a8659">ripple::test::csf::Ledger::Instance::operator!=</a></div><div class="ttdeci">friend bool operator!=(Instance const &amp;a, Instance const &amp;b)</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00133">ledgers.h:133</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_ac20b7c30c27182a653a4a205e89816b3"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#ac20b7c30c27182a653a4a205e89816b3">ripple::test::csf::Ledger::Instance::hash_append</a></div><div class="ttdeci">friend void hash_append(Hasher &amp;h, Ledger::Instance const &amp;instance)</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00146">ledgers.h:146</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_af265404aca2eb28360fd77a4f530305a"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#af265404aca2eb28360fd77a4f530305a">ripple::test::csf::Ledger::Instance::ancestors</a></div><div class="ttdeci">std::vector&lt; Ledger::ID &gt; ancestors</div><div class="ttdoc">IDs of this ledgers ancestors.</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00111">ledgers.h:111</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1Instance_html_afaff99ff2632821399e28b31f2247200"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1Instance.html#afaff99ff2632821399e28b31f2247200">ripple::test::csf::Ledger::Instance::closeTime</a></div><div class="ttdeci">NetClock::time_point closeTime</div><div class="ttdoc">When the ledger closed (up to closeTimeResolution)</div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00097">ledgers.h:97</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1csf_1_1Ledger_1_1MakeGenesis_html"><div class="ttname"><a href="structripple_1_1test_1_1csf_1_1Ledger_1_1MakeGenesis.html">ripple::test::csf::Ledger::MakeGenesis</a></div><div class="ttdef"><b>Definition:</b> <a href="ledgers_8h_source.html#l00074">ledgers.h:75</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1jtx_1_1seq_html"><div class="ttname"><a href="structripple_1_1test_1_1jtx_1_1seq.html">ripple::test::jtx::seq</a></div><div class="ttdoc">Set the sequence number on a JTx.</div><div class="ttdef"><b>Definition:</b> <a href="seq_8h_source.html#l00033">seq.h:34</a></div></div>
<div class="ttc" id="asubstr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string/substr.html">std::string::substr</a></div><div class="ttdeci">T substr(T... args)</div></div>
<div class="ttc" id="atie_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/tuple/tie.html">std::tie</a></div><div class="ttdeci">T tie(T... args)</div></div>