diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-10-19 15:01:33 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-10-19 15:15:49 +0200 |
| commit | 97c7f7362f9b59247753d6e8fa8022a6205f9c09 (patch) | |
| tree | 19dcb95789fea3e6d168a7b2e1ecb7d66a5e006f /src/test/rpc_tests.cpp | |
| parent | Merge #8972: [Qt] make warnings label selectable (jonasschnelli) (diff) | |
| parent | [RPC] pass HTTP basic authentication username to the JSONRequest object (diff) | |
| download | discoin-97c7f7362f9b59247753d6e8fa8022a6205f9c09.tar.xz discoin-97c7f7362f9b59247753d6e8fa8022a6205f9c09.zip | |
Merge #8788: [RPC] Give RPC commands more information about the RPC request
e7156ad [RPC] pass HTTP basic authentication username to the JSONRequest object (Jonas Schnelli)
69d1c25 [RPC] Give RPC commands more information about the RPC request (Jonas Schnelli)
23c32a9 rpc: Change JSONRPCRequest to JSONRPCRequestObj (Wladimir J. van der Laan)
Diffstat (limited to 'src/test/rpc_tests.cpp')
| -rw-r--r-- | src/test/rpc_tests.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/rpc_tests.cpp b/src/test/rpc_tests.cpp index a15915aad..a3d1a2558 100644 --- a/src/test/rpc_tests.cpp +++ b/src/test/rpc_tests.cpp @@ -24,11 +24,14 @@ UniValue CallRPC(string args) boost::split(vArgs, args, boost::is_any_of(" \t")); string strMethod = vArgs[0]; vArgs.erase(vArgs.begin()); - UniValue params = RPCConvertValues(strMethod, vArgs); + JSONRPCRequest request; + request.strMethod = strMethod; + request.params = RPCConvertValues(strMethod, vArgs); + request.fHelp = false; BOOST_CHECK(tableRPC[strMethod]); rpcfn_type method = tableRPC[strMethod]->actor; try { - UniValue result = (*method)(params, false); + UniValue result = (*method)(request); return result; } catch (const UniValue& objError) { |