diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-09-29 18:48:27 +0200 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2016-10-19 14:30:14 +0200 |
| commit | 23c32a9694e119f957c124f4501294ae7a5fd99a (patch) | |
| tree | 37d8d20f815136a82d7e97cb3b8e77d14d42aa38 /src/bitcoin-cli.cpp | |
| parent | Merge #8972: [Qt] make warnings label selectable (jonasschnelli) (diff) | |
| download | discoin-23c32a9694e119f957c124f4501294ae7a5fd99a.tar.xz discoin-23c32a9694e119f957c124f4501294ae7a5fd99a.zip | |
rpc: Change JSONRPCRequest to JSONRPCRequestObj
This is more consistent with `JSONRPCReplyObj`.
Diffstat (limited to 'src/bitcoin-cli.cpp')
| -rw-r--r-- | src/bitcoin-cli.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp index 9d4c4e53b..2d66448d8 100644 --- a/src/bitcoin-cli.cpp +++ b/src/bitcoin-cli.cpp @@ -223,7 +223,7 @@ UniValue CallRPC(const string& strMethod, const UniValue& params) evhttp_add_header(output_headers, "Authorization", (std::string("Basic ") + EncodeBase64(strRPCUserColonPass)).c_str()); // Attach request data - std::string strRequest = JSONRPCRequest(strMethod, params, 1); + std::string strRequest = JSONRPCRequestObj(strMethod, params, 1).write() + "\n"; struct evbuffer * output_buffer = evhttp_request_get_output_buffer(req); assert(output_buffer); evbuffer_add(output_buffer, strRequest.data(), strRequest.size()); |