mirror of
https://github.com/XRPLF/rippled.git
synced 2026-02-06 06:55:26 +00:00
deploy: 41c1be2bac
This commit is contained in:
@@ -105,7 +105,7 @@ $(document).ready(function() { init_codefold(0); });
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> <span class="comment">// ensure that the `feature` param is a string</span></div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> <span class="keywordflow">if</span> (!context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">params</a>[jss::feature].<a class="code hl_function" href="classJson_1_1Value.html#a71e1f82cf1c3eaf969d400dcffb163a6">isString</a>())</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">return</span> <a class="code hl_function" href="namespacexrpl.html#a7a2757753d0ad2a65951d78ad6ed408b">rpcError</a>(<a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76faefd5dbecf662df8c7b2be66d6d0d68ec">rpcINVALID_PARAMS</a>);</div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</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="l00025" name="l00025"></a><span class="lineno"> 25</span> }</div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> }</div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
|
||||
@@ -138,12 +138,12 @@ $(document).ready(function() { init_codefold(0); });
|
||||
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <span class="comment">// If the feature is not found by name, try to parse the `feature` param as</span></div>
|
||||
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="comment">// a feature ID. If that fails, return an error.</span></div>
|
||||
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keywordflow">if</span> (!feature && !feature.<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::feature].<a class="code hl_function" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
|
||||
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacexrpl.html#a7a2757753d0ad2a65951d78ad6ed408b">rpcError</a>(<a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa3826fa79887b8119307ac9ac8694ee4a">rpcBAD_FEATURE</a>);</div>
|
||||
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</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#af6fadbc1b2101eff5fa78e7e2a50b76fa3826fa79887b8119307ac9ac8694ee4a">rpcBAD_FEATURE</a>);</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> <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::vetoed))</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> (!<a class="code hl_function" href="namespacexrpl.html#a73af86bd8c7d96a36541a9049ec64467">isAdmin</a>)</div>
|
||||
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacexrpl.html#a7a2757753d0ad2a65951d78ad6ed408b">rpcError</a>(<a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa175232cd1d2e4359e67ac2f9d0fb777d">rpcNO_PERMISSION</a>);</div>
|
||||
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</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#af6fadbc1b2101eff5fa78e7e2a50b76fa175232cd1d2e4359e67ac2f9d0fb777d">rpcNO_PERMISSION</a>);</div>
|
||||
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> </div>
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="keywordflow">if</span> (context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">params</a>[jss::vetoed].<a class="code hl_function" href="classJson_1_1Value.html#ab693fb7b9b1595bb0adc49658bbf780d">asBool</a>())</div>
|
||||
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> table.veto(feature);</div>
|
||||
@@ -153,7 +153,7 @@ $(document).ready(function() { init_codefold(0); });
|
||||
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div>
|
||||
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a> jvReply = table.getJson(feature, <a class="code hl_function" href="namespacexrpl.html#a73af86bd8c7d96a36541a9049ec64467">isAdmin</a>);</div>
|
||||
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="keywordflow">if</span> (!jvReply)</div>
|
||||
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacexrpl.html#a7a2757753d0ad2a65951d78ad6ed408b">rpcError</a>(<a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa3826fa79887b8119307ac9ac8694ee4a">rpcBAD_FEATURE</a>);</div>
|
||||
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</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#af6fadbc1b2101eff5fa78e7e2a50b76fa3826fa79887b8119307ac9ac8694ee4a">rpcBAD_FEATURE</a>);</div>
|
||||
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> </div>
|
||||
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keyword">auto</span> m = majorities.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/container/map/find.html">find</a>(feature);</div>
|
||||
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <span class="keywordflow">if</span> (m != majorities.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/container/map/end.html">end</a>())</div>
|
||||
@@ -179,9 +179,9 @@ $(document).ready(function() { init_codefold(0); });
|
||||
<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_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#l00611">base_uint.h:611</a></div></div>
|
||||
<div class="ttc" id="anamespacexrpl_html_a73af86bd8c7d96a36541a9049ec64467"><div class="ttname"><a href="namespacexrpl.html#a73af86bd8c7d96a36541a9049ec64467">xrpl::isAdmin</a></div><div class="ttdeci">bool isAdmin(Port const &port, Json::Value const &params, beast::IP::Address const &remoteIp)</div><div class="ttdef"><b>Definition</b> <a href="Role_8cpp_source.html#l00066">Role.cpp:66</a></div></div>
|
||||
<div class="ttc" id="anamespacexrpl_html_a7a2757753d0ad2a65951d78ad6ed408b"><div class="ttname"><a href="namespacexrpl.html#a7a2757753d0ad2a65951d78ad6ed408b">xrpl::rpcError</a></div><div class="ttdeci">Json::Value rpcError(int 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_a7fb64528931ecb2e6dd4bdb6741bd1a7a73acd9a5972130b75066c82595a1fae3"><div class="ttname"><a href="namespacexrpl.html#a7fb64528931ecb2e6dd4bdb6741bd1a7a73acd9a5972130b75066c82595a1fae3">xrpl::Role::ADMIN</a></div><div class="ttdeci">@ ADMIN</div></div>
|
||||
<div class="ttc" id="anamespacexrpl_html_a9b107d933efa0cc58161fc01d5d930d6"><div class="ttname"><a href="namespacexrpl.html#a9b107d933efa0cc58161fc01d5d930d6">xrpl::getMajorityAmendments</a></div><div class="ttdeci">majorityAmendments_t getMajorityAmendments(ReadView const &view)</div><div class="ttdef"><b>Definition</b> <a href="View_8cpp_source.html#l01040">View.cpp:1040</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_accdd6910f0b7ddce6c909802626c9bbc"><div class="ttname"><a href="namespacexrpl.html#accdd6910f0b7ddce6c909802626c9bbc">xrpl::doFeature</a></div><div class="ttdeci">Json::Value doFeature(RPC::JsonContext &context)</div><div class="ttdef"><b>Definition</b> <a href="Feature1_8cpp_source.html#l00017">Feature1.cpp:17</a></div></div>
|
||||
<div class="ttc" id="anamespacexrpl_html_af6fadbc1b2101eff5fa78e7e2a50b76fa175232cd1d2e4359e67ac2f9d0fb777d"><div class="ttname"><a href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa175232cd1d2e4359e67ac2f9d0fb777d">xrpl::rpcNO_PERMISSION</a></div><div class="ttdeci">@ rpcNO_PERMISSION</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00034">ErrorCodes.h:34</a></div></div>
|
||||
<div class="ttc" id="anamespacexrpl_html_af6fadbc1b2101eff5fa78e7e2a50b76fa3826fa79887b8119307ac9ac8694ee4a"><div class="ttname"><a href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa3826fa79887b8119307ac9ac8694ee4a">xrpl::rpcBAD_FEATURE</a></div><div class="ttdeci">@ rpcBAD_FEATURE</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00076">ErrorCodes.h:76</a></div></div>
|
||||
|
||||
Reference in New Issue
Block a user