mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add RPCService, call the Manager from RPCServerHandler
This commit is contained in:
@@ -3697,7 +3697,16 @@ Json::Value RPCHandler::doRpcCommand (const std::string& strMethod, Json::Value
|
||||
// Provide the JSON-RPC method as the field "command" in the request.
|
||||
params["command"] = strMethod;
|
||||
|
||||
Json::Value jvResult = doCommand (params, iRole, loadType);
|
||||
Json::Value jvResult;
|
||||
#if RIPPLE_USE_RPC_SERVICE_MANAGER
|
||||
std::pair <bool, Json::Value> result (getApp().
|
||||
getRPCServiceManager().call (strMethod, params));
|
||||
if (result.first)
|
||||
jvResult = result.second;
|
||||
else
|
||||
#endif
|
||||
jvResult = doCommand (params, iRole, loadType);
|
||||
|
||||
|
||||
// Always report "status". On an error report the request as received.
|
||||
if (jvResult.isMember ("error"))
|
||||
|
||||
Reference in New Issue
Block a user