mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add type=rpc_response, so clients can identify replies to RPC commands.
This commit is contained in:
@@ -285,6 +285,7 @@ void WSConnection::doRPC(Json::Value& jvResult, Json::Value& jvRequest)
|
||||
jvRequest["params"],
|
||||
mHandler->getPublic() ? RPCHandler::GUEST : RPCHandler::ADMIN);
|
||||
|
||||
jvResult["type"] = "rpc_response";
|
||||
}else jvResult["error"] = "fieldNotCommand";
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user