Remove use of CRPCTable::appendCommand in wallet code

This commit does not change behavior.
This commit is contained in:
Russell Yanofsky
2017-07-31 11:46:13 -04:00
parent 91868e6288
commit 4e4d9e9f85
10 changed files with 128 additions and 40 deletions

View File

@@ -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) {