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