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