mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Refactor away RPCHandler::doRpcCommand
This commit is contained in:
committed by
Vinnie Falco
parent
fc9a23d6d4
commit
c72db5fa5f
@@ -68,10 +68,12 @@ void startServer ()
|
||||
if (!getConfig ().QUIET)
|
||||
std::cerr << "Startup RPC: " << jvCommand << std::endl;
|
||||
|
||||
RPCHandler rhHandler (getApp().getOPs ());
|
||||
|
||||
Resource::Charge loadType = Resource::feeReferenceRPC;
|
||||
Json::Value jvResult = rhHandler.doCommand (jvCommand, Role::ADMIN, loadType);
|
||||
RPC::Context context {
|
||||
jvCommand, loadType, getApp().getOPs (), Role::ADMIN};
|
||||
|
||||
Json::Value jvResult;
|
||||
RPC::doCommand (context, jvResult);
|
||||
|
||||
if (!getConfig ().QUIET)
|
||||
std::cerr << "Result: " << jvResult << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user