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