mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 06:55:50 +00:00
deploy: 97712107b7
This commit is contained in:
@@ -149,14 +149,14 @@ $(function() {
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordflow">return</span> result;</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  </div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="comment">// If source account is not in the ledger it can't be authorized.</span></div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordflow">if</span> (!ledger-><a class="code" href="classripple_1_1ReadView.html#ac1d377c35a8332d069b09be8f4008dec">exists</a>(<a class="code" href="namespaceripple_1_1keylet.html#a077c127dec11c53e30092a92c29c9ae3">keylet::account</a>(srcAcct)))</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordflow">if</span> (!ledger-><a class="code" href="classripple_1_1ReadView.html#ac1d377c35a8332d069b09be8f4008dec">exists</a>(<a class="code" href="namespaceripple_1_1keylet.html#a50c370db96b4fdcdd202d9c2c38afce9">keylet::account</a>(srcAcct)))</div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  {</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <a class="code" href="namespaceripple_1_1RPC.html#a577bde9602a28f59e445c496f92a1ccf">RPC::inject_error</a>(<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a45e21d134aa6921065916fcbcb875877">rpcSRC_ACT_NOT_FOUND</a>, result);</div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordflow">return</span> result;</div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  }</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  </div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="comment">// If destination account is not in the ledger you can't deposit to it, eh?</span></div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keyword">auto</span> <span class="keyword">const</span> sleDest = ledger-><a class="code" href="classripple_1_1ReadView.html#a3351e0244f921234d5ba005a07ddf539">read</a>(<a class="code" href="namespaceripple_1_1keylet.html#a077c127dec11c53e30092a92c29c9ae3">keylet::account</a>(dstAcct));</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keyword">auto</span> <span class="keyword">const</span> sleDest = ledger-><a class="code" href="classripple_1_1ReadView.html#a3351e0244f921234d5ba005a07ddf539">read</a>(<a class="code" href="namespaceripple_1_1keylet.html#a50c370db96b4fdcdd202d9c2c38afce9">keylet::account</a>(dstAcct));</div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keywordflow">if</span> (!sleDest)</div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  {</div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <a class="code" href="namespaceripple_1_1RPC.html#a577bde9602a28f59e445c496f92a1ccf">RPC::inject_error</a>(<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932aec93776d4f8dd6d4dac1ac2a447d196a">rpcDST_ACT_NOT_FOUND</a>, result);</div>
|
||||
@@ -173,7 +173,7 @@ $(function() {
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  {</div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="comment">// See if a preauthorization entry is in the ledger.</span></div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keyword">auto</span> <span class="keyword">const</span> sleDepositAuth =</div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  ledger-><a class="code" href="classripple_1_1ReadView.html#a3351e0244f921234d5ba005a07ddf539">read</a>(<a class="code" href="namespaceripple_1_1keylet.html#a2925597431908348fccfc4c67a521457">keylet::depositPreauth</a>(dstAcct, srcAcct));</div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  ledger-><a class="code" href="classripple_1_1ReadView.html#a3351e0244f921234d5ba005a07ddf539">read</a>(<a class="code" href="namespaceripple_1_1keylet.html#a67984ec9aed38198ec52136ad2cd86c0">keylet::depositPreauth</a>(dstAcct, srcAcct));</div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  depositAuthorized = <span class="keyword">static_cast<</span><span class="keywordtype">bool</span><span class="keyword">></span>(sleDepositAuth);</div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  }</div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  }</div>
|
||||
@@ -192,18 +192,18 @@ $(function() {
|
||||
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a82ddebc5ec7a37ff38892487277bf9c4"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a82ddebc5ec7a37ff38892487277bf9c4">ripple::rpcINVALID_PARAMS</a></div><div class="ttdeci">@ rpcINVALID_PARAMS</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00084">ErrorCodes.h:84</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a45e21d134aa6921065916fcbcb875877"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a45e21d134aa6921065916fcbcb875877">ripple::rpcSRC_ACT_NOT_FOUND</a></div><div class="ttdeci">@ rpcSRC_ACT_NOT_FOUND</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00122">ErrorCodes.h:122</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1RPC_html_aaebfaaee35308269fab499f4e203a8c9"><div class="ttname"><a href="namespaceripple_1_1RPC.html#aaebfaaee35308269fab499f4e203a8c9">ripple::RPC::lookupLedger</a></div><div class="ttdeci">Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext &context, Json::Value &result)</div><div class="ttdoc">Look up a ledger from a request and fill a Json::Result with the data representing a ledger.</div><div class="ttdef"><b>Definition:</b> <a href="RPCHelpers_8cpp_source.html#l00481">RPCHelpers.cpp:481</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a4a9c7b33fef9015d6406302ef80b63c5a873a48eb9d8f66315874a318df664f05"><div class="ttname"><a href="namespaceripple.html#a4a9c7b33fef9015d6406302ef80b63c5a873a48eb9d8f66315874a318df664f05">ripple::lsfDepositAuth</a></div><div class="ttdeci">@ lsfDepositAuth</div><div class="ttdef"><b>Definition:</b> <a href="LedgerFormats_8h_source.html#l00140">LedgerFormats.h:140</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1keylet_html_a2925597431908348fccfc4c67a521457"><div class="ttname"><a href="namespaceripple_1_1keylet.html#a2925597431908348fccfc4c67a521457">ripple::keylet::depositPreauth</a></div><div class="ttdeci">static const depositPreauth_t depositPreauth</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8h_source.html#l00290">Indexes.h:290</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a4a9c7b33fef9015d6406302ef80b63c5a873a48eb9d8f66315874a318df664f05"><div class="ttname"><a href="namespaceripple.html#a4a9c7b33fef9015d6406302ef80b63c5a873a48eb9d8f66315874a318df664f05">ripple::lsfDepositAuth</a></div><div class="ttdeci">@ lsfDepositAuth</div><div class="ttdef"><b>Definition:</b> <a href="LedgerFormats_8h_source.html#l00112">LedgerFormats.h:112</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1RPC_html_aec2e1163b39a450d3917af9dd15b0f06"><div class="ttname"><a href="namespaceripple_1_1RPC.html#aec2e1163b39a450d3917af9dd15b0f06">ripple::RPC::missing_field_error</a></div><div class="ttdeci">Json::Value missing_field_error(std::string const &name)</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00236">ErrorCodes.h:236</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1base__uint_html"><div class="ttname"><a href="classripple_1_1base__uint.html">ripple::base_uint</a></div><div class="ttdef"><b>Definition:</b> <a href="base__uint_8h_source.html#l00063">base_uint.h:63</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1RPC_html_a7bad76b302b3dcc91dd60c10830d0968"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a7bad76b302b3dcc91dd60c10830d0968">ripple::RPC::expected_field_message</a></div><div class="ttdeci">std::string expected_field_message(std::string const &name, std::string const &type)</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00290">ErrorCodes.h:290</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1keylet_html_a077c127dec11c53e30092a92c29c9ae3"><div class="ttname"><a href="namespaceripple_1_1keylet.html#a077c127dec11c53e30092a92c29c9ae3">ripple::keylet::account</a></div><div class="ttdeci">static const account_t account</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8h_source.html#l00120">Indexes.h:120</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1keylet_html_a50c370db96b4fdcdd202d9c2c38afce9"><div class="ttname"><a href="namespaceripple_1_1keylet.html#a50c370db96b4fdcdd202d9c2c38afce9">ripple::keylet::account</a></div><div class="ttdeci">Keylet account(AccountID const &id) noexcept</div><div class="ttdoc">AccountID root.</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8cpp_source.html#l00120">Indexes.cpp:120</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_ac1d377c35a8332d069b09be8f4008dec"><div class="ttname"><a href="classripple_1_1ReadView.html#ac1d377c35a8332d069b09be8f4008dec">ripple::ReadView::exists</a></div><div class="ttdeci">virtual bool exists(Keylet const &k) const =0</div><div class="ttdoc">Determine if a state item exists.</div></div>
|
||||
<div class="ttc" id="aclassJson_1_1Value_html_ad6d4df2227321bab05e86667609a7fad"><div class="ttname"><a href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">Json::Value::isMember</a></div><div class="ttdeci">bool isMember(const char *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#l00932">json_value.cpp:932</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_a3351e0244f921234d5ba005a07ddf539"><div class="ttname"><a href="classripple_1_1ReadView.html#a3351e0244f921234d5ba005a07ddf539">ripple::ReadView::read</a></div><div class="ttdeci">virtual std::shared_ptr< SLE const > read(Keylet const &k) const =0</div><div class="ttdoc">Return the state item associated with a key.</div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932aec93776d4f8dd6d4dac1ac2a447d196a"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932aec93776d4f8dd6d4dac1ac2a447d196a">ripple::rpcDST_ACT_NOT_FOUND</a></div><div class="ttdeci">@ rpcDST_ACT_NOT_FOUND</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00105">ErrorCodes.h:105</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a6b6a06a6583007835014f79ba609ba3d"><div class="ttname"><a href="namespaceripple.html#a6b6a06a6583007835014f79ba609ba3d">ripple::doDepositAuthorized</a></div><div class="ttdeci">Json::Value doDepositAuthorized(RPC::JsonContext &context)</div><div class="ttdef"><b>Definition:</b> <a href="DepositAuthorized_8cpp_source.html#l00037">DepositAuthorized.cpp:37</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1keylet_html_a67984ec9aed38198ec52136ad2cd86c0"><div class="ttname"><a href="namespaceripple_1_1keylet.html#a67984ec9aed38198ec52136ad2cd86c0">ripple::keylet::depositPreauth</a></div><div class="ttdeci">Keylet depositPreauth(AccountID const &owner, AccountID const &preauthorized) noexcept</div><div class="ttdoc">A DepositPreauth.</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8cpp_source.html#l00260">Indexes.cpp:260</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1RPC_1_1JsonContext_html_a036b2c14552fbca49011c3d0e78017fa"><div class="ttname"><a href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">ripple::RPC::JsonContext::params</a></div><div class="ttdeci">Json::Value params</div><div class="ttdef"><b>Definition:</b> <a href="Context_8h_source.html#l00063">Context.h:63</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1RPC_html_a577bde9602a28f59e445c496f92a1ccf"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a577bde9602a28f59e445c496f92a1ccf">ripple::RPC::inject_error</a></div><div class="ttdeci">void inject_error(error_code_i code, JsonValue &json)</div><div class="ttdoc">Add or update the json update to reflect the error code.</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00186">ErrorCodes.h:186</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1RPC_html_a9dc259937a004b30e88f41a95756bee0"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a9dc259937a004b30e88f41a95756bee0">ripple::RPC::accountFromString</a></div><div class="ttdeci">Json::Value accountFromString(AccountID &result, std::string const &strIdent, bool bStrict)</div><div class="ttdef"><b>Definition:</b> <a href="RPCHelpers_8cpp_source.html#l00085">RPCHelpers.cpp:85</a></div></div>
|
||||
|
||||
Reference in New Issue
Block a user