diff options
| author | Jonas Schnelli <[email protected]> | 2016-09-22 09:46:41 +0200 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2016-10-19 14:42:08 +0200 |
| commit | 69d1c25768a8649bfc7eb8e9c35b8fe9874ac9fc (patch) | |
| tree | 88c4ef2720fc4e88d080c6fc480c341bf118a985 /src/rest.cpp | |
| parent | rpc: Change JSONRPCRequest to JSONRPCRequestObj (diff) | |
| download | discoin-69d1c25768a8649bfc7eb8e9c35b8fe9874ac9fc.tar.xz discoin-69d1c25768a8649bfc7eb8e9c35b8fe9874ac9fc.zip | |
[RPC] Give RPC commands more information about the RPC request
Diffstat (limited to 'src/rest.cpp')
| -rw-r--r-- | src/rest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rest.cpp b/src/rest.cpp index c81559212..707dfe698 100644 --- a/src/rest.cpp +++ b/src/rest.cpp @@ -274,7 +274,7 @@ static bool rest_block_notxdetails(HTTPRequest* req, const std::string& strURIPa } // A bit of a hack - dependency on a function defined in rpc/blockchain.cpp -UniValue getblockchaininfo(const UniValue& params, bool fHelp); +UniValue getblockchaininfo(const JSONRPCRequest& request); static bool rest_chaininfo(HTTPRequest* req, const std::string& strURIPart) { @@ -285,8 +285,8 @@ static bool rest_chaininfo(HTTPRequest* req, const std::string& strURIPart) switch (rf) { case RF_JSON: { - UniValue rpcParams(UniValue::VARR); - UniValue chainInfoObject = getblockchaininfo(rpcParams, false); + JSONRPCRequest jsonRequest; + UniValue chainInfoObject = getblockchaininfo(jsonRequest); string strJSON = chainInfoObject.write() + "\n"; req->WriteHeader("Content-Type", "application/json"); req->WriteReply(HTTP_OK, strJSON); |