mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add unl_reset command.
This commit is contained in:
@@ -557,8 +557,14 @@ Json::Value RPCServer::doUnlList(Json::Value& params) {
|
||||
return theApp->getUNL().getUnlJson();
|
||||
}
|
||||
|
||||
// unl_reset
|
||||
Json::Value RPCServer::doUnlReset(Json::Value& params) {
|
||||
return "not implemented";
|
||||
if(!params.size())
|
||||
{
|
||||
theApp->getUNL().reset();
|
||||
return "removing nodes";
|
||||
}
|
||||
else return "invalid params";
|
||||
}
|
||||
|
||||
Json::Value RPCServer::doCommand(const std::string& command, Json::Value& params)
|
||||
|
||||
Reference in New Issue
Block a user