mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-27 15:15:52 +00:00
@@ -112,17 +112,17 @@ FeatureHandler::process(FeatureHandler::Input input, Context const& ctx) const
|
||||
RpcSpecConstRef
|
||||
FeatureHandler::spec([[maybe_unused]] uint32_t apiVersion)
|
||||
{
|
||||
static RpcSpec const rpcSpec = {
|
||||
static RpcSpec const kRPC_SPEC = {
|
||||
{JS(feature), validation::Type<std::string>{}},
|
||||
{JS(vetoed),
|
||||
meta::WithCustomError{
|
||||
validation::NotSupported{},
|
||||
Status(RippledError::rpcNO_PERMISSION, "The admin portion of feature API is not available through Clio.")
|
||||
}},
|
||||
{JS(ledger_hash), validation::CustomValidators::Uint256HexStringValidator},
|
||||
{JS(ledger_index), validation::CustomValidators::LedgerIndexValidator},
|
||||
{JS(ledger_hash), validation::CustomValidators::uint256HexStringValidator},
|
||||
{JS(ledger_index), validation::CustomValidators::ledgerIndexValidator},
|
||||
};
|
||||
return rpcSpec;
|
||||
return kRPC_SPEC;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user