mirror of
https://github.com/XRPLF/clio.git
synced 2026-10-04 10:58:08 +00:00
@@ -121,7 +121,7 @@ public:
|
||||
verify(boost::json::value const& value, std::string_view key)
|
||||
{
|
||||
if (value.is_object() and value.as_object().contains(key.data()))
|
||||
return Error{Status{RippledError::rpcNOT_SUPPORTED, "Not supported field '" + std::string{key}}};
|
||||
return Error{Status{RippledError::rpcNOT_SUPPORTED, "Not supported field '" + std::string{key} + '\''}};
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
@@ -75,11 +75,8 @@ public:
|
||||
};
|
||||
|
||||
auto const checkLedgerForward = [&]() {
|
||||
return ctx.method == "ledger" and
|
||||
((request.contains("queue") and request.at("queue").is_bool() and request.at("queue").as_bool()) or
|
||||
(request.contains("full") and request.at("full").is_bool() and request.at("full").as_bool()) or
|
||||
(request.contains("accounts") and request.at("accounts").is_bool() and request.at("accounts").as_bool()
|
||||
));
|
||||
return ctx.method == "ledger" and request.contains("queue") and request.at("queue").is_bool() and
|
||||
request.at("queue").as_bool();
|
||||
};
|
||||
|
||||
return static_cast<bool>(checkAccountInfoForward() or checkLedgerForward());
|
||||
|
||||
Reference in New Issue
Block a user