20 #include <ripple/app/ledger/LedgerMaster.h>
21 #include <ripple/app/paths/PathRequests.h>
22 #include <ripple/net/RPCErr.h>
23 #include <ripple/resource/Fees.h>
24 #include <ripple/rpc/Context.h>
25 #include <ripple/rpc/impl/LegacyPathFind.h>
26 #include <ripple/rpc/impl/RPCHelpers.h>
137 if (!coroCopy->post())
151 context.
coro->yield();
152 jvResult = request->doStatus(context.
params);
171 result[fieldName] = std::move(jvResult[fieldName]);
Json::Value doLegacyPathRequest(Resource::Consumer &consumer, std::shared_ptr< ReadView const > const &inLedger, Json::Value const &request)
Json::Value rpcError(int iError)
Json::Value doRipplePathFind(RPC::JsonContext &)
Resource::Charge & loadType
LedgerMaster & ledgerMaster
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)
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.
Resource::Consumer & consumer
virtual LedgerMaster & getLedgerMaster()=0
virtual Config & config()=0
std::shared_ptr< JobQueue::Coro > coro
bool isMember(const char *key) const
Return true if the object has a member named key.
virtual PathRequests & getPathRequests()=0
bool isUnlimited(Role const &role)
ADMIN and IDENTIFIED roles shall have unlimited resources.
std::chrono::seconds getValidatedLedgerAge()
std::shared_ptr< Ledger const > getClosedLedger()
Members getMemberNames() const
Return a list of the member names.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
const Charge feeHighBurdenRPC
constexpr auto maxValidatedLedgerAge