20 #include <ripple/app/main/Application.h>
21 #include <ripple/app/misc/ValidatorList.h>
22 #include <ripple/net/RPCErr.h>
23 #include <ripple/protocol/ErrorCodes.h>
24 #include <ripple/protocol/jss.h>
25 #include <ripple/rpc/Context.h>
37 [&unl = obj[jss::unl]](
PublicKey const& publicKey,
bool trusted) {
40 node[jss::pubkey_validator] =
42 node[jss::trusted] = trusted;
44 unl.
append(std::move(node));
Json::Value doUnlList(RPC::JsonContext &)
void for_each_listed(std::function< void(PublicKey const &, bool)> func) const
Invokes the callback once for every listed validation public key.
Json::Value rpcError(int iError)
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
@ rpcREPORTING_UNSUPPORTED
Value & append(const Value &value)
Append value to array at the end.
@ objectValue
object value (collection of name/value pairs).
virtual Config & config()=0
virtual ValidatorList & validators()=0
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.