aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/protocol.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2016-09-29 18:48:27 +0200
committerJonas Schnelli <[email protected]>2016-10-19 14:30:14 +0200
commit23c32a9694e119f957c124f4501294ae7a5fd99a (patch)
tree37d8d20f815136a82d7e97cb3b8e77d14d42aa38 /src/rpc/protocol.cpp
parentMerge #8972: [Qt] make warnings label selectable (jonasschnelli) (diff)
downloaddiscoin-23c32a9694e119f957c124f4501294ae7a5fd99a.tar.xz
discoin-23c32a9694e119f957c124f4501294ae7a5fd99a.zip
rpc: Change JSONRPCRequest to JSONRPCRequestObj
This is more consistent with `JSONRPCReplyObj`.
Diffstat (limited to 'src/rpc/protocol.cpp')
-rw-r--r--src/rpc/protocol.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/protocol.cpp b/src/rpc/protocol.cpp
index bb885bb5a..ec186f4fc 100644
--- a/src/rpc/protocol.cpp
+++ b/src/rpc/protocol.cpp
@@ -26,13 +26,13 @@ using namespace std;
* 1.2 spec: http://jsonrpc.org/historical/json-rpc-over-http.html
*/
-string JSONRPCRequest(const string& strMethod, const UniValue& params, const UniValue& id)
+UniValue JSONRPCRequestObj(const string& strMethod, const UniValue& params, const UniValue& id)
{
UniValue request(UniValue::VOBJ);
request.push_back(Pair("method", strMethod));
request.push_back(Pair("params", params));
request.push_back(Pair("id", id));
- return request.write() + "\n";
+ return request;
}
UniValue JSONRPCReplyObj(const UniValue& result, const UniValue& error, const UniValue& id)