mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 15:39:05 +01:00
Remove use of CRPCTable::appendCommand in wallet code
This commit does not change behavior.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user