1#include <xrpld/app/ledger/LedgerMaster.h>
2#include <xrpld/rpc/Context.h>
3#include <xrpld/rpc/Role.h>
4#include <xrpld/rpc/detail/LegacyPathFind.h>
5#include <xrpld/rpc/detail/PathRequest.h>
6#include <xrpld/rpc/detail/PathRequestManager.h>
7#include <xrpld/rpc/detail/RPCLedgerHelpers.h>
8#include <xrpld/rpc/detail/Tuning.h>
10#include <xrpl/core/JobQueue.h>
11#include <xrpl/json/json_value.h>
12#include <xrpl/protocol/ErrorCodes.h>
13#include <xrpl/protocol/RPCErr.h>
14#include <xrpl/protocol/jss.h>
15#include <xrpl/resource/Fees.h>
127 if (!coroCopy->post())
141 context.
coro->yield();
161 result[fieldName] = std::move(jvResult[fieldName]);
Members getMemberNames() const
Return a list of the member names.
bool isMember(char const *key) const
Return true if the object has a member named key.
virtual Config & config()=0
std::chrono::seconds getValidatedLedgerAge()
std::shared_ptr< Ledger const > getClosedLedger()
json::Value doLegacyPathRequest(Resource::Consumer &consumer, std::shared_ptr< ReadView const > const &inLedger, json::Value const &request)
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)
json::Value doStatus(json::Value const &) override
std::shared_ptr< PathRequest > pointer
virtual PathRequestManager & getPathRequestManager()=0
virtual LedgerMaster & getLedgerMaster()=0
constexpr auto kMaxValidatedLedgerAge
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext const &context, json::Value &result)
Looks up a ledger from a request and fills a json::Value with ledger data.
Charge const kFeeHeavyBurdenRpc
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
json::Value rpcError(ErrorCodeI iError)
json::Value doRipplePathFind(RPC::JsonContext &)
bool isUnlimited(Role const &role)
ADMIN and IDENTIFIED roles shall have unlimited resources.
Resource::Charge & loadType
Resource::Consumer & consumer
LedgerMaster & ledgerMaster
std::shared_ptr< JobQueue::Coro > coro