mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 23:15:52 +00:00
deploy: de0c527387
This commit is contained in:
@@ -152,53 +152,61 @@ $(function() {
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  JLOG(context.j.info()) << <span class="stringliteral">"Insufficient network mode for RPC: "</span></div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  << context.netOps.strOperatingMode();</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>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a128bdc6241c00a1d4486399d304c2d28">rpcNO_NETWORK</a>;</div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  }</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  </div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keywordflow">if</span> (context.app.getOPs().isAmendmentBlocked() &&</div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  (condition_required & <a class="code" href="namespaceripple_1_1RPC.html#a1ea15d2823ab0dfcdedc8fbc31c6a782a846308226fc9899c593d4634172bbd08">NEEDS_CURRENT_LEDGER</a> ||</div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  condition_required & <a class="code" href="namespaceripple_1_1RPC.html#a1ea15d2823ab0dfcdedc8fbc31c6a782acc08746617bab8b8e4a52c4b1ceab5a0">NEEDS_CLOSED_LEDGER</a>))</div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  {</div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a1c4319d23e52800c6dc951ed7d343cea">rpcAMENDMENT_BLOCKED</a>;</div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  }</div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">if</span> (!context.app.config().standalone() &&</div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  condition_required & <a class="code" href="namespaceripple_1_1RPC.html#a1ea15d2823ab0dfcdedc8fbc31c6a782a846308226fc9899c593d4634172bbd08">NEEDS_CURRENT_LEDGER</a>)</div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  {</div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordflow">if</span> (context.ledgerMaster.getValidatedLedgerAge() ></div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="namespaceripple_1_1RPC_1_1Tuning.html#a2b7f4c6a08082a4c41c526ef9916e3ac">Tuning::maxValidatedLedgerAge</a>)</div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  {</div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a74511028d6a24bc8826f5fc70ca61ef5">rpcNO_CURRENT</a>;</div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  }</div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  </div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keyword">auto</span> <span class="keyword">const</span> cID = context.ledgerMaster.getCurrentLedgerIndex();</div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keyword">auto</span> <span class="keyword">const</span> vID = context.ledgerMaster.getValidLedgerIndex();</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>  <span class="keywordflow">if</span> (cID + 10 < vID)</div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  {</div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  JLOG(context.j.debug())</div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  << <span class="stringliteral">"Current ledger ID("</span> << cID</div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  << <span class="stringliteral">") is less than validated ledger ID("</span> << vID << <span class="stringliteral">")"</span>;</div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a74511028d6a24bc8826f5fc70ca61ef5">rpcNO_CURRENT</a>;</div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  }</div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  }</div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  </div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="keywordflow">if</span> ((condition_required & <a class="code" href="namespaceripple_1_1RPC.html#a1ea15d2823ab0dfcdedc8fbc31c6a782acc08746617bab8b8e4a52c4b1ceab5a0">NEEDS_CLOSED_LEDGER</a>) &&</div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  !context.ledgerMaster.getClosedLedger())</div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  {</div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932abc5ca87666d140c5f56880e7a7448773">rpcNO_CLOSED</a>;</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordflow">if</span> (context.apiVersion == 1)</div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a128bdc6241c00a1d4486399d304c2d28">rpcNO_NETWORK</a>;</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932af301bbeaf5fcfb44db08132e6eae4ac2">rpcNOT_SYNCED</a>;</div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  }</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>  <span class="keywordflow">if</span> (context.app.getOPs().isAmendmentBlocked() &&</div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  (condition_required & <a class="code" href="namespaceripple_1_1RPC.html#a1ea15d2823ab0dfcdedc8fbc31c6a782a846308226fc9899c593d4634172bbd08">NEEDS_CURRENT_LEDGER</a> ||</div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  condition_required & <a class="code" href="namespaceripple_1_1RPC.html#a1ea15d2823ab0dfcdedc8fbc31c6a782acc08746617bab8b8e4a52c4b1ceab5a0">NEEDS_CLOSED_LEDGER</a>))</div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  {</div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a1c4319d23e52800c6dc951ed7d343cea">rpcAMENDMENT_BLOCKED</a>;</div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  }</div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  </div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordflow">if</span> (!context.app.config().standalone() &&</div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  condition_required & <a class="code" href="namespaceripple_1_1RPC.html#a1ea15d2823ab0dfcdedc8fbc31c6a782a846308226fc9899c593d4634172bbd08">NEEDS_CURRENT_LEDGER</a>)</div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  {</div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordflow">if</span> (context.ledgerMaster.getValidatedLedgerAge() ></div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <a class="code" href="namespaceripple_1_1RPC_1_1Tuning.html#a2b7f4c6a08082a4c41c526ef9916e3ac">Tuning::maxValidatedLedgerAge</a>)</div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  {</div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordflow">if</span> (context.apiVersion == 1)</div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a74511028d6a24bc8826f5fc70ca61ef5">rpcNO_CURRENT</a>;</div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932af301bbeaf5fcfb44db08132e6eae4ac2">rpcNOT_SYNCED</a>;</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>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keyword">auto</span> <span class="keyword">const</span> cID = context.ledgerMaster.getCurrentLedgerIndex();</div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keyword">auto</span> <span class="keyword">const</span> vID = context.ledgerMaster.getValidLedgerIndex();</div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  </div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">if</span> (cID + 10 < vID)</div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  {</div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  JLOG(context.j.debug())</div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  << <span class="stringliteral">"Current ledger ID("</span> << cID</div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  << <span class="stringliteral">") is less than validated ledger ID("</span> << vID << <span class="stringliteral">")"</span>;</div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="keywordflow">if</span> (context.apiVersion == 1)</div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a74511028d6a24bc8826f5fc70ca61ef5">rpcNO_CURRENT</a>;</div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932af301bbeaf5fcfb44db08132e6eae4ac2">rpcNOT_SYNCED</a>;</div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  }</div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  }</div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  </div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a6f69b339743d28bbc421fa3b31437173">rpcSUCCESS</a>;</div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> }</div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  </div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> } <span class="comment">// namespace RPC</span></div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> } <span class="comment">// namespace ripple</span></div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  </div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordflow">if</span> ((condition_required & <a class="code" href="namespaceripple_1_1RPC.html#a1ea15d2823ab0dfcdedc8fbc31c6a782acc08746617bab8b8e4a52c4b1ceab5a0">NEEDS_CLOSED_LEDGER</a>) &&</div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  !context.ledgerMaster.getClosedLedger())</div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  {</div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keywordflow">if</span> (context.apiVersion == 1)</div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932abc5ca87666d140c5f56880e7a7448773">rpcNO_CLOSED</a>;</div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932af301bbeaf5fcfb44db08132e6eae4ac2">rpcNOT_SYNCED</a>;</div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  }</div>
|
||||
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  </div>
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a6f69b339743d28bbc421fa3b31437173">rpcSUCCESS</a>;</div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> }</div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  </div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> } <span class="comment">// namespace RPC</span></div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> } <span class="comment">// namespace ripple</span></div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  </div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="preprocessor">#endif</span></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a128bdc6241c00a1d4486399d304c2d28"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a128bdc6241c00a1d4486399d304c2d28">ripple::rpcNO_NETWORK</a></div><div class="ttdeci">@ rpcNO_NETWORK</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00066">ErrorCodes.h:66</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1RPC_1_1JsonContext_html"><div class="ttname"><a href="structripple_1_1RPC_1_1JsonContext.html">ripple::RPC::JsonContext</a></div><div class="ttdef"><b>Definition:</b> <a href="Context_8h_source.html#l00052">Context.h:52</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1RPC_1_1JsonContext_html"><div class="ttname"><a href="structripple_1_1RPC_1_1JsonContext.html">ripple::RPC::JsonContext</a></div><div class="ttdef"><b>Definition:</b> <a href="Context_8h_source.html#l00053">Context.h:53</a></div></div>
|
||||
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div><div class="ttdoc">STL class.</div></div>
|
||||
<div class="ttc" id="astructripple_1_1RPC_1_1Handler_html_ac4d52f0713b55ef7417f3e53335efcf1"><div class="ttname"><a href="structripple_1_1RPC_1_1Handler.html#ac4d52f0713b55ef7417f3e53335efcf1">ripple::RPC::Handler::role_</a></div><div class="ttdeci">Role role_</div><div class="ttdef"><b>Definition:</b> <a href="Handler_8h_source.html#l00053">Handler.h:53</a></div></div>
|
||||
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/vector.html">vector</a></div></div>
|
||||
@@ -229,6 +237,7 @@ $(function() {
|
||||
<div class="ttc" id="anamespaceripple_1_1RPC_html_af6744f28487e67b2cfb2ca85611d553e"><div class="ttname"><a href="namespaceripple_1_1RPC.html#af6744f28487e67b2cfb2ca85611d553e">ripple::RPC::getHandler</a></div><div class="ttdeci">Handler const * getHandler(unsigned version, std::string const &name)</div><div class="ttdef"><b>Definition:</b> <a href="Handler_8cpp_source.html#l00255">Handler.cpp:255</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_ae08fe18f17b24699ce41d3898fbb8c2c"><div class="ttname"><a href="namespaceripple.html#ae08fe18f17b24699ce41d3898fbb8c2c">ripple::Role</a></div><div class="ttdeci">Role</div><div class="ttdoc">Indicates the level of administrative permission to grant.</div><div class="ttdef"><b>Definition:</b> <a href="Role_8h_source.html#l00040">Role.h:40</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1RPC_1_1Tuning_html_a2b7f4c6a08082a4c41c526ef9916e3ac"><div class="ttname"><a href="namespaceripple_1_1RPC_1_1Tuning.html#a2b7f4c6a08082a4c41c526ef9916e3ac">ripple::RPC::Tuning::maxValidatedLedgerAge</a></div><div class="ttdeci">constexpr auto maxValidatedLedgerAge</div><div class="ttdef"><b>Definition:</b> <a href="rpc_2impl_2Tuning_8h_source.html#l00059">rpc/impl/Tuning.h:59</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932af301bbeaf5fcfb44db08132e6eae4ac2"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932af301bbeaf5fcfb44db08132e6eae4ac2">ripple::rpcNOT_SYNCED</a></div><div class="ttdeci">@ rpcNOT_SYNCED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00067">ErrorCodes.h:67</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#l00145">json_value.h:145</a></div></div>
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
|
||||
Reference in New Issue
Block a user