This commit is contained in:
manojsdoshi
2020-04-24 01:09:47 +00:00
parent 4ad595bf18
commit 430f6c0cf3
2864 changed files with 304301 additions and 292875 deletions

View File

@@ -91,56 +91,55 @@ $(function() {
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#ifndef RIPPLE_APP_MISC_IMPL_ACCOUNTTXPAGING_H_INCLUDED</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#define RIPPLE_APP_MISC_IMPL_ACCOUNTTXPAGING_H_INCLUDED</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;ripple/core/DatabaseCon.h&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;ripple/app/misc/NetworkOPs.h&gt;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;ripple/app/misc/NetworkOPs.h&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;ripple/core/DatabaseCon.h&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/cstdint.html">cstdint</a>&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/string.html">string</a>&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/utility.html">utility</a>&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<a class="code" href="namespaceripple.html#ad600c1ec5c4532e6c8771f54128e85e5">convertBlobsToTxResult</a> (</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <a class="code" href="classripple_1_1NetworkOPs.html#ac0d470701dc1ca2b1cbc2f75091c005b">NetworkOPs::AccountTxs</a>&amp; to,</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> ledger_index,</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; status,</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <a class="code" href="namespaceripple.html#a33f2e976cb41ee4a52c5df14695377ec">Blob</a> <span class="keyword">const</span>&amp; rawTxn,</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <a class="code" href="namespaceripple.html#a33f2e976cb41ee4a52c5df14695377ec">Blob</a> <span class="keyword">const</span>&amp; rawMeta,</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; Application&amp; app);</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<a class="code" href="namespaceripple.html#a5b20792dc031a8d5507966448d62f686">saveLedgerAsync</a> (Application&amp; app, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> seq);</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<a class="code" href="namespaceripple.html#ab47f614edaf0714ac1add225e6592652">accountTxPage</a>(</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; DatabaseCon&amp; connection,</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; AccountIDCache <span class="keyword">const</span>&amp; idCache,</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a>&lt;<span class="keywordtype">void</span>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a>)&gt; <span class="keyword">const</span>&amp; onUnsavedLedger,</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a>&lt;<span class="keywordtype">void</span>(</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a>,</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp;,</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <a class="code" href="namespaceripple.html#a33f2e976cb41ee4a52c5df14695377ec">Blob</a> <span class="keyword">const</span>&amp;,</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <a class="code" href="namespaceripple.html#a33f2e976cb41ee4a52c5df14695377ec">Blob</a> <span class="keyword">const</span>&amp;)&gt; <span class="keyword">const</span>&amp; onTransaction,</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <a class="code" href="namespaceripple.html#a16ab89d505feb8a59bf35abddfe1fb2c">AccountID</a> <span class="keyword">const</span>&amp; account,</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::int32_t</a> minLedger,</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::int32_t</a> maxLedger,</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="keywordtype">bool</span> forward,</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;NetworkOPs::AccountTxMarker&gt;</a>&amp; marker,</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keywordtype">int</span> limit,</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="keywordtype">bool</span> bAdmin,</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> page_length);</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;}</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<a class="code" href="namespaceripple.html#ad600c1ec5c4532e6c8771f54128e85e5">convertBlobsToTxResult</a>(</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <a class="code" href="classripple_1_1NetworkOPs.html#ac0d470701dc1ca2b1cbc2f75091c005b">NetworkOPs::AccountTxs</a>&amp; to,</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> ledger_index,</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; status,</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <a class="code" href="namespaceripple.html#ab1f2184bb5938b5508798cd47a561a21">Blob</a> <span class="keyword">const</span>&amp; rawTxn,</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <a class="code" href="namespaceripple.html#ab1f2184bb5938b5508798cd47a561a21">Blob</a> <span class="keyword">const</span>&amp; rawMeta,</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; Application&amp; app);</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<a class="code" href="namespaceripple.html#a5b20792dc031a8d5507966448d62f686">saveLedgerAsync</a>(Application&amp; app, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> seq);</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<a class="code" href="namespaceripple.html#ab47f614edaf0714ac1add225e6592652">accountTxPage</a>(</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; DatabaseCon&amp; connection,</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; AccountIDCache <span class="keyword">const</span>&amp; idCache,</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a>&lt;<span class="keywordtype">void</span>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a>)&gt; <span class="keyword">const</span>&amp; onUnsavedLedger,</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a>&lt;<span class="keywordtype">void</span>(</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a>,</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp;,</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <a class="code" href="namespaceripple.html#ab1f2184bb5938b5508798cd47a561a21">Blob</a> <span class="keyword">const</span>&amp;,</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <a class="code" href="namespaceripple.html#ab1f2184bb5938b5508798cd47a561a21">Blob</a> <span class="keyword">const</span>&amp;)&gt; <span class="keyword">const</span>&amp; onTransaction,</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <a class="code" href="namespaceripple.html#a00ae0d729cb3e35b6bcac9a27ebb5284">AccountID</a> <span class="keyword">const</span>&amp; account,</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::int32_t</a> minLedger,</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::int32_t</a> maxLedger,</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keywordtype">bool</span> forward,</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;NetworkOPs::AccountTxMarker&gt;</a>&amp; marker,</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keywordtype">int</span> limit,</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keywordtype">bool</span> bAdmin,</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> page_length);</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;} <span class="comment">// namespace ripple</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassripple_1_1NetworkOPs_html_ac0d470701dc1ca2b1cbc2f75091c005b"><div class="ttname"><a href="classripple_1_1NetworkOPs.html#ac0d470701dc1ca2b1cbc2f75091c005b">ripple::NetworkOPs::AccountTxs</a></div><div class="ttdeci">std::vector&lt; AccountTx &gt; AccountTxs</div><div class="ttdef"><b>Definition:</b> <a href="NetworkOPs_8h_source.html#l00223">NetworkOPs.h:223</a></div></div>
<div class="ttc" id="anamespaceripple_html_ab1f2184bb5938b5508798cd47a561a21"><div class="ttname"><a href="namespaceripple.html#ab1f2184bb5938b5508798cd47a561a21">ripple::Blob</a></div><div class="ttdeci">std::vector&lt; unsigned char &gt; Blob</div><div class="ttdoc">Storage for linear binary data.</div><div class="ttdef"><b>Definition:</b> <a href="Blob_8h_source.html#l00030">Blob.h:30</a></div></div>
<div class="ttc" id="aclassripple_1_1NetworkOPs_html_ac0d470701dc1ca2b1cbc2f75091c005b"><div class="ttname"><a href="classripple_1_1NetworkOPs.html#ac0d470701dc1ca2b1cbc2f75091c005b">ripple::NetworkOPs::AccountTxs</a></div><div class="ttdeci">std::vector&lt; AccountTx &gt; AccountTxs</div><div class="ttdef"><b>Definition:</b> <a href="NetworkOPs_8h_source.html#l00255">NetworkOPs.h:255</a></div></div>
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="autility_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/utility.html">utility</a></div></div>
<div class="ttc" id="anamespaceripple_html_ab47f614edaf0714ac1add225e6592652"><div class="ttname"><a href="namespaceripple.html#ab47f614edaf0714ac1add225e6592652">ripple::accountTxPage</a></div><div class="ttdeci">void accountTxPage(DatabaseCon &amp;connection, AccountIDCache const &amp;idCache, std::function&lt; void(std::uint32_t)&gt; const &amp;onUnsavedLedger, std::function&lt; void(std::uint32_t, std::string const &amp;, Blob const &amp;, Blob const &amp;)&gt; const &amp;onTransaction, AccountID const &amp;account, std::int32_t minLedger, std::int32_t maxLedger, bool forward, std::optional&lt; NetworkOPs::AccountTxMarker &gt; &amp;marker, int limit, bool bAdmin, std::uint32_t page_length)</div><div class="ttdef"><b>Definition:</b> <a href="AccountTxPaging_8cpp_source.html#l00064">AccountTxPaging.cpp:64</a></div></div>
<div class="ttc" id="anamespaceripple_html_a16ab89d505feb8a59bf35abddfe1fb2c"><div class="ttname"><a href="namespaceripple.html#a16ab89d505feb8a59bf35abddfe1fb2c">ripple::AccountID</a></div><div class="ttdeci">base_uint&lt; 160, detail::AccountIDTag &gt; AccountID</div><div class="ttdoc">A 160-bit unsigned that uniquely identifies an account.</div><div class="ttdef"><b>Definition:</b> <a href="AccountID_8h_source.html#l00048">AccountID.h:48</a></div></div>
<div class="ttc" id="afunction_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a></div></div>
<div class="ttc" id="anamespaceripple_html_ad600c1ec5c4532e6c8771f54128e85e5"><div class="ttname"><a href="namespaceripple.html#ad600c1ec5c4532e6c8771f54128e85e5">ripple::convertBlobsToTxResult</a></div><div class="ttdeci">void convertBlobsToTxResult(NetworkOPs::AccountTxs &amp;to, std::uint32_t ledger_index, std::string const &amp;status, Blob const &amp;rawTxn, Blob const &amp;rawMeta, Application &amp;app)</div><div class="ttdef"><b>Definition:</b> <a href="AccountTxPaging_8cpp_source.html#l00033">AccountTxPaging.cpp:33</a></div></div>
<div class="ttc" id="anamespaceripple_html_a5b20792dc031a8d5507966448d62f686"><div class="ttname"><a href="namespaceripple.html#a5b20792dc031a8d5507966448d62f686">ripple::saveLedgerAsync</a></div><div class="ttdeci">void saveLedgerAsync(Application &amp;app, std::uint32_t seq)</div><div class="ttdef"><b>Definition:</b> <a href="AccountTxPaging_8cpp_source.html#l00057">AccountTxPaging.cpp:57</a></div></div>
@@ -148,7 +147,7 @@ $(function() {
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div></div>
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
<div class="ttc" id="aoptional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a></div></div>
<div class="ttc" id="anamespaceripple_html_a33f2e976cb41ee4a52c5df14695377ec"><div class="ttname"><a href="namespaceripple.html#a33f2e976cb41ee4a52c5df14695377ec">ripple::Blob</a></div><div class="ttdeci">std::vector&lt; unsigned char &gt; Blob</div><div class="ttdoc">Storage for linear binary data.</div><div class="ttdef"><b>Definition:</b> <a href="Blob_8h_source.html#l00030">Blob.h:30</a></div></div>
<div class="ttc" id="anamespaceripple_html_a00ae0d729cb3e35b6bcac9a27ebb5284"><div class="ttname"><a href="namespaceripple.html#a00ae0d729cb3e35b6bcac9a27ebb5284">ripple::AccountID</a></div><div class="ttdeci">base_uint&lt; 160, detail::AccountIDTag &gt; AccountID</div><div class="ttdoc">A 160-bit unsigned that uniquely identifies an account.</div><div class="ttdef"><b>Definition:</b> <a href="AccountID_8h_source.html#l00047">AccountID.h:47</a></div></div>
<div class="ttc" id="astring_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/string.html">string</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>