1#include <xrpld/app/ledger/LedgerMaster.h>
2#include <xrpld/app/paths/PathRequests.h>
3#include <xrpld/rpc/Context.h>
4#include <xrpld/rpc/detail/LegacyPathFind.h>
5#include <xrpld/rpc/detail/RPCLedgerHelpers.h>
7#include <xrpl/protocol/RPCErr.h>
8#include <xrpl/resource/Fees.h>
119 if (!coroCopy->post())
133 context.
coro->yield();
134 jvResult = request->doStatus(context.
params);
153 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
virtual LedgerMaster & getLedgerMaster()=0
virtual PathRequests & getPathRequests()=0
std::shared_ptr< Ledger const > getClosedLedger()
std::chrono::seconds getValidatedLedgerAge()
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 doLegacyPathRequest(Resource::Consumer &consumer, std::shared_ptr< ReadView const > const &inLedger, Json::Value const &request)
auto constexpr maxValidatedLedgerAge
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext &context, Json::Value &result)
Look up a ledger from a request and fill a Json::Result with the data representing a ledger.
Charge const feeHeavyBurdenRPC
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Json::Value rpcError(int iError)
bool isUnlimited(Role const &role)
ADMIN and IDENTIFIED roles shall have unlimited resources.
Json::Value doRipplePathFind(RPC::JsonContext &)
std::shared_ptr< JobQueue::Coro > coro
Resource::Charge & loadType
LedgerMaster & ledgerMaster
Resource::Consumer & consumer