rippled
Loading...
Searching...
No Matches
ConsensusInfo.cpp
1#include <xrpld/app/misc/NetworkOPs.h>
2#include <xrpld/rpc/Context.h>
3
4#include <xrpl/json/json_value.h>
5#include <xrpl/protocol/ErrorCodes.h>
6#include <xrpl/protocol/jss.h>
7
8namespace ripple {
9
12{
14
15 ret[jss::info] = context.netOps.getConsensusInfo();
16
17 return ret;
18}
19
20} // namespace ripple
Represents a JSON value.
Definition json_value.h:131
virtual Json::Value getConsensusInfo()=0
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Json::Value doConsensusInfo(RPC::JsonContext &context)
NetworkOPs & netOps
Definition Context.h:24