diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2017-07-31 11:46:13 -0400 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2019-03-05 10:20:00 -0400 |
commit | 4e4d9e9f85eaf9c3bec48559bd4cad3e8a9333ca (patch) | |
tree | 32ed7d798e1feaa8e1490d403f4d83760cddcd04 /src/test | |
parent | 91868e6288abf9d133620b585bc6de793a11e0e3 (diff) |
Remove use of CRPCTable::appendCommand in wallet code
This commit does not change behavior.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/rpc_tests.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/rpc_tests.cpp b/src/test/rpc_tests.cpp index ff48398925..9bb2bf551b 100644 --- a/src/test/rpc_tests.cpp +++ b/src/test/rpc_tests.cpp @@ -31,10 +31,9 @@ UniValue CallRPC(std::string args) request.strMethod = strMethod; request.params = RPCConvertValues(strMethod, vArgs); request.fHelp = false; - BOOST_CHECK(tableRPC[strMethod]); - rpcfn_type method = tableRPC[strMethod]->actor; + if (RPCIsInWarmup(nullptr)) SetRPCWarmupFinished(); try { - UniValue result = (*method)(request); + UniValue result = tableRPC.execute(request); return result; } catch (const UniValue& objError) { |