xrpld
Loading...
Searching...
No Matches
BlackList.cpp
1#include <xrpld/app/main/Application.h>
2#include <xrpld/rpc/Context.h>
3
4#include <xrpl/json/json_value.h>
5#include <xrpl/protocol/jss.h>
6#include <xrpl/resource/ResourceManager.h>
7
8namespace xrpl {
9
10json::Value
12{
13 auto& rm = context.app.getResourceManager();
14 if (context.params.isMember(jss::threshold))
15 {
16 return rm.getJson(context.params[jss::threshold].asInt());
17 }
18
19 return rm.getJson();
20}
21
22} // namespace xrpl
bool isMember(char const *key) const
Return true if the object has a member named key.
Int asInt() const
virtual json::Value getJson()=0
Extract consumer information for reporting.
virtual Resource::Manager & getResourceManager()=0
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
json::Value doBlackList(RPC::JsonContext &context)
Definition BlackList.cpp:11
Application & app
Definition Context.h:21
json::Value params
Definition Context.h:43