mirror of
https://github.com/XRPLF/rippled.git
synced 2026-02-03 13:35:25 +00:00
286 lines
46 KiB
HTML
286 lines
46 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: RipplePathFind.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">RipplePathFind.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/paths/PathRequests.h></span></div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="preprocessor">#include <xrpld/rpc/Context.h></span></div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include <xrpld/rpc/detail/LegacyPathFind.h></span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include <xrpld/rpc/detail/RPCLedgerHelpers.h></span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> </div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include <xrpl/protocol/RPCErr.h></span></div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include <xrpl/resource/Fees.h></span></div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span> </div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacexrpl.html">xrpl</a> {</div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> </div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment">// This interface is deprecated.</span></div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a></div>
|
|
<div class="foldopen" id="foldopen00014" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"><a class="line" href="namespacexrpl.html#a2231fd1a27091644ef563b12eeac1e0d"> 14</a></span><a class="code hl_function" href="namespacexrpl.html#a2231fd1a27091644ef563b12eeac1e0d">doRipplePathFind</a>(<a class="code hl_struct" href="structxrpl_1_1RPC_1_1JsonContext.html">RPC::JsonContext</a>& context)</div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span>{</div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</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_variable" href="classxrpl_1_1Config.html#a3297c874a7a644039997a4cf41a4034d">PATH_SEARCH_MAX</a> == 0)</div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</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#af6fadbc1b2101eff5fa78e7e2a50b76fa97873cc741794780ea5eef604550badc">rpcNOT_SUPPORTED</a>);</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> context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#a6ffe33d3c5b1974c798519eb84301dfa">loadType</a> = <a class="code hl_variable" href="namespacexrpl_1_1Resource.html#a356cf47ca4ba93250c9da2e4877fe7c9">Resource::feeHeavyBurdenRPC</a>;</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> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<ReadView const></a> lpLedger;</div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a> jvResult;</div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> </div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</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#a40902c440ca8e76103c967661621b20a">standalone</a>() &&</div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</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::ledger) &&</div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</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::ledger_index) &&</div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</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::ledger_hash))</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="comment">// No ledger specified, use pathfinding defaults</span></div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="comment">// and dispatch to pathfinding engine</span></div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</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#a67e24f718daa8a3aa2e0237bc0639616">getLedgerMaster</a>().<a class="code hl_function" href="classxrpl_1_1LedgerMaster.html#a1ad1683200cece5f01a0f7fa1c1e8920">getValidatedLedgerAge</a>() ></div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <a class="code hl_variable" href="namespacexrpl_1_1RPC_1_1Tuning.html#ac80fb839ea5ed6b1b2ba06155d413616">RPC::Tuning::maxValidatedLedgerAge</a>)</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> {</div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</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="l00035" name="l00035"></a><span class="lineno"> 35</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#af6fadbc1b2101eff5fa78e7e2a50b76fa1509c881a9cf0125b9df59e63d4be43e">rpcNO_NETWORK</a>);</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</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#af6fadbc1b2101eff5fa78e7e2a50b76faad5354f2aa55e41a5ec90ebda67aa9aa">rpcNOT_SYNCED</a>);</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> }</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> </div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">PathRequest::pointer</a> request;</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> lpLedger = 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#a7267651f4dace3c533af49861c19c757">getClosedLedger</a>();</div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="comment">// It doesn't look like there's much odd happening here, but you should</span></div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <span class="comment">// be aware this code runs in a JobQueue::Coro, which is a coroutine.</span></div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <span class="comment">// And we may be flipping around between threads. Here's an overview:</span></div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="comment">//</span></div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="comment">// 1. We're running doRipplePathFind() due to a call to</span></div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="comment">// ripple_path_find. doRipplePathFind() is currently running</span></div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <span class="comment">// inside of a JobQueue::Coro using a JobQueue thread.</span></div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="comment">//</span></div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="comment">// 2. doRipplePathFind's call to makeLegacyPathRequest() enqueues the</span></div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <span class="comment">// path-finding request. That request will (probably) run at some</span></div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="comment">// indeterminate future time on a (probably different) JobQueue</span></div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="comment">// thread.</span></div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <span class="comment">//</span></div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="comment">// 3. As a continuation from that path-finding JobQueue thread, the</span></div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="comment">// coroutine we're currently running in (!) is posted to the</span></div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="comment">// JobQueue. Because it is a continuation, that post won't</span></div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <span class="comment">// happen until the path-finding request completes.</span></div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <span class="comment">//</span></div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="comment">// 4. Once the continuation is enqueued, and we have reason to think</span></div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <span class="comment">// the path-finding job is likely to run, then the coroutine we're</span></div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="comment">// running in yield()s. That means it surrenders its thread in</span></div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="comment">// the JobQueue. The coroutine is suspended, but ready to run,</span></div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="comment">// because it is kept resident by a shared_ptr in the</span></div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <span class="comment">// path-finding continuation.</span></div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="comment">//</span></div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="comment">// 5. If all goes well then path-finding runs on a JobQueue thread</span></div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="comment">// and executes its continuation. The continuation posts this</span></div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="comment">// same coroutine (!) to the JobQueue.</span></div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="comment">//</span></div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="comment">// 6. When the JobQueue calls this coroutine, this coroutine resumes</span></div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="comment">// from the line below the coro->yield() and returns the</span></div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="comment">// path-finding result.</span></div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="comment">//</span></div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <span class="comment">// With so many moving parts, what could go wrong?</span></div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <span class="comment">//</span></div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="comment">// Just in terms of the JobQueue refusing to add jobs at shutdown</span></div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="comment">// there are two specific things that can go wrong.</span></div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="comment">//</span></div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="comment">// 1. The path-finding Job queued by makeLegacyPathRequest() might be</span></div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="comment">// rejected (because we're shutting down).</span></div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="comment">//</span></div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <span class="comment">// Fortunately this problem can be addressed by looking at the</span></div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <span class="comment">// return value of makeLegacyPathRequest(). If</span></div>
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <span class="comment">// makeLegacyPathRequest() cannot get a thread to run the path-find</span></div>
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <span class="comment">// on, then it returns an empty request.</span></div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="comment">//</span></div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <span class="comment">// 2. The path-finding job might run, but the Coro::post() might be</span></div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="comment">// rejected by the JobQueue (because we're shutting down).</span></div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <span class="comment">//</span></div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <span class="comment">// We handle this case by resuming (not posting) the Coro.</span></div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="comment">// By resuming the Coro, we allow the Coro to run to completion</span></div>
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="comment">// on the current thread instead of requiring that it run on a</span></div>
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="comment">// new thread from the JobQueue.</span></div>
|
|
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <span class="comment">//</span></div>
|
|
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <span class="comment">// Both of these failure modes are hard to recreate in a unit test</span></div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="comment">// because they are so dependent on inter-thread timing. However</span></div>
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <span class="comment">// the failure modes can be observed by synchronously (inside the</span></div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <span class="comment">// rippled source code) shutting down the application. The code to</span></div>
|
|
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> <span class="comment">// do so looks like this:</span></div>
|
|
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> <span class="comment">//</span></div>
|
|
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> <span class="comment">// context.app.signalStop();</span></div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <span class="comment">// while (! context.app.getJobQueue().jobCounter().joined()) { }</span></div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <span class="comment">//</span></div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <span class="comment">// The first line starts the process of shutting down the app.</span></div>
|
|
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> <span class="comment">// The second line waits until no more jobs can be added to the</span></div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <span class="comment">// JobQueue before letting the thread continue.</span></div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <span class="comment">//</span></div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="comment">// May 2017</span></div>
|
|
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> jvResult = 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#a93ef4989ada45a79c7aded2c3d6f2cb5">getPathRequests</a>().<a class="code hl_function" href="classxrpl_1_1PathRequests.html#a8a33d5257c367f0c76f183a7cf17a350">makeLegacyPathRequest</a>(</div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> request,</div>
|
|
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> [&context]() {</div>
|
|
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <span class="comment">// Copying the shared_ptr keeps the coroutine alive up</span></div>
|
|
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <span class="comment">// through the return. Otherwise the storage under the</span></div>
|
|
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <span class="comment">// captured reference could evaporate when we return from</span></div>
|
|
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <span class="comment">// coroCopy->resume(). This is not strictly necessary, but</span></div>
|
|
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="comment">// will make maintenance easier.</span></div>
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<JobQueue::Coro></a> coroCopy{context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#afcfd40c38f1c7c4c81c310d69636f0cc">coro</a>};</div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <span class="keywordflow">if</span> (!coroCopy->post())</div>
|
|
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> {</div>
|
|
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <span class="comment">// The post() failed, so we won't get a thread to let</span></div>
|
|
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> <span class="comment">// the Coro finish. We'll call Coro::resume() so the</span></div>
|
|
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="comment">// Coro can finish on our thread. Otherwise the</span></div>
|
|
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> <span class="comment">// application will hang on shutdown.</span></div>
|
|
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> coroCopy->resume();</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> },</div>
|
|
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#a9c548f84856871030ede616c26c8d55e">consumer</a>,</div>
|
|
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> lpLedger,</div>
|
|
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">params</a>);</div>
|
|
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <span class="keywordflow">if</span> (request)</div>
|
|
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> {</div>
|
|
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#afcfd40c38f1c7c4c81c310d69636f0cc">coro</a>->yield();</div>
|
|
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> jvResult = request->doStatus(context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">params</a>);</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> </div>
|
|
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <span class="keywordflow">return</span> jvResult;</div>
|
|
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> }</div>
|
|
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> </div>
|
|
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <span class="comment">// The caller specified a ledger</span></div>
|
|
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> jvResult = <a class="code hl_function" href="namespacexrpl_1_1RPC.html#ad2e38924289124233ca731bb06f68345">RPC::lookupLedger</a>(lpLedger, context);</div>
|
|
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <span class="keywordflow">if</span> (!lpLedger)</div>
|
|
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="keywordflow">return</span> jvResult;</div>
|
|
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> </div>
|
|
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <a class="code hl_class" href="classxrpl_1_1RPC_1_1LegacyPathFind.html">RPC::LegacyPathFind</a> lpf(<a class="code hl_function" href="namespacexrpl.html#ae1c6b83551d3602afddfff720cec2567">isUnlimited</a>(context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#aa793d4a228ce40b8c6dfc549b47e8334">role</a>), context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#a3819425c846e53ec0f1bcfa7407df609">app</a>);</div>
|
|
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <span class="keywordflow">if</span> (!lpf.<a class="code hl_function" href="classxrpl_1_1RPC_1_1LegacyPathFind.html#a010f114431a35fe5ef7fb5802b3a8658">isOk</a>())</div>
|
|
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</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#af6fadbc1b2101eff5fa78e7e2a50b76fa0ac8b64d5bade2a4d7731f99213cb8e7">rpcTOO_BUSY</a>);</div>
|
|
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> </div>
|
|
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> <span class="keyword">auto</span> result = 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#a93ef4989ada45a79c7aded2c3d6f2cb5">getPathRequests</a>().<a class="code hl_function" href="classxrpl_1_1PathRequests.html#ab26010899fcf90ad4a4dc8565a982ada">doLegacyPathRequest</a>(</div>
|
|
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#a9c548f84856871030ede616c26c8d55e">consumer</a>, lpLedger, context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">params</a>);</div>
|
|
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> </div>
|
|
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <span class="keywordflow">for</span> (<span class="keyword">auto</span>& fieldName : jvResult.<a class="code hl_function" href="classJson_1_1Value.html#a79d7725dce6260317333e69022367ac9">getMemberNames</a>())</div>
|
|
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> result[fieldName] = std::move(jvResult[fieldName]);</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> <span class="keywordflow">return</span> result;</div>
|
|
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> </div>
|
|
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span>} <span class="comment">// namespace xrpl</span></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_a79d7725dce6260317333e69022367ac9"><div class="ttname"><a href="classJson_1_1Value.html#a79d7725dce6260317333e69022367ac9">Json::Value::getMemberNames</a></div><div class="ttdeci">Members getMemberNames() const</div><div class="ttdoc">Return a list of the member names.</div><div class="ttdef"><b>Definition</b> <a href="json__value_8cpp_source.html#l01052">json_value.cpp:1052</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#l01030">json_value.cpp:1030</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_a93ef4989ada45a79c7aded2c3d6f2cb5"><div class="ttname"><a href="classxrpl_1_1Application.html#a93ef4989ada45a79c7aded2c3d6f2cb5">xrpl::Application::getPathRequests</a></div><div class="ttdeci">virtual PathRequests & getPathRequests()=0</div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1Config_html_a3297c874a7a644039997a4cf41a4034d"><div class="ttname"><a href="classxrpl_1_1Config.html#a3297c874a7a644039997a4cf41a4034d">xrpl::Config::PATH_SEARCH_MAX</a></div><div class="ttdeci">int PATH_SEARCH_MAX</div><div class="ttdef"><b>Definition</b> <a href="Config_8h_source.html#l00180">Config.h:180</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1Config_html_a40902c440ca8e76103c967661621b20a"><div class="ttname"><a href="classxrpl_1_1Config.html#a40902c440ca8e76103c967661621b20a">xrpl::Config::standalone</a></div><div class="ttdeci">bool standalone() 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_a1ad1683200cece5f01a0f7fa1c1e8920"><div class="ttname"><a href="classxrpl_1_1LedgerMaster.html#a1ad1683200cece5f01a0f7fa1c1e8920">xrpl::LedgerMaster::getValidatedLedgerAge</a></div><div class="ttdeci">std::chrono::seconds getValidatedLedgerAge()</div><div class="ttdef"><b>Definition</b> <a href="LedgerMaster_8cpp_source.html#l00171">LedgerMaster.cpp:171</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1LedgerMaster_html_a7267651f4dace3c533af49861c19c757"><div class="ttname"><a href="classxrpl_1_1LedgerMaster.html#a7267651f4dace3c533af49861c19c757">xrpl::LedgerMaster::getClosedLedger</a></div><div class="ttdeci">std::shared_ptr< Ledger const > getClosedLedger()</div><div class="ttdef"><b>Definition</b> <a href="LedgerMaster_8h_source.html#l00060">LedgerMaster.h:60</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1PathRequests_html_a8a33d5257c367f0c76f183a7cf17a350"><div class="ttname"><a href="classxrpl_1_1PathRequests.html#a8a33d5257c367f0c76f183a7cf17a350">xrpl::PathRequests::makeLegacyPathRequest</a></div><div class="ttdeci">Json::Value makeLegacyPathRequest(PathRequest::pointer &req, std::function< void(void)> completion, Resource::Consumer &consumer, std::shared_ptr< ReadView const > const &inLedger, Json::Value const &request)</div><div class="ttdef"><b>Definition</b> <a href="PathRequests_8cpp_source.html#l00253">PathRequests.cpp:253</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1PathRequests_html_ab26010899fcf90ad4a4dc8565a982ada"><div class="ttname"><a href="classxrpl_1_1PathRequests.html#ab26010899fcf90ad4a4dc8565a982ada">xrpl::PathRequests::doLegacyPathRequest</a></div><div class="ttdeci">Json::Value doLegacyPathRequest(Resource::Consumer &consumer, std::shared_ptr< ReadView const > const &inLedger, Json::Value const &request)</div><div class="ttdef"><b>Definition</b> <a href="PathRequests_8cpp_source.html#l00286">PathRequests.cpp:286</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1RPC_1_1LegacyPathFind_html"><div class="ttname"><a href="classxrpl_1_1RPC_1_1LegacyPathFind.html">xrpl::RPC::LegacyPathFind</a></div><div class="ttdef"><b>Definition</b> <a href="LegacyPathFind_8h_source.html#l00012">LegacyPathFind.h:13</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1RPC_1_1LegacyPathFind_html_a010f114431a35fe5ef7fb5802b3a8658"><div class="ttname"><a href="classxrpl_1_1RPC_1_1LegacyPathFind.html#a010f114431a35fe5ef7fb5802b3a8658">xrpl::RPC::LegacyPathFind::isOk</a></div><div class="ttdeci">bool isOk() const</div><div class="ttdef"><b>Definition</b> <a href="LegacyPathFind_8h_source.html#l00019">LegacyPathFind.h:19</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_1_1RPC_1_1Tuning_html_ac80fb839ea5ed6b1b2ba06155d413616"><div class="ttname"><a href="namespacexrpl_1_1RPC_1_1Tuning.html#ac80fb839ea5ed6b1b2ba06155d413616">xrpl::RPC::Tuning::maxValidatedLedgerAge</a></div><div class="ttdeci">auto constexpr maxValidatedLedgerAge</div><div class="ttdef"><b>Definition</b> <a href="src_2xrpld_2rpc_2detail_2Tuning_8h_source.html#l00049">src/xrpld/rpc/detail/Tuning.h:49</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_1_1RPC_html_ad2e38924289124233ca731bb06f68345"><div class="ttname"><a href="namespacexrpl_1_1RPC.html#ad2e38924289124233ca731bb06f68345">xrpl::RPC::lookupLedger</a></div><div class="ttdeci">Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext const &context, Json::Value &result)</div><div class="ttdoc">Looks up a ledger from a request and fills a Json::Value with ledger data.</div><div class="ttdef"><b>Definition</b> <a href="RPCLedgerHelpers_8cpp_source.html#l00355">RPCLedgerHelpers.cpp:355</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_1_1Resource_html_a356cf47ca4ba93250c9da2e4877fe7c9"><div class="ttname"><a href="namespacexrpl_1_1Resource.html#a356cf47ca4ba93250c9da2e4877fe7c9">xrpl::Resource::feeHeavyBurdenRPC</a></div><div class="ttdeci">Charge const feeHeavyBurdenRPC</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_a2231fd1a27091644ef563b12eeac1e0d"><div class="ttname"><a href="namespacexrpl.html#a2231fd1a27091644ef563b12eeac1e0d">xrpl::doRipplePathFind</a></div><div class="ttdeci">Json::Value doRipplePathFind(RPC::JsonContext &)</div><div class="ttdef"><b>Definition</b> <a href="RipplePathFind_8cpp_source.html#l00014">RipplePathFind.cpp:14</a></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_ae1c6b83551d3602afddfff720cec2567"><div class="ttname"><a href="namespacexrpl.html#ae1c6b83551d3602afddfff720cec2567">xrpl::isUnlimited</a></div><div class="ttdeci">bool isUnlimited(Role const &role)</div><div class="ttdoc">ADMIN and IDENTIFIED roles shall have unlimited resources.</div><div class="ttdef"><b>Definition</b> <a href="Role_8cpp_source.html#l00106">Role.cpp:106</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_af6fadbc1b2101eff5fa78e7e2a50b76fa0ac8b64d5bade2a4d7731f99213cb8e7"><div class="ttname"><a href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa0ac8b64d5bade2a4d7731f99213cb8e7">xrpl::rpcTOO_BUSY</a></div><div class="ttdeci">@ rpcTOO_BUSY</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00037">ErrorCodes.h:37</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_af6fadbc1b2101eff5fa78e7e2a50b76fa1509c881a9cf0125b9df59e63d4be43e"><div class="ttname"><a href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa1509c881a9cf0125b9df59e63d4be43e">xrpl::rpcNO_NETWORK</a></div><div class="ttdeci">@ rpcNO_NETWORK</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00047">ErrorCodes.h:47</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_af6fadbc1b2101eff5fa78e7e2a50b76fa97873cc741794780ea5eef604550badc"><div class="ttname"><a href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa97873cc741794780ea5eef604550badc">xrpl::rpcNOT_SUPPORTED</a></div><div class="ttdeci">@ rpcNOT_SUPPORTED</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00113">ErrorCodes.h:113</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_af6fadbc1b2101eff5fa78e7e2a50b76faad5354f2aa55e41a5ec90ebda67aa9aa"><div class="ttname"><a href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76faad5354f2aa55e41a5ec90ebda67aa9aa">xrpl::rpcNOT_SYNCED</a></div><div class="ttdeci">@ rpcNOT_SYNCED</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00048">ErrorCodes.h:48</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</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_a6ffe33d3c5b1974c798519eb84301dfa"><div class="ttname"><a href="structxrpl_1_1RPC_1_1Context.html#a6ffe33d3c5b1974c798519eb84301dfa">xrpl::RPC::Context::loadType</a></div><div class="ttdeci">Resource::Charge & loadType</div><div class="ttdef"><b>Definition</b> <a href="Context_8h_source.html#l00023">Context.h:23</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1RPC_1_1Context_html_a9c548f84856871030ede616c26c8d55e"><div class="ttname"><a href="structxrpl_1_1RPC_1_1Context.html#a9c548f84856871030ede616c26c8d55e">xrpl::RPC::Context::consumer</a></div><div class="ttdeci">Resource::Consumer & consumer</div><div class="ttdef"><b>Definition</b> <a href="Context_8h_source.html#l00026">Context.h:26</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1RPC_1_1Context_html_aa793d4a228ce40b8c6dfc549b47e8334"><div class="ttname"><a href="structxrpl_1_1RPC_1_1Context.html#aa793d4a228ce40b8c6dfc549b47e8334">xrpl::RPC::Context::role</a></div><div class="ttdeci">Role role</div><div class="ttdef"><b>Definition</b> <a href="Context_8h_source.html#l00027">Context.h:27</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_1Context_html_afcfd40c38f1c7c4c81c310d69636f0cc"><div class="ttname"><a href="structxrpl_1_1RPC_1_1Context.html#afcfd40c38f1c7c4c81c310d69636f0cc">xrpl::RPC::Context::coro</a></div><div class="ttdeci">std::shared_ptr< JobQueue::Coro > coro</div><div class="ttdef"><b>Definition</b> <a href="Context_8h_source.html#l00028">Context.h:28</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><!-- 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>
|