mirror of
https://github.com/XRPLF/rippled.git
synced 2026-01-31 12:05:24 +00:00
493 lines
100 KiB
HTML
493 lines
100 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>rippled: Tx.cpp Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">rippled
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.8 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(document).ready(function() { init_codefold(0); });
|
|
/* @license-end */
|
|
</script>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_a62226f9e3a6c7c5a3be455e2f87ae01.html">xrpld</a></li><li class="navelem"><a class="el" href="dir_42b876eb66f74e25995e23a7c0222dc7.html">rpc</a></li><li class="navelem"><a class="el" href="dir_202f05fcc82d395fac3f43e301f5a49f.html">handlers</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">Tx.cpp</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#include <xrpld/app/ledger/LedgerMaster.h></span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#include <xrpld/app/ledger/TransactionMaster.h></span></div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="preprocessor">#include <xrpld/app/misc/DeliverMax.h></span></div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include <xrpld/app/misc/NetworkOPs.h></span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include <xrpld/app/misc/Transaction.h></span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include <xrpld/app/rdb/RelationalDatabase.h></span></div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include <xrpld/rpc/CTID.h></span></div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include <xrpld/rpc/Context.h></span></div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include <xrpld/rpc/DeliveredAmount.h></span></div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include <xrpld/rpc/GRPCHandlers.h></span></div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#include <xrpld/rpc/MPTokenIssuanceID.h></span></div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> </div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="preprocessor">#include <xrpl/basics/ToString.h></span></div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#include <xrpl/protocol/ErrorCodes.h></span></div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include <xrpl/protocol/NFTSyntheticSerializer.h></span></div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include <xrpl/protocol/RPCErr.h></span></div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#include <xrpl/protocol/jss.h></span></div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/regex.html">regex</a>></span></div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacexrpl.html">xrpl</a> {</div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="keyword">static</span> <span class="keywordtype">bool</span></div>
|
|
<div class="foldopen" id="foldopen00024" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="namespacexrpl.html#a394321a5120f24d582baf7975c389cf2"> 24</a></span><a class="code hl_function" href="namespacexrpl.html#a394321a5120f24d582baf7975c389cf2">isValidated</a>(<a class="code hl_class" href="classxrpl_1_1LedgerMaster.html">LedgerMaster</a>& <a class="code hl_enumvalue" href="namespacexrpl.html#ac599741e6d4066bada11df4c7e8ad30aa7fa2267e9b1bf739a70bb1860ab2a99c">ledgerMaster</a>, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> seq, <a class="code hl_class" href="classxrpl_1_1base__uint.html">uint256</a> <span class="keyword">const</span>& hash)</div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span>{</div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <span class="keywordflow">if</span> (!<a class="code hl_enumvalue" href="namespacexrpl.html#ac599741e6d4066bada11df4c7e8ad30aa7fa2267e9b1bf739a70bb1860ab2a99c">ledgerMaster</a>.haveLedger(seq))</div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <span class="keywordflow">if</span> (seq > <a class="code hl_enumvalue" href="namespacexrpl.html#ac599741e6d4066bada11df4c7e8ad30aa7fa2267e9b1bf739a70bb1860ab2a99c">ledgerMaster</a>.getValidatedLedger()->header().seq)</div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespacexrpl.html#ac599741e6d4066bada11df4c7e8ad30aa7fa2267e9b1bf739a70bb1860ab2a99c">ledgerMaster</a>.getHashBySeq(seq) == hash;</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
|
|
<div class="foldopen" id="foldopen00035" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="structxrpl_1_1TxResult.html"> 35</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structxrpl_1_1TxResult.html">TxResult</a></div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span>{</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="structxrpl_1_1TxResult.html#a4c64d29cb85d02b5c59e51db150f1a17"> 37</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">Transaction::pointer</a> <a class="code hl_variable" href="structxrpl_1_1TxResult.html#a4c64d29cb85d02b5c59e51db150f1a17">txn</a>;</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="structxrpl_1_1TxResult.html#ae0aeb6ae4720ea6fcc53e0716297674b"> 38</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/variant.html">std::variant<std::shared_ptr<TxMeta></a>, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">Blob</a>> <a class="code hl_variable" href="structxrpl_1_1TxResult.html#ae0aeb6ae4720ea6fcc53e0716297674b">meta</a>;</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="structxrpl_1_1TxResult.html#ac3829c7f0567b55bf096083c39821c02"> 39</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structxrpl_1_1TxResult.html#ac3829c7f0567b55bf096083c39821c02">validated</a> = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="structxrpl_1_1TxResult.html#ac3e4e9ca6408c41ee4ad4202e6a7fd75"> 40</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<std::string></a> <a class="code hl_variable" href="structxrpl_1_1TxResult.html#ac3e4e9ca6408c41ee4ad4202e6a7fd75">ctid</a>;</div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="structxrpl_1_1TxResult.html#a98cc3346cefc10c4f53a49b32e11becc"> 41</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<NetClock::time_point></a> <a class="code hl_variable" href="structxrpl_1_1TxResult.html#a98cc3346cefc10c4f53a49b32e11becc">closeTime</a>;</div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="structxrpl_1_1TxResult.html#a13b65610169b1cd00828047f524b8021"> 42</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<uint256></a> <a class="code hl_variable" href="structxrpl_1_1TxResult.html#a13b65610169b1cd00828047f524b8021">ledgerHash</a>;</div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="structxrpl_1_1TxResult.html#a6d7b28667d98f01892d39dd73e42ece4"> 43</a></span> <a class="code hl_enumeration" href="namespacexrpl.html#ab2fee6d98c0fcdead09c04e35ab453a6">TxSearched</a> <a class="code hl_variable" href="structxrpl_1_1TxResult.html#a6d7b28667d98f01892d39dd73e42ece4">searchedAll</a>;</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
|
|
<div class="foldopen" id="foldopen00046" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="structxrpl_1_1TxArgs.html"> 46</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structxrpl_1_1TxArgs.html">TxArgs</a></div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span>{</div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="structxrpl_1_1TxArgs.html#aaa83d4525d7b5a5d0638749a0e928632"> 48</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<uint256></a> <a class="code hl_variable" href="structxrpl_1_1TxArgs.html#aaa83d4525d7b5a5d0638749a0e928632">hash</a>;</div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="structxrpl_1_1TxArgs.html#a1e6053cb17e309b9b7829f9f3097228f"> 49</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<std::pair<uint32_t, uint16_t></a>> <a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a1e6053cb17e309b9b7829f9f3097228f">ctid</a>;</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="structxrpl_1_1TxArgs.html#a5b2fa57338c35a939ffa7fd3a784dd5b"> 50</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a5b2fa57338c35a939ffa7fd3a784dd5b">binary</a> = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="structxrpl_1_1TxArgs.html#a17cfc969f066c228cdcd63b777fa5d92"> 51</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<std::pair<uint32_t, uint32_t></a>> <a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a17cfc969f066c228cdcd63b777fa5d92">ledgerRange</a>;</div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> </div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair<TxResult, RPC::Status></a></div>
|
|
<div class="foldopen" id="foldopen00055" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="namespacexrpl.html#a623b13db069e96e18ad90781dbedb9e6"> 55</a></span><a class="code hl_function" href="namespacexrpl.html#a623b13db069e96e18ad90781dbedb9e6">doTxHelp</a>(<a class="code hl_struct" href="structxrpl_1_1RPC_1_1Context.html">RPC::Context</a>& context, <a class="code hl_struct" href="structxrpl_1_1TxArgs.html">TxArgs</a> args)</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span>{</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <a class="code hl_struct" href="structxrpl_1_1TxResult.html">TxResult</a> result;</div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <a class="code hl_typedef" href="namespacexrpl.html#a86e91f18d65b451807479b486aabb7a9">ClosedInterval<uint32_t></a> <a class="code hl_function" href="namespacexrpl.html#a34fabf5c9fc5c30e86623b6a5eb0ac7d">range</a>;</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> </div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <span class="keywordflow">if</span> (args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a17cfc969f066c228cdcd63b777fa5d92">ledgerRange</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"> 63</span> <span class="keyword">constexpr</span> uint16_t MAX_RANGE = 1000;</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="keywordflow">if</span> (args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a17cfc969f066c228cdcd63b777fa5d92">ledgerRange</a>->second < args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a17cfc969f066c228cdcd63b777fa5d92">ledgerRange</a>->first)</div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="keywordflow">return</span> {result, <a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76faf5f984508a7eb726be7ee1e5807c42c8">rpcINVALID_LGR_RANGE</a>};</div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> </div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="keywordflow">if</span> (args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a17cfc969f066c228cdcd63b777fa5d92">ledgerRange</a>->second - args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a17cfc969f066c228cdcd63b777fa5d92">ledgerRange</a>->first > MAX_RANGE)</div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="keywordflow">return</span> {result, <a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa3a2074d7ae820678bf1602775c48ccd2">rpcEXCESSIVE_LGR_RANGE</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> <a class="code hl_function" href="namespacexrpl.html#a34fabf5c9fc5c30e86623b6a5eb0ac7d">range</a> = <a class="code hl_typedef" href="namespacexrpl.html#a86e91f18d65b451807479b486aabb7a9">ClosedInterval<uint32_t></a>(args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a17cfc969f066c228cdcd63b777fa5d92">ledgerRange</a>->first, args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a17cfc969f066c228cdcd63b777fa5d92">ledgerRange</a>->second);</div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> }</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> <span class="keyword">auto</span> ec{<a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76faffe7dc93a7f5be3abc5d49473c0776c0">rpcSUCCESS</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> <span class="keyword">using </span>TxPair = <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair<std::shared_ptr<Transaction></a>, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<TxMeta></a>>;</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> result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#a6d7b28667d98f01892d39dd73e42ece4">searchedAll</a> = <a class="code hl_enumvalue" href="namespacexrpl.html#ab2fee6d98c0fcdead09c04e35ab453a6aad921d60486366258809553a3db49a4a">TxSearched::unknown</a>;</div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/variant.html">std::variant<TxPair, TxSearched></a> v;</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"> 81</span> <span class="keywordflow">if</span> (args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a1e6053cb17e309b9b7829f9f3097228f">ctid</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> args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#aaa83d4525d7b5a5d0638749a0e928632">hash</a> = context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#a3819425c846e53ec0f1bcfa7407df609">app</a>.<a class="code hl_function" href="classxrpl_1_1Application.html#a67e24f718daa8a3aa2e0237bc0639616">getLedgerMaster</a>().<a class="code hl_function" href="classxrpl_1_1LedgerMaster.html#ab9bec82d57c4a31015cfb4959875cea2">txnIdFromIndex</a>(args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a1e6053cb17e309b9b7829f9f3097228f">ctid</a>->first, args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a1e6053cb17e309b9b7829f9f3097228f">ctid</a>->second);</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="keywordflow">if</span> (args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#aaa83d4525d7b5a5d0638749a0e928632">hash</a>)</div>
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <a class="code hl_function" href="namespacexrpl.html#a34fabf5c9fc5c30e86623b6a5eb0ac7d">range</a> = <a class="code hl_typedef" href="namespacexrpl.html#a86e91f18d65b451807479b486aabb7a9">ClosedInterval<uint32_t></a>(args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a1e6053cb17e309b9b7829f9f3097228f">ctid</a>->first, args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a1e6053cb17e309b9b7829f9f3097228f">ctid</a>->second);</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> </div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="keywordflow">if</span> (!args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#aaa83d4525d7b5a5d0638749a0e928632">hash</a>)</div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <span class="keywordflow">return</span> {result, <a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa12eb33aa42913fa30e26716bc7d49fe8">rpcTXN_NOT_FOUND</a>};</div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> </div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="keywordflow">if</span> (args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a17cfc969f066c228cdcd63b777fa5d92">ledgerRange</a>)</div>
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> {</div>
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> v = context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#a3819425c846e53ec0f1bcfa7407df609">app</a>.<a class="code hl_function" href="classxrpl_1_1Application.html#ac010a9477991d2048a333752e0143958">getMasterTransaction</a>().<a class="code hl_function" href="classxrpl_1_1TransactionMaster.html#a7e32ff0018de8a5d69904fee8a3ffcc9">fetch</a>(*(args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#aaa83d4525d7b5a5d0638749a0e928632">hash</a>), <a class="code hl_function" href="namespacexrpl.html#a34fabf5c9fc5c30e86623b6a5eb0ac7d">range</a>, ec);</div>
|
|
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> }</div>
|
|
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <span class="keywordflow">else</span></div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> {</div>
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> v = context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#a3819425c846e53ec0f1bcfa7407df609">app</a>.<a class="code hl_function" href="classxrpl_1_1Application.html#ac010a9477991d2048a333752e0143958">getMasterTransaction</a>().<a class="code hl_function" href="classxrpl_1_1TransactionMaster.html#a7e32ff0018de8a5d69904fee8a3ffcc9">fetch</a>(*(args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#aaa83d4525d7b5a5d0638749a0e928632">hash</a>), ec);</div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> }</div>
|
|
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> </div>
|
|
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> <span class="keywordflow">if</span> (<span class="keyword">auto</span> e = <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::get_if<TxSearched></a>(&v))</div>
|
|
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> {</div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#a6d7b28667d98f01892d39dd73e42ece4">searchedAll</a> = *e;</div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <span class="keywordflow">return</span> {result, <a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa12eb33aa42913fa30e26716bc7d49fe8">rpcTXN_NOT_FOUND</a>};</div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> }</div>
|
|
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> </div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <span class="keyword">auto</span> [txn, meta] = <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::get<TxPair></a>(v);</div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> </div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keywordflow">if</span> (ec == <a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa8b609b4c3b4c842d54d40038587c869b">rpcDB_DESERIALIZATION</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="keywordflow">return</span> {result, ec};</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="keywordflow">if</span> (!txn)</div>
|
|
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> {</div>
|
|
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <span class="keywordflow">return</span> {result, <a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa12eb33aa42913fa30e26716bc7d49fe8">rpcTXN_NOT_FOUND</a>};</div>
|
|
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> }</div>
|
|
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> </div>
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <span class="comment">// populate transaction data</span></div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#a4c64d29cb85d02b5c59e51db150f1a17">txn</a> = txn;</div>
|
|
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> <span class="keywordflow">if</span> (txn->getLedger() == 0)</div>
|
|
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> {</div>
|
|
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> <span class="keywordflow">return</span> {result, <a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76faffe7dc93a7f5be3abc5d49473c0776c0">rpcSUCCESS</a>};</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> </div>
|
|
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Ledger const></a> ledger = context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#ac2b68abc7374eacb59cd93164ccdbc77">ledgerMaster</a>.<a class="code hl_function" href="classxrpl_1_1LedgerMaster.html#a2b20634b66ceb4ffdf423bfbc045a443">getLedgerBySeq</a>(txn->getLedger());</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">if</span> (ledger && !ledger->open())</div>
|
|
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#a13b65610169b1cd00828047f524b8021">ledgerHash</a> = ledger->header().hash;</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="keywordflow">if</span> (ledger && meta)</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="keywordflow">if</span> (args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a5b2fa57338c35a939ffa7fd3a784dd5b">binary</a>)</div>
|
|
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> {</div>
|
|
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#ae0aeb6ae4720ea6fcc53e0716297674b">meta</a> = meta->getAsObject().getSerializer().getData();</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"> 136</span> <span class="keywordflow">else</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"> 138</span> result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#ae0aeb6ae4720ea6fcc53e0716297674b">meta</a> = meta;</div>
|
|
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> }</div>
|
|
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#ac3829c7f0567b55bf096083c39821c02">validated</a> = <a class="code hl_function" href="namespacexrpl.html#a394321a5120f24d582baf7975c389cf2">isValidated</a>(context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#ac2b68abc7374eacb59cd93164ccdbc77">ledgerMaster</a>, ledger->header().seq, ledger->header().hash);</div>
|
|
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="keywordflow">if</span> (result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#ac3829c7f0567b55bf096083c39821c02">validated</a>)</div>
|
|
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#a98cc3346cefc10c4f53a49b32e11becc">closeTime</a> = context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#ac2b68abc7374eacb59cd93164ccdbc77">ledgerMaster</a>.<a class="code hl_function" href="classxrpl_1_1LedgerMaster.html#a7c66265653a366706dc15df3924539d2">getCloseTimeBySeq</a>(txn->getLedger());</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="comment">// compute outgoing CTID</span></div>
|
|
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="keywordflow">if</span> (meta->getAsObject().isFieldPresent(sfTransactionIndex))</div>
|
|
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> {</div>
|
|
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> uint32_t lgrSeq = ledger->header().seq;</div>
|
|
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> uint32_t txnIdx = meta->getAsObject().getFieldU32(sfTransactionIndex);</div>
|
|
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> uint32_t netID = context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#a3819425c846e53ec0f1bcfa7407df609">app</a>.<a class="code hl_function" href="classxrpl_1_1Application.html#a31c486ede7ae3b9c56c4c57bc696e3bf">config</a>().<a class="code hl_variable" href="classxrpl_1_1Config.html#a012b4a131a129846b1e14f59c0b84c02">NETWORK_ID</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> <span class="keywordflow">if</span> (txnIdx <= 0xFFFFU && netID < 0xFFFFU && lgrSeq < 0x0FFF'FFFFUL)</div>
|
|
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#ac3e4e9ca6408c41ee4ad4202e6a7fd75">ctid</a> = <a class="code hl_function" href="namespacexrpl_1_1RPC.html#a06a08835183fbd9d9ece0de5094a2741">RPC::encodeCTID</a>(lgrSeq, (uint32_t)txnIdx, (uint32_t)netID);</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"> 154</span> }</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> <span class="keywordflow">return</span> {result, <a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76faffe7dc93a7f5be3abc5d49473c0776c0">rpcSUCCESS</a>};</div>
|
|
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span>}</div>
|
|
</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><a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a></div>
|
|
<div class="foldopen" id="foldopen00160" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"><a class="line" href="namespacexrpl.html#a168fc2595ccd557a394447c3e4196940"> 160</a></span><a class="code hl_function" href="namespacexrpl.html#a06643a54f36bf47da9fa36db6f21ed1f">populateJsonResponse</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair<TxResult, RPC::Status></a> <span class="keyword">const</span>& res, <a class="code hl_struct" href="structxrpl_1_1TxArgs.html">TxArgs</a> <span class="keyword">const</span>& args, <a class="code hl_struct" href="structxrpl_1_1RPC_1_1JsonContext.html">RPC::JsonContext</a> <span class="keyword">const</span>& context)</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> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a> response;</div>
|
|
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> <a class="code hl_struct" href="structxrpl_1_1RPC_1_1Status.html">RPC::Status</a> <span class="keyword">const</span>& error = res.<a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">second</a>;</div>
|
|
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <a class="code hl_struct" href="structxrpl_1_1TxResult.html">TxResult</a> <span class="keyword">const</span>& result = res.<a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">first</a>;</div>
|
|
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <span class="comment">// handle errors</span></div>
|
|
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> <span class="keywordflow">if</span> (error.toErrorCode() != <a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76faffe7dc93a7f5be3abc5d49473c0776c0">rpcSUCCESS</a>)</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> <span class="keywordflow">if</span> (error.toErrorCode() == <a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa12eb33aa42913fa30e26716bc7d49fe8">rpcTXN_NOT_FOUND</a> && result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#a6d7b28667d98f01892d39dd73e42ece4">searchedAll</a> != <a class="code hl_enumvalue" href="namespacexrpl.html#ab2fee6d98c0fcdead09c04e35ab453a6aad921d60486366258809553a3db49a4a">TxSearched::unknown</a>)</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> response = <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a>(<a class="code hl_enumvalue" href="namespaceJson.html#a7d654b75c16a57007925868e38212b4eae8386dcfc36d1ae897745f7b4f77a1f6">Json::objectValue</a>);</div>
|
|
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> response[jss::searched_all] = (result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#a6d7b28667d98f01892d39dd73e42ece4">searchedAll</a> == <a class="code hl_enumvalue" href="namespacexrpl.html#ab2fee6d98c0fcdead09c04e35ab453a6aa181a603769c1f98ad927e7367c7aa51">TxSearched::all</a>);</div>
|
|
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> error.inject(response);</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> <span class="keywordflow">else</span></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> error.inject(response);</div>
|
|
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> }</div>
|
|
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> }</div>
|
|
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> <span class="comment">// no errors</span></div>
|
|
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#a4c64d29cb85d02b5c59e51db150f1a17">txn</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> <span class="keyword">auto</span> <span class="keyword">const</span>& sttx = result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#a4c64d29cb85d02b5c59e51db150f1a17">txn</a>-><a class="code hl_function" href="classxrpl_1_1Transaction.html#ac264476298c3a274da30bff2feeb7ac1">getSTransaction</a>();</div>
|
|
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> <span class="keywordflow">if</span> (context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#aa8b6cd5d5b9eb13f4a82b16979cbd3f0">apiVersion</a> > 1)</div>
|
|
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> {</div>
|
|
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> <span class="keyword">constexpr</span> <span class="keyword">auto</span> optionsJson = <a class="code hl_enumvalue" href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570bac8f7a6bcecbb04376c7b274031dd3a9b">JsonOptions::include_date</a> | <a class="code hl_enumvalue" href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570ba97bf7ab51d5930c21ce7358fe6069523">JsonOptions::disable_API_prior_V2</a>;</div>
|
|
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> <span class="keywordflow">if</span> (args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a5b2fa57338c35a939ffa7fd3a784dd5b">binary</a>)</div>
|
|
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> response[jss::tx_blob] = result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#a4c64d29cb85d02b5c59e51db150f1a17">txn</a>-><a class="code hl_function" href="classxrpl_1_1Transaction.html#aac3a1a8c0c45e5a4c63919d096f2b7d5">getJson</a>(optionsJson, <span class="keyword">true</span>);</div>
|
|
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> <span class="keywordflow">else</span></div>
|
|
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> {</div>
|
|
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> response[jss::tx_json] = result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#a4c64d29cb85d02b5c59e51db150f1a17">txn</a>-><a class="code hl_function" href="classxrpl_1_1Transaction.html#aac3a1a8c0c45e5a4c63919d096f2b7d5">getJson</a>(optionsJson);</div>
|
|
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> <a class="code hl_function" href="namespacexrpl_1_1RPC.html#a480829f05d4404b510e7d6ebae919b37">RPC::insertDeliverMax</a>(response[jss::tx_json], sttx->getTxnType(), context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#aa8b6cd5d5b9eb13f4a82b16979cbd3f0">apiVersion</a>);</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> </div>
|
|
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> <span class="comment">// Note, result.ledgerHash is only set in a closed or validated</span></div>
|
|
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> <span class="comment">// ledger - as seen in `doTxHelp`</span></div>
|
|
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> <span class="keywordflow">if</span> (result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#a13b65610169b1cd00828047f524b8021">ledgerHash</a>)</div>
|
|
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> response[jss::ledger_hash] = <a class="code hl_function" href="namespacexrpl.html#a35ce7572092b98720a52fa343c6f2fa9">to_string</a>(*result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#a13b65610169b1cd00828047f524b8021">ledgerHash</a>);</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> response[jss::hash] = <a class="code hl_function" href="namespacexrpl.html#a35ce7572092b98720a52fa343c6f2fa9">to_string</a>(result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#a4c64d29cb85d02b5c59e51db150f1a17">txn</a>-><a class="code hl_function" href="classxrpl_1_1Transaction.html#aa6605f4b1516784d5ae93322a5f9301b">getID</a>());</div>
|
|
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> <span class="keywordflow">if</span> (result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#ac3829c7f0567b55bf096083c39821c02">validated</a>)</div>
|
|
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> {</div>
|
|
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> response[jss::ledger_index] = result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#a4c64d29cb85d02b5c59e51db150f1a17">txn</a>-><a class="code hl_function" href="classxrpl_1_1Transaction.html#a442561ea9714788b6ec300bc5608b988">getLedger</a>();</div>
|
|
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> <span class="keywordflow">if</span> (result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#a98cc3346cefc10c4f53a49b32e11becc">closeTime</a>)</div>
|
|
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> response[jss::close_time_iso] = <a class="code hl_function" href="namespacexrpl.html#ab41ee65e1e577708be9c8244b970510c">to_string_iso</a>(*result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#a98cc3346cefc10c4f53a49b32e11becc">closeTime</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> <span class="keywordflow">else</span></div>
|
|
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> {</div>
|
|
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> response = result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#a4c64d29cb85d02b5c59e51db150f1a17">txn</a>-><a class="code hl_function" href="classxrpl_1_1Transaction.html#aac3a1a8c0c45e5a4c63919d096f2b7d5">getJson</a>(<a class="code hl_enumvalue" href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570bac8f7a6bcecbb04376c7b274031dd3a9b">JsonOptions::include_date</a>, args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a5b2fa57338c35a939ffa7fd3a784dd5b">binary</a>);</div>
|
|
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> <span class="keywordflow">if</span> (!args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a5b2fa57338c35a939ffa7fd3a784dd5b">binary</a>)</div>
|
|
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> <a class="code hl_function" href="namespacexrpl_1_1RPC.html#a480829f05d4404b510e7d6ebae919b37">RPC::insertDeliverMax</a>(response, sttx->getTxnType(), context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#aa8b6cd5d5b9eb13f4a82b16979cbd3f0">apiVersion</a>);</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> </div>
|
|
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> <span class="comment">// populate binary metadata</span></div>
|
|
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> <span class="keywordflow">if</span> (<span class="keyword">auto</span> blob = <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::get_if<Blob></a>(&result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#ae0aeb6ae4720ea6fcc53e0716297674b">meta</a>))</div>
|
|
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> {</div>
|
|
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> XRPL_ASSERT(args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a5b2fa57338c35a939ffa7fd3a784dd5b">binary</a>, <span class="stringliteral">"xrpl::populateJsonResponse : binary is set"</span>);</div>
|
|
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> <span class="keyword">auto</span> json_meta = (context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#aa8b6cd5d5b9eb13f4a82b16979cbd3f0">apiVersion</a> > 1 ? jss::meta_blob : jss::meta);</div>
|
|
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> response[json_meta] = <a class="code hl_function" href="namespacexrpl.html#a36b95700599f590017b5912e220baf5b">strHex</a>(<a class="code hl_function" href="namespacexrpl.html#ade06aea604ced5ef1fd3c94ab573b646">makeSlice</a>(*blob));</div>
|
|
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> }</div>
|
|
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> <span class="comment">// populate meta data</span></div>
|
|
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<span class="keyword">auto</span> m = <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/utility/variant/get_if.html">std::get_if</a><<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<TxMeta></a>>(&result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#ae0aeb6ae4720ea6fcc53e0716297674b">meta</a>))</div>
|
|
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> {</div>
|
|
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> <span class="keyword">auto</span>& meta = *m;</div>
|
|
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> <span class="keywordflow">if</span> (meta)</div>
|
|
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> {</div>
|
|
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> response[jss::meta] = meta->getJson(<a class="code hl_enumvalue" href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570ba1a97822ca421424f4fc466f09db227a6">JsonOptions::none</a>);</div>
|
|
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> insertDeliveredAmount(response[jss::meta], context, result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#a4c64d29cb85d02b5c59e51db150f1a17">txn</a>, *meta);</div>
|
|
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> <a class="code hl_function" href="namespacexrpl_1_1RPC.html#aaf8b995a158f3f3025c2377fb6a8f2ac">RPC::insertNFTSyntheticInJson</a>(response, sttx, *meta);</div>
|
|
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> <a class="code hl_function" href="namespacexrpl_1_1RPC.html#a9069af30bba32012e3ebd7202f172287">RPC::insertMPTokenIssuanceID</a>(response[jss::meta], sttx, *meta);</div>
|
|
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> }</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> response[jss::validated] = result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#ac3829c7f0567b55bf096083c39821c02">validated</a>;</div>
|
|
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> </div>
|
|
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> <span class="keywordflow">if</span> (result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#ac3e4e9ca6408c41ee4ad4202e6a7fd75">ctid</a>)</div>
|
|
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> response[jss::ctid] = *(result.<a class="code hl_variable" href="structxrpl_1_1TxResult.html#ac3e4e9ca6408c41ee4ad4202e6a7fd75">ctid</a>);</div>
|
|
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> }</div>
|
|
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> <span class="keywordflow">return</span> response;</div>
|
|
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span>}</div>
|
|
</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><a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a></div>
|
|
<div class="foldopen" id="foldopen00242" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"><a class="line" href="namespacexrpl.html#a35c492b872b6d0c56aff5f535daa4a34"> 242</a></span><a class="code hl_function" href="namespacexrpl.html#a35c492b872b6d0c56aff5f535daa4a34">doTxJson</a>(<a class="code hl_struct" href="structxrpl_1_1RPC_1_1JsonContext.html">RPC::JsonContext</a>& context)</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> <span class="keywordflow">if</span> (!context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#a3819425c846e53ec0f1bcfa7407df609">app</a>.<a class="code hl_function" href="classxrpl_1_1Application.html#a31c486ede7ae3b9c56c4c57bc696e3bf">config</a>().<a class="code hl_function" href="classxrpl_1_1Config.html#ac062e2a3ac84d6375ba2dc4dfe440127">useTxTables</a>())</div>
|
|
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacexrpl.html#ab2aea6659695e209e9affb77e421f43e">rpcError</a>(<a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa6b446e051266fd73162852bd2c8a8f46">rpcNOT_ENABLED</a>);</div>
|
|
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> </div>
|
|
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> <span class="comment">// Deserialize and validate JSON arguments</span></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"> 249</span> <a class="code hl_struct" href="structxrpl_1_1TxArgs.html">TxArgs</a> args;</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"> 251</span> <span class="keywordflow">if</span> (context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">params</a>.<a class="code hl_function" href="classJson_1_1Value.html#abfa90c81f6aee7877bd5fb4c8445994f">isMember</a>(jss::transaction) && context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">params</a>.<a class="code hl_function" href="classJson_1_1Value.html#abfa90c81f6aee7877bd5fb4c8445994f">isMember</a>(jss::ctid))</div>
|
|
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> <span class="comment">// specifying both is ambiguous</span></div>
|
|
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacexrpl.html#ab2aea6659695e209e9affb77e421f43e">rpcError</a>(<a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76faefd5dbecf662df8c7b2be66d6d0d68ec">rpcINVALID_PARAMS</a>);</div>
|
|
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> </div>
|
|
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> <span class="keywordflow">if</span> (context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">params</a>.<a class="code hl_function" href="classJson_1_1Value.html#abfa90c81f6aee7877bd5fb4c8445994f">isMember</a>(jss::transaction))</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> <a class="code hl_class" href="classxrpl_1_1base__uint.html">uint256</a> hash;</div>
|
|
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> <span class="keywordflow">if</span> (!hash.<a class="code hl_function" href="classxrpl_1_1base__uint.html#a341fd439f9a09990fd34c6005d87f2ea">parseHex</a>(context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">params</a>[jss::transaction].<a class="code hl_function" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
|
|
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacexrpl.html#ab2aea6659695e209e9affb77e421f43e">rpcError</a>(<a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa270975c5354852d7b5248476859f5a65">rpcNOT_IMPL</a>);</div>
|
|
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#aaa83d4525d7b5a5d0638749a0e928632">hash</a> = hash;</div>
|
|
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> }</div>
|
|
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">params</a>.<a class="code hl_function" href="classJson_1_1Value.html#abfa90c81f6aee7877bd5fb4c8445994f">isMember</a>(jss::ctid))</div>
|
|
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> {</div>
|
|
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> <span class="keyword">auto</span> ctid = <a class="code hl_function" href="namespacexrpl_1_1RPC.html#ac67959639d055543cb96464ae3e40998">RPC::decodeCTID</a>(context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">params</a>[jss::ctid].<a class="code hl_function" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>());</div>
|
|
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> <span class="keywordflow">if</span> (!ctid)</div>
|
|
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacexrpl.html#ab2aea6659695e209e9affb77e421f43e">rpcError</a>(<a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76faefd5dbecf662df8c7b2be66d6d0d68ec">rpcINVALID_PARAMS</a>);</div>
|
|
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> </div>
|
|
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span> <span class="keyword">auto</span> <span class="keyword">const</span> [lgr_seq, txn_idx, net_id] = *ctid;</div>
|
|
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span> <span class="keywordflow">if</span> (net_id != context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#a3819425c846e53ec0f1bcfa7407df609">app</a>.<a class="code hl_function" href="classxrpl_1_1Application.html#a31c486ede7ae3b9c56c4c57bc696e3bf">config</a>().<a class="code hl_variable" href="classxrpl_1_1Config.html#a012b4a131a129846b1e14f59c0b84c02">NETWORK_ID</a>)</div>
|
|
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span> {</div>
|
|
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"> 271</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a> <a class="code hl_enumvalue" href="namespacexrpl.html#a8c276c0296ec751cf0e0eb51dbc7f72dac68271a63ddbc431c307beb7d2918275">out</a>;</div>
|
|
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span> <a class="code hl_enumvalue" href="namespacexrpl.html#a8c276c0296ec751cf0e0eb51dbc7f72dac68271a63ddbc431c307beb7d2918275">out</a> << <span class="stringliteral">"Wrong network. You should submit this request to a node "</span></div>
|
|
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span> <span class="stringliteral">"running on NetworkID: "</span></div>
|
|
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span> << net_id;</div>
|
|
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"> 275</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacexrpl_1_1RPC.html#adacea89cc70d7238cdb1e5044c0d8932">RPC::make_error</a>(<a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fac4468894023ead83fcc6617aaddc8410">rpcWRONG_NETWORK</a>, <a class="code hl_enumvalue" href="namespacexrpl.html#a8c276c0296ec751cf0e0eb51dbc7f72dac68271a63ddbc431c307beb7d2918275">out</a>.str());</div>
|
|
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</span> }</div>
|
|
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</span> args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a1e6053cb17e309b9b7829f9f3097228f">ctid</a> = {lgr_seq, txn_idx};</div>
|
|
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span> }</div>
|
|
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span> <span class="keywordflow">else</span></div>
|
|
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacexrpl.html#ab2aea6659695e209e9affb77e421f43e">rpcError</a>(<a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76faefd5dbecf662df8c7b2be66d6d0d68ec">rpcINVALID_PARAMS</a>);</div>
|
|
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span> </div>
|
|
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a5b2fa57338c35a939ffa7fd3a784dd5b">binary</a> = context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">params</a>.<a class="code hl_function" href="classJson_1_1Value.html#abfa90c81f6aee7877bd5fb4c8445994f">isMember</a>(jss::binary) && context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">params</a>[jss::binary].<a class="code hl_function" href="classJson_1_1Value.html#ab693fb7b9b1595bb0adc49658bbf780d">asBool</a>();</div>
|
|
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> </div>
|
|
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> <span class="keywordflow">if</span> (context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">params</a>.<a class="code hl_function" href="classJson_1_1Value.html#abfa90c81f6aee7877bd5fb4c8445994f">isMember</a>(jss::min_ledger) && context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">params</a>.<a class="code hl_function" href="classJson_1_1Value.html#abfa90c81f6aee7877bd5fb4c8445994f">isMember</a>(jss::max_ledger))</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="keywordflow">try</span></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> args.<a class="code hl_variable" href="structxrpl_1_1TxArgs.html#a17cfc969f066c228cdcd63b777fa5d92">ledgerRange</a> =</div>
|
|
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/utility/pair/make_pair.html">std::make_pair</a>(context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">params</a>[jss::min_ledger].<a class="code hl_function" href="classJson_1_1Value.html#a74b305583ec3aacf4f9dd06e799dc265">asUInt</a>(), context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">params</a>[jss::max_ledger].<a class="code hl_function" href="classJson_1_1Value.html#a74b305583ec3aacf4f9dd06e799dc265">asUInt</a>());</div>
|
|
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> }</div>
|
|
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> <span class="keywordflow">catch</span> (...)</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> <span class="comment">// One of the calls to `asUInt ()` failed.</span></div>
|
|
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno"> 294</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacexrpl.html#ab2aea6659695e209e9affb77e421f43e">rpcError</a>(<a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76faf5f984508a7eb726be7ee1e5807c42c8">rpcINVALID_LGR_RANGE</a>);</div>
|
|
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno"> 295</span> }</div>
|
|
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno"> 296</span> }</div>
|
|
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno"> 297</span> </div>
|
|
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno"> 298</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair<TxResult, RPC::Status></a> res = <a class="code hl_function" href="namespacexrpl.html#a623b13db069e96e18ad90781dbedb9e6">doTxHelp</a>(context, args);</div>
|
|
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"> 299</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacexrpl.html#a06643a54f36bf47da9fa36db6f21ed1f">populateJsonResponse</a>(res, args, context);</div>
|
|
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno"> 301</span> </div>
|
|
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno"> 302</span>} <span class="comment">// namespace xrpl</span></div>
|
|
<div class="ttc" id="abasic_stringstream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a></div></div>
|
|
<div class="ttc" id="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#l00130">json_value.h:131</a></div></div>
|
|
<div class="ttc" id="aclassJson_1_1Value_html_a74b305583ec3aacf4f9dd06e799dc265"><div class="ttname"><a href="classJson_1_1Value.html#a74b305583ec3aacf4f9dd06e799dc265">Json::Value::asUInt</a></div><div class="ttdeci">UInt asUInt() const</div><div class="ttdef"><b>Definition</b> <a href="json__value_8cpp_source.html#l00590">json_value.cpp:590</a></div></div>
|
|
<div class="ttc" id="aclassJson_1_1Value_html_ab0d86bf425efefd03513e8dbfaca317b"><div class="ttname"><a href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">Json::Value::asString</a></div><div class="ttdeci">std::string asString() const</div><div class="ttdoc">Returns the unquoted string value.</div><div class="ttdef"><b>Definition</b> <a href="json__value_8cpp_source.html#l00457">json_value.cpp:457</a></div></div>
|
|
<div class="ttc" id="aclassJson_1_1Value_html_ab693fb7b9b1595bb0adc49658bbf780d"><div class="ttname"><a href="classJson_1_1Value.html#ab693fb7b9b1595bb0adc49658bbf780d">Json::Value::asBool</a></div><div class="ttdeci">bool asBool() const</div><div class="ttdef"><b>Definition</b> <a href="json__value_8cpp_source.html#l00664">json_value.cpp:664</a></div></div>
|
|
<div class="ttc" id="aclassJson_1_1Value_html_abfa90c81f6aee7877bd5fb4c8445994f"><div class="ttname"><a href="classJson_1_1Value.html#abfa90c81f6aee7877bd5fb4c8445994f">Json::Value::isMember</a></div><div class="ttdeci">bool isMember(char const *key) const</div><div class="ttdoc">Return true if the object has a member named key.</div><div class="ttdef"><b>Definition</b> <a href="json__value_8cpp_source.html#l00978">json_value.cpp:978</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1Application_html_a31c486ede7ae3b9c56c4c57bc696e3bf"><div class="ttname"><a href="classxrpl_1_1Application.html#a31c486ede7ae3b9c56c4c57bc696e3bf">xrpl::Application::config</a></div><div class="ttdeci">virtual Config & config()=0</div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1Application_html_a67e24f718daa8a3aa2e0237bc0639616"><div class="ttname"><a href="classxrpl_1_1Application.html#a67e24f718daa8a3aa2e0237bc0639616">xrpl::Application::getLedgerMaster</a></div><div class="ttdeci">virtual LedgerMaster & getLedgerMaster()=0</div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1Application_html_ac010a9477991d2048a333752e0143958"><div class="ttname"><a href="classxrpl_1_1Application.html#ac010a9477991d2048a333752e0143958">xrpl::Application::getMasterTransaction</a></div><div class="ttdeci">virtual TransactionMaster & getMasterTransaction()=0</div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1Config_html_a012b4a131a129846b1e14f59c0b84c02"><div class="ttname"><a href="classxrpl_1_1Config.html#a012b4a131a129846b1e14f59c0b84c02">xrpl::Config::NETWORK_ID</a></div><div class="ttdeci">uint32_t NETWORK_ID</div><div class="ttdef"><b>Definition</b> <a href="Config_8h_source.html#l00138">Config.h:138</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1Config_html_ac062e2a3ac84d6375ba2dc4dfe440127"><div class="ttname"><a href="classxrpl_1_1Config.html#ac062e2a3ac84d6375ba2dc4dfe440127">xrpl::Config::useTxTables</a></div><div class="ttdeci">bool useTxTables() const</div><div class="ttdef"><b>Definition</b> <a href="Config_8h_source.html#l00318">Config.h:318</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1LedgerMaster_html"><div class="ttname"><a href="classxrpl_1_1LedgerMaster.html">xrpl::LedgerMaster</a></div><div class="ttdef"><b>Definition</b> <a href="LedgerMaster_8h_source.html#l00032">LedgerMaster.h:33</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1LedgerMaster_html_a2b20634b66ceb4ffdf423bfbc045a443"><div class="ttname"><a href="classxrpl_1_1LedgerMaster.html#a2b20634b66ceb4ffdf423bfbc045a443">xrpl::LedgerMaster::getLedgerBySeq</a></div><div class="ttdeci">std::shared_ptr< Ledger const > getLedgerBySeq(std::uint32_t index)</div><div class="ttdef"><b>Definition</b> <a href="LedgerMaster_8cpp_source.html#l01588">LedgerMaster.cpp:1588</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1LedgerMaster_html_a7c66265653a366706dc15df3924539d2"><div class="ttname"><a href="classxrpl_1_1LedgerMaster.html#a7c66265653a366706dc15df3924539d2">xrpl::LedgerMaster::getCloseTimeBySeq</a></div><div class="ttdeci">std::optional< NetClock::time_point > getCloseTimeBySeq(LedgerIndex ledgerIndex)</div><div class="ttdef"><b>Definition</b> <a href="LedgerMaster_8cpp_source.html#l01485">LedgerMaster.cpp:1485</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1LedgerMaster_html_ab9bec82d57c4a31015cfb4959875cea2"><div class="ttname"><a href="classxrpl_1_1LedgerMaster.html#ab9bec82d57c4a31015cfb4959875cea2">xrpl::LedgerMaster::txnIdFromIndex</a></div><div class="ttdeci">std::optional< uint256 > txnIdFromIndex(uint32_t ledgerSeq, uint32_t txnIndex)</div><div class="ttdef"><b>Definition</b> <a href="LedgerMaster_8cpp_source.html#l02084">LedgerMaster.cpp:2084</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1TransactionMaster_html_a7e32ff0018de8a5d69904fee8a3ffcc9"><div class="ttname"><a href="classxrpl_1_1TransactionMaster.html#a7e32ff0018de8a5d69904fee8a3ffcc9">xrpl::TransactionMaster::fetch</a></div><div class="ttdeci">std::variant< std::pair< std::shared_ptr< Transaction >, std::shared_ptr< TxMeta > >, TxSearched > fetch(uint256 const &, error_code_i &ec)</div><div class="ttdef"><b>Definition</b> <a href="TransactionMaster_8cpp_source.html#l00039">TransactionMaster.cpp:39</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1Transaction_html_a442561ea9714788b6ec300bc5608b988"><div class="ttname"><a href="classxrpl_1_1Transaction.html#a442561ea9714788b6ec300bc5608b988">xrpl::Transaction::getLedger</a></div><div class="ttdeci">LedgerIndex getLedger() const</div><div class="ttdef"><b>Definition</b> <a href="Transaction_8h_source.html#l00078">Transaction.h:78</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1Transaction_html_aa6605f4b1516784d5ae93322a5f9301b"><div class="ttname"><a href="classxrpl_1_1Transaction.html#aa6605f4b1516784d5ae93322a5f9301b">xrpl::Transaction::getID</a></div><div class="ttdeci">uint256 const & getID() const</div><div class="ttdef"><b>Definition</b> <a href="Transaction_8h_source.html#l00072">Transaction.h:72</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1Transaction_html_aac3a1a8c0c45e5a4c63919d096f2b7d5"><div class="ttname"><a href="classxrpl_1_1Transaction.html#aac3a1a8c0c45e5a4c63919d096f2b7d5">xrpl::Transaction::getJson</a></div><div class="ttdeci">Json::Value getJson(JsonOptions options, bool binary=false) const</div><div class="ttdef"><b>Definition</b> <a href="Transaction_8cpp_source.html#l00128">Transaction.cpp:128</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1Transaction_html_ac264476298c3a274da30bff2feeb7ac1"><div class="ttname"><a href="classxrpl_1_1Transaction.html#ac264476298c3a274da30bff2feeb7ac1">xrpl::Transaction::getSTransaction</a></div><div class="ttdeci">std::shared_ptr< STTx const > const & getSTransaction()</div><div class="ttdef"><b>Definition</b> <a href="Transaction_8h_source.html#l00066">Transaction.h:66</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1base__uint_html"><div class="ttname"><a href="classxrpl_1_1base__uint.html">xrpl::base_uint< 256 ></a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1base__uint_html_a341fd439f9a09990fd34c6005d87f2ea"><div class="ttname"><a href="classxrpl_1_1base__uint.html#a341fd439f9a09990fd34c6005d87f2ea">xrpl::base_uint::parseHex</a></div><div class="ttdeci">constexpr bool parseHex(std::string_view sv)</div><div class="ttdoc">Parse a hex string into a base_uint.</div><div class="ttdef"><b>Definition</b> <a href="base__uint_8h_source.html#l00472">base_uint.h:472</a></div></div>
|
|
<div class="ttc" id="aget_if_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/variant/get_if.html">std::get_if</a></div><div class="ttdeci">T get_if(T... args)</div></div>
|
|
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div></div>
|
|
<div class="ttc" id="ais_same_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v</a></div><div class="ttdeci">T is_same_v</div></div>
|
|
<div class="ttc" id="amake_pair_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/pair/make_pair.html">std::make_pair</a></div><div class="ttdeci">T make_pair(T... args)</div></div>
|
|
<div class="ttc" id="anamespaceJson_html_a7d654b75c16a57007925868e38212b4eae8386dcfc36d1ae897745f7b4f77a1f6"><div class="ttname"><a href="namespaceJson.html#a7d654b75c16a57007925868e38212b4eae8386dcfc36d1ae897745f7b4f77a1f6">Json::objectValue</a></div><div class="ttdeci">@ objectValue</div><div class="ttdoc">object value (collection of name/value pairs).</div><div class="ttdef"><b>Definition</b> <a href="json__value_8h_source.html#l00028">json_value.h:27</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_1_1RPC_html_a06a08835183fbd9d9ece0de5094a2741"><div class="ttname"><a href="namespacexrpl_1_1RPC.html#a06a08835183fbd9d9ece0de5094a2741">xrpl::RPC::encodeCTID</a></div><div class="ttdeci">std::optional< std::string > encodeCTID(uint32_t ledgerSeq, uint32_t txnIndex, uint32_t networkID) noexcept</div><div class="ttdoc">Encodes ledger sequence, transaction index, and network ID into a CTID string.</div><div class="ttdef"><b>Definition</b> <a href="CTID_8h_source.html#l00034">CTID.h:34</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_1_1RPC_html_a480829f05d4404b510e7d6ebae919b37"><div class="ttname"><a href="namespacexrpl_1_1RPC.html#a480829f05d4404b510e7d6ebae919b37">xrpl::RPC::insertDeliverMax</a></div><div class="ttdeci">void insertDeliverMax(Json::Value &tx_json, TxType txnType, unsigned int apiVersion)</div><div class="ttdoc">Copy Amount field to DeliverMax field in transaction output JSON.</div><div class="ttdef"><b>Definition</b> <a href="DeliverMax_8cpp_source.html#l00009">DeliverMax.cpp:9</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_1_1RPC_html_a9069af30bba32012e3ebd7202f172287"><div class="ttname"><a href="namespacexrpl_1_1RPC.html#a9069af30bba32012e3ebd7202f172287">xrpl::RPC::insertMPTokenIssuanceID</a></div><div class="ttdeci">void insertMPTokenIssuanceID(Json::Value &response, std::shared_ptr< STTx const > const &transaction, TxMeta const &transactionMeta)</div><div class="ttdef"><b>Definition</b> <a href="MPTokenIssuanceID_8cpp_source.html#l00040">MPTokenIssuanceID.cpp:40</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_1_1RPC_html_aaf8b995a158f3f3025c2377fb6a8f2ac"><div class="ttname"><a href="namespacexrpl_1_1RPC.html#aaf8b995a158f3f3025c2377fb6a8f2ac">xrpl::RPC::insertNFTSyntheticInJson</a></div><div class="ttdeci">void insertNFTSyntheticInJson(Json::Value &, std::shared_ptr< STTx const > const &, TxMeta const &)</div><div class="ttdoc">Adds common synthetic fields to transaction-related JSON responses.</div><div class="ttdef"><b>Definition</b> <a href="NFTSyntheticSerializer_8cpp_source.html#l00015">NFTSyntheticSerializer.cpp:15</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_1_1RPC_html_ac67959639d055543cb96464ae3e40998"><div class="ttname"><a href="namespacexrpl_1_1RPC.html#ac67959639d055543cb96464ae3e40998">xrpl::RPC::decodeCTID</a></div><div class="ttdeci">std::optional< std::tuple< uint32_t, uint16_t, uint16_t > > decodeCTID(T const ctid) noexcept</div><div class="ttdoc">Decodes a CTID string or integer into its component parts.</div><div class="ttdef"><b>Definition</b> <a href="CTID_8h_source.html#l00061">CTID.h:61</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_1_1RPC_html_adacea89cc70d7238cdb1e5044c0d8932"><div class="ttname"><a href="namespacexrpl_1_1RPC.html#adacea89cc70d7238cdb1e5044c0d8932">xrpl::RPC::make_error</a></div><div class="ttdeci">Json::Value make_error(error_code_i code)</div><div class="ttdoc">Returns a new json object that reflects the error code.</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8cpp_source.html#l00190">ErrorCodes.cpp:190</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html"><div class="ttname"><a href="namespacexrpl.html">xrpl</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition</b> <a href="algorithm_8h_source.html#l00006">algorithm.h:6</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a06643a54f36bf47da9fa36db6f21ed1f"><div class="ttname"><a href="namespacexrpl.html#a06643a54f36bf47da9fa36db6f21ed1f">xrpl::populateJsonResponse</a></div><div class="ttdeci">Json::Value populateJsonResponse(std::pair< AccountTxResult, RPC::Status > const &res, AccountTxArgs const &args, RPC::JsonContext const &context)</div><div class="ttdef"><b>Definition</b> <a href="AccountTx_8cpp_source.html#l00254">AccountTx.cpp:254</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a34fabf5c9fc5c30e86623b6a5eb0ac7d"><div class="ttname"><a href="namespacexrpl.html#a34fabf5c9fc5c30e86623b6a5eb0ac7d">xrpl::range</a></div><div class="ttdeci">ClosedInterval< T > range(T low, T high)</div><div class="ttdoc">Create a closed range interval.</div><div class="ttdef"><b>Definition</b> <a href="RangeSet_8h_source.html#l00035">RangeSet.h:35</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a35c492b872b6d0c56aff5f535daa4a34"><div class="ttname"><a href="namespacexrpl.html#a35c492b872b6d0c56aff5f535daa4a34">xrpl::doTxJson</a></div><div class="ttdeci">Json::Value doTxJson(RPC::JsonContext &)</div><div class="ttdef"><b>Definition</b> <a href="Tx_8cpp_source.html#l00242">Tx.cpp:242</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a35ce7572092b98720a52fa343c6f2fa9"><div class="ttname"><a href="namespacexrpl.html#a35ce7572092b98720a52fa343c6f2fa9">xrpl::to_string</a></div><div class="ttdeci">std::string to_string(base_uint< Bits, Tag > const &a)</div><div class="ttdef"><b>Definition</b> <a href="base__uint_8h_source.html#l00598">base_uint.h:598</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a36b95700599f590017b5912e220baf5b"><div class="ttname"><a href="namespacexrpl.html#a36b95700599f590017b5912e220baf5b">xrpl::strHex</a></div><div class="ttdeci">std::string strHex(FwdIt begin, FwdIt end)</div><div class="ttdef"><b>Definition</b> <a href="strHex_8h_source.html#l00011">strHex.h:11</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a394321a5120f24d582baf7975c389cf2"><div class="ttname"><a href="namespacexrpl.html#a394321a5120f24d582baf7975c389cf2">xrpl::isValidated</a></div><div class="ttdeci">static bool isValidated(LedgerMaster &ledgerMaster, std::uint32_t seq, uint256 const &hash)</div><div class="ttdef"><b>Definition</b> <a href="Tx_8cpp_source.html#l00024">Tx.cpp:24</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a623b13db069e96e18ad90781dbedb9e6"><div class="ttname"><a href="namespacexrpl.html#a623b13db069e96e18ad90781dbedb9e6">xrpl::doTxHelp</a></div><div class="ttdeci">std::pair< TxResult, RPC::Status > doTxHelp(RPC::Context &context, TxArgs args)</div><div class="ttdef"><b>Definition</b> <a href="Tx_8cpp_source.html#l00055">Tx.cpp:55</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a86e91f18d65b451807479b486aabb7a9"><div class="ttname"><a href="namespacexrpl.html#a86e91f18d65b451807479b486aabb7a9">xrpl::ClosedInterval</a></div><div class="ttdeci">boost::icl::closed_interval< T > ClosedInterval</div><div class="ttdoc">A closed interval over the domain T.</div><div class="ttdef"><b>Definition</b> <a href="RangeSet_8h_source.html#l00026">RangeSet.h:26</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a8c276c0296ec751cf0e0eb51dbc7f72dac68271a63ddbc431c307beb7d2918275"><div class="ttname"><a href="namespacexrpl.html#a8c276c0296ec751cf0e0eb51dbc7f72dac68271a63ddbc431c307beb7d2918275">xrpl::QualityDirection::out</a></div><div class="ttdeci">@ out</div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_ab2aea6659695e209e9affb77e421f43e"><div class="ttname"><a href="namespacexrpl.html#ab2aea6659695e209e9affb77e421f43e">xrpl::rpcError</a></div><div class="ttdeci">Json::Value rpcError(error_code_i iError)</div><div class="ttdef"><b>Definition</b> <a href="RPCErr_8cpp_source.html#l00012">RPCErr.cpp:12</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_ab2fee6d98c0fcdead09c04e35ab453a6"><div class="ttname"><a href="namespacexrpl.html#ab2fee6d98c0fcdead09c04e35ab453a6">xrpl::TxSearched</a></div><div class="ttdeci">TxSearched</div><div class="ttdef"><b>Definition</b> <a href="Transaction_8h_source.html#l00039">Transaction.h:39</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_ab2fee6d98c0fcdead09c04e35ab453a6aa181a603769c1f98ad927e7367c7aa51"><div class="ttname"><a href="namespacexrpl.html#ab2fee6d98c0fcdead09c04e35ab453a6aa181a603769c1f98ad927e7367c7aa51">xrpl::TxSearched::all</a></div><div class="ttdeci">@ all</div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_ab2fee6d98c0fcdead09c04e35ab453a6aad921d60486366258809553a3db49a4a"><div class="ttname"><a href="namespacexrpl.html#ab2fee6d98c0fcdead09c04e35ab453a6aad921d60486366258809553a3db49a4a">xrpl::TxSearched::unknown</a></div><div class="ttdeci">@ unknown</div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_ab41ee65e1e577708be9c8244b970510c"><div class="ttname"><a href="namespacexrpl.html#ab41ee65e1e577708be9c8244b970510c">xrpl::to_string_iso</a></div><div class="ttdeci">std::string to_string_iso(date::sys_time< Duration > tp)</div><div class="ttdef"><b>Definition</b> <a href="chrono_8h_source.html#l00068">chrono.h:68</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_ac599741e6d4066bada11df4c7e8ad30aa7fa2267e9b1bf739a70bb1860ab2a99c"><div class="ttname"><a href="namespacexrpl.html#ac599741e6d4066bada11df4c7e8ad30aa7fa2267e9b1bf739a70bb1860ab2a99c">xrpl::HashPrefix::ledgerMaster</a></div><div class="ttdeci">@ ledgerMaster</div><div class="ttdoc">ledger master data for signing</div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_ade06aea604ced5ef1fd3c94ab573b646"><div class="ttname"><a href="namespacexrpl.html#ade06aea604ced5ef1fd3c94ab573b646">xrpl::makeSlice</a></div><div class="ttdeci">std::enable_if_t< std::is_same< T, char >::value||std::is_same< T, unsigned char >::value, Slice > makeSlice(std::array< T, N > const &a)</div><div class="ttdef"><b>Definition</b> <a href="Slice_8h_source.html#l00214">Slice.h:214</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_af6fadbc1b2101eff5fa78e7e2a50b76fa12eb33aa42913fa30e26716bc7d49fe8"><div class="ttname"><a href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa12eb33aa42913fa30e26716bc7d49fe8">xrpl::rpcTXN_NOT_FOUND</a></div><div class="ttdeci">@ rpcTXN_NOT_FOUND</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00061">ErrorCodes.h:61</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_af6fadbc1b2101eff5fa78e7e2a50b76fa270975c5354852d7b5248476859f5a65"><div class="ttname"><a href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa270975c5354852d7b5248476859f5a65">xrpl::rpcNOT_IMPL</a></div><div class="ttdeci">@ rpcNOT_IMPL</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00112">ErrorCodes.h:112</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_af6fadbc1b2101eff5fa78e7e2a50b76fa3a2074d7ae820678bf1602775c48ccd2"><div class="ttname"><a href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa3a2074d7ae820678bf1602775c48ccd2">xrpl::rpcEXCESSIVE_LGR_RANGE</a></div><div class="ttdeci">@ rpcEXCESSIVE_LGR_RANGE</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00116">ErrorCodes.h:116</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_af6fadbc1b2101eff5fa78e7e2a50b76fa6b446e051266fd73162852bd2c8a8f46"><div class="ttname"><a href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa6b446e051266fd73162852bd2c8a8f46">xrpl::rpcNOT_ENABLED</a></div><div class="ttdeci">@ rpcNOT_ENABLED</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00040">ErrorCodes.h:40</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_af6fadbc1b2101eff5fa78e7e2a50b76fa8b609b4c3b4c842d54d40038587c869b"><div class="ttname"><a href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa8b609b4c3b4c842d54d40038587c869b">xrpl::rpcDB_DESERIALIZATION</a></div><div class="ttdeci">@ rpcDB_DESERIALIZATION</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00115">ErrorCodes.h:115</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_af6fadbc1b2101eff5fa78e7e2a50b76fac4468894023ead83fcc6617aaddc8410"><div class="ttname"><a href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fac4468894023ead83fcc6617aaddc8410">xrpl::rpcWRONG_NETWORK</a></div><div class="ttdeci">@ rpcWRONG_NETWORK</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00031">ErrorCodes.h:31</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_af6fadbc1b2101eff5fa78e7e2a50b76faefd5dbecf662df8c7b2be66d6d0d68ec"><div class="ttname"><a href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76faefd5dbecf662df8c7b2be66d6d0d68ec">xrpl::rpcINVALID_PARAMS</a></div><div class="ttdeci">@ rpcINVALID_PARAMS</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00065">ErrorCodes.h:65</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_af6fadbc1b2101eff5fa78e7e2a50b76faf5f984508a7eb726be7ee1e5807c42c8"><div class="ttname"><a href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76faf5f984508a7eb726be7ee1e5807c42c8">xrpl::rpcINVALID_LGR_RANGE</a></div><div class="ttdeci">@ rpcINVALID_LGR_RANGE</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00117">ErrorCodes.h:117</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_af6fadbc1b2101eff5fa78e7e2a50b76faffe7dc93a7f5be3abc5d49473c0776c0"><div class="ttname"><a href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76faffe7dc93a7f5be3abc5d49473c0776c0">xrpl::rpcSUCCESS</a></div><div class="ttdeci">@ rpcSUCCESS</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00025">ErrorCodes.h:25</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="apair_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair</a></div></div>
|
|
<div class="ttc" id="aregex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/regex.html">regex</a></div></div>
|
|
<div class="ttc" id="ashared_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr< Transaction ></a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1JsonOptions_html_a248f4c1cb1b2fe05b58678f32307570ba1a97822ca421424f4fc466f09db227a6"><div class="ttname"><a href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570ba1a97822ca421424f4fc466f09db227a6">xrpl::JsonOptions::none</a></div><div class="ttdeci">@ none</div><div class="ttdef"><b>Definition</b> <a href="STBase_8h_source.html#l00024">STBase.h:24</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1JsonOptions_html_a248f4c1cb1b2fe05b58678f32307570ba97bf7ab51d5930c21ce7358fe6069523"><div class="ttname"><a href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570ba97bf7ab51d5930c21ce7358fe6069523">xrpl::JsonOptions::disable_API_prior_V2</a></div><div class="ttdeci">@ disable_API_prior_V2</div><div class="ttdef"><b>Definition</b> <a href="STBase_8h_source.html#l00026">STBase.h:26</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1JsonOptions_html_a248f4c1cb1b2fe05b58678f32307570bac8f7a6bcecbb04376c7b274031dd3a9b"><div class="ttname"><a href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570bac8f7a6bcecbb04376c7b274031dd3a9b">xrpl::JsonOptions::include_date</a></div><div class="ttdeci">@ include_date</div><div class="ttdef"><b>Definition</b> <a href="STBase_8h_source.html#l00025">STBase.h:25</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1RPC_1_1Context_html"><div class="ttname"><a href="structxrpl_1_1RPC_1_1Context.html">xrpl::RPC::Context</a></div><div class="ttdoc">The context of information needed to call an RPC.</div><div class="ttdef"><b>Definition</b> <a href="Context_8h_source.html#l00019">Context.h:20</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1RPC_1_1Context_html_a3819425c846e53ec0f1bcfa7407df609"><div class="ttname"><a href="structxrpl_1_1RPC_1_1Context.html#a3819425c846e53ec0f1bcfa7407df609">xrpl::RPC::Context::app</a></div><div class="ttdeci">Application & app</div><div class="ttdef"><b>Definition</b> <a href="Context_8h_source.html#l00022">Context.h:22</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1RPC_1_1Context_html_aa8b6cd5d5b9eb13f4a82b16979cbd3f0"><div class="ttname"><a href="structxrpl_1_1RPC_1_1Context.html#aa8b6cd5d5b9eb13f4a82b16979cbd3f0">xrpl::RPC::Context::apiVersion</a></div><div class="ttdeci">unsigned int apiVersion</div><div class="ttdef"><b>Definition</b> <a href="Context_8h_source.html#l00030">Context.h:30</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1RPC_1_1Context_html_ac2b68abc7374eacb59cd93164ccdbc77"><div class="ttname"><a href="structxrpl_1_1RPC_1_1Context.html#ac2b68abc7374eacb59cd93164ccdbc77">xrpl::RPC::Context::ledgerMaster</a></div><div class="ttdeci">LedgerMaster & ledgerMaster</div><div class="ttdef"><b>Definition</b> <a href="Context_8h_source.html#l00025">Context.h:25</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1RPC_1_1JsonContext_html"><div class="ttname"><a href="structxrpl_1_1RPC_1_1JsonContext.html">xrpl::RPC::JsonContext</a></div><div class="ttdef"><b>Definition</b> <a href="Context_8h_source.html#l00033">Context.h:34</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1RPC_1_1JsonContext_html_a30603f408d454be67d5250a62bf39287"><div class="ttname"><a href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">xrpl::RPC::JsonContext::params</a></div><div class="ttdeci">Json::Value params</div><div class="ttdef"><b>Definition</b> <a href="Context_8h_source.html#l00044">Context.h:44</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1RPC_1_1Status_html"><div class="ttname"><a href="structxrpl_1_1RPC_1_1Status.html">xrpl::RPC::Status</a></div><div class="ttdoc">Status represents the results of an operation that might fail.</div><div class="ttdef"><b>Definition</b> <a href="Status_8h_source.html#l00020">Status.h:21</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1TxArgs_html"><div class="ttname"><a href="structxrpl_1_1TxArgs.html">xrpl::TxArgs</a></div><div class="ttdef"><b>Definition</b> <a href="Tx_8cpp_source.html#l00046">Tx.cpp:47</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1TxArgs_html_a17cfc969f066c228cdcd63b777fa5d92"><div class="ttname"><a href="structxrpl_1_1TxArgs.html#a17cfc969f066c228cdcd63b777fa5d92">xrpl::TxArgs::ledgerRange</a></div><div class="ttdeci">std::optional< std::pair< uint32_t, uint32_t > > ledgerRange</div><div class="ttdef"><b>Definition</b> <a href="Tx_8cpp_source.html#l00051">Tx.cpp:51</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1TxArgs_html_a1e6053cb17e309b9b7829f9f3097228f"><div class="ttname"><a href="structxrpl_1_1TxArgs.html#a1e6053cb17e309b9b7829f9f3097228f">xrpl::TxArgs::ctid</a></div><div class="ttdeci">std::optional< std::pair< uint32_t, uint16_t > > ctid</div><div class="ttdef"><b>Definition</b> <a href="Tx_8cpp_source.html#l00049">Tx.cpp:49</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1TxArgs_html_a5b2fa57338c35a939ffa7fd3a784dd5b"><div class="ttname"><a href="structxrpl_1_1TxArgs.html#a5b2fa57338c35a939ffa7fd3a784dd5b">xrpl::TxArgs::binary</a></div><div class="ttdeci">bool binary</div><div class="ttdef"><b>Definition</b> <a href="Tx_8cpp_source.html#l00050">Tx.cpp:50</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1TxArgs_html_aaa83d4525d7b5a5d0638749a0e928632"><div class="ttname"><a href="structxrpl_1_1TxArgs.html#aaa83d4525d7b5a5d0638749a0e928632">xrpl::TxArgs::hash</a></div><div class="ttdeci">std::optional< uint256 > hash</div><div class="ttdef"><b>Definition</b> <a href="Tx_8cpp_source.html#l00048">Tx.cpp:48</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1TxResult_html"><div class="ttname"><a href="structxrpl_1_1TxResult.html">xrpl::TxResult</a></div><div class="ttdef"><b>Definition</b> <a href="Tx_8cpp_source.html#l00035">Tx.cpp:36</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1TxResult_html_a13b65610169b1cd00828047f524b8021"><div class="ttname"><a href="structxrpl_1_1TxResult.html#a13b65610169b1cd00828047f524b8021">xrpl::TxResult::ledgerHash</a></div><div class="ttdeci">std::optional< uint256 > ledgerHash</div><div class="ttdef"><b>Definition</b> <a href="Tx_8cpp_source.html#l00042">Tx.cpp:42</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1TxResult_html_a4c64d29cb85d02b5c59e51db150f1a17"><div class="ttname"><a href="structxrpl_1_1TxResult.html#a4c64d29cb85d02b5c59e51db150f1a17">xrpl::TxResult::txn</a></div><div class="ttdeci">Transaction::pointer txn</div><div class="ttdef"><b>Definition</b> <a href="Tx_8cpp_source.html#l00037">Tx.cpp:37</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1TxResult_html_a6d7b28667d98f01892d39dd73e42ece4"><div class="ttname"><a href="structxrpl_1_1TxResult.html#a6d7b28667d98f01892d39dd73e42ece4">xrpl::TxResult::searchedAll</a></div><div class="ttdeci">TxSearched searchedAll</div><div class="ttdef"><b>Definition</b> <a href="Tx_8cpp_source.html#l00043">Tx.cpp:43</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1TxResult_html_a98cc3346cefc10c4f53a49b32e11becc"><div class="ttname"><a href="structxrpl_1_1TxResult.html#a98cc3346cefc10c4f53a49b32e11becc">xrpl::TxResult::closeTime</a></div><div class="ttdeci">std::optional< NetClock::time_point > closeTime</div><div class="ttdef"><b>Definition</b> <a href="Tx_8cpp_source.html#l00041">Tx.cpp:41</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1TxResult_html_ac3829c7f0567b55bf096083c39821c02"><div class="ttname"><a href="structxrpl_1_1TxResult.html#ac3829c7f0567b55bf096083c39821c02">xrpl::TxResult::validated</a></div><div class="ttdeci">bool validated</div><div class="ttdef"><b>Definition</b> <a href="Tx_8cpp_source.html#l00039">Tx.cpp:39</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1TxResult_html_ac3e4e9ca6408c41ee4ad4202e6a7fd75"><div class="ttname"><a href="structxrpl_1_1TxResult.html#ac3e4e9ca6408c41ee4ad4202e6a7fd75">xrpl::TxResult::ctid</a></div><div class="ttdeci">std::optional< std::string > ctid</div><div class="ttdef"><b>Definition</b> <a href="Tx_8cpp_source.html#l00040">Tx.cpp:40</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1TxResult_html_ae0aeb6ae4720ea6fcc53e0716297674b"><div class="ttname"><a href="structxrpl_1_1TxResult.html#ae0aeb6ae4720ea6fcc53e0716297674b">xrpl::TxResult::meta</a></div><div class="ttdeci">std::variant< std::shared_ptr< TxMeta >, Blob > meta</div><div class="ttdef"><b>Definition</b> <a href="Tx_8cpp_source.html#l00038">Tx.cpp:38</a></div></div>
|
|
<div class="ttc" id="avariant_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/variant.html">std::variant</a></div></div>
|
|
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector< unsigned char ></a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
|
|
</small></address>
|
|
</body>
|
|
</html>
|