mirror of
https://github.com/Xahau/xahaud.git
synced 2026-06-02 16:26:37 +00:00
Small cleanups/fixes.
This commit is contained in:
7
rpc.cpp
7
rpc.cpp
@@ -229,11 +229,8 @@ std::string JSONRPCRequest(const std::string& strMethod, const Json::Value& para
|
||||
|
||||
std::string JSONRPCReply(const Json::Value& result, const Json::Value& error, const Json::Value& id)
|
||||
{
|
||||
Json::Value reply;
|
||||
if (!error.isNull())
|
||||
reply["result"]=Json::Value();
|
||||
else
|
||||
reply["result"]=result;
|
||||
Json::Value reply(Json::objectValue);
|
||||
reply["result"]=result;
|
||||
reply["error"]=error;
|
||||
reply["id"]=id;
|
||||
Json::FastWriter writer;
|
||||
|
||||
Reference in New Issue
Block a user