1#include <xrpld/rpc/Context.h>
2#include <xrpld/rpc/handlers/Handlers.h>
4#include <xrpl/json/json_value.h>
5#include <xrpl/protocol/ErrorCodes.h>
6#include <xrpl/protocol/PublicKey.h>
7#include <xrpl/protocol/RPCErr.h>
8#include <xrpl/protocol/jss.h>
17 auto const& params = context.
params;
20 if (!params.isMember(jss::public_key))
22 if (!params[jss::public_key].isString())
36 result[jss::previous] = previous->toJson();
std::optional< PeerReservation > erase(PublicKey const &nodeId)
virtual PeerReservationTable & getPeerReservations()=0
@ objectValue
object value (collection of name/value pairs).
Json::Value expected_field_error(std::string const &name, std::string const &type)
Json::Value missing_field_error(std::string const &name)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Json::Value doPeerReservationsDel(RPC::JsonContext &context)
Json::Value rpcError(error_code_i iError)