20 #include <ripple/app/main/Application.h>
21 #include <ripple/net/RPCErr.h>
22 #include <ripple/nodestore/DatabaseShard.h>
23 #include <ripple/overlay/Overlay.h>
24 #include <ripple/protocol/ErrorCodes.h>
25 #include <ripple/protocol/jss.h>
26 #include <ripple/resource/Fees.h>
27 #include <ripple/rpc/Context.h>
52 if (
auto const& jv = context.
params[jss::limit])
54 if (!(jv.isUInt() || (jv.isInt() && jv.asInt() >= 0)))
73 jvResult[jss::public_key] =
toBase58(
75 jvResult[jss::complete_shards] = shardStore->getCompleteShards();
static constexpr std::uint32_t csHopLimit
const Charge feeMediumBurdenRPC
Resource::Charge & loadType
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
virtual NodeStore::DatabaseShard * getShardStore()=0
@ rpcREPORTING_UNSUPPORTED
Json::Value expected_field_error(std::string const &name, std::string const &type)
Json::Value doCrawlShards(RPC::JsonContext &context)
RPC command that reports stored shards by nodes.
virtual Config & config()=0
virtual std::pair< PublicKey, SecretKey > const & nodeIdentity()=0
bool isMember(const char *key) const
Return true if the object has a member named key.
virtual Json::Value crawlShards(bool pubKey, std::uint32_t hops)=0
Returns information reported to the crawl shard RPC command.
Json::Value rpcError(int iError, Json::Value jvResult)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
virtual Overlay & overlay()=0
const Charge feeHighBurdenRPC