mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Remove use of CRPCTable::appendCommand in wallet code
This commit does not change behavior.
This commit is contained in:
parent
91868e6288
commit
4e4d9e9f85
10 changed files with 128 additions and 40 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue