20 #include <ripple/app/main/Application.h>
21 #include <ripple/app/misc/NetworkOPs.h>
22 #include <ripple/app/reporting/P2pProxy.h>
23 #include <ripple/json/json_value.h>
24 #include <ripple/net/RPCErr.h>
25 #include <ripple/protocol/jss.h>
26 #include <ripple/rpc/Context.h>
27 #include <ripple/rpc/Role.h>
28 #include <ripple/rpc/impl/TransactionSign.h>
46 auto const lf = proxied[jss::result][jss::info][jss::load_factor];
47 auto const vq = proxied[jss::result][jss::info][jss::validation_quorum];
48 ret[jss::info][jss::validation_quorum] = vq.
isNull() ? 1 : vq;
49 ret[jss::info][jss::load_factor] = lf.
isNull() ? 1 : lf;
virtual Json::Value getServerInfo(bool human, bool admin, bool counters)=0
bool isNull() const
isNull() tests to see if this field is null.
@ objectValue
object value (collection of name/value pairs).
virtual Config & config()=0
bool isMember(const char *key) const
Return true if the object has a member named key.
Json::Value forwardToP2p(RPC::JsonContext &context)
Forward a JSON request to a p2p node and return the response.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Json::Value doServerInfo(RPC::JsonContext &)