Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/server.cpp
Show First 20 Lines • Show All 401 Lines • ▼ Show 20 Lines | |||||
bool RPCIsInWarmup(std::string *outStatus) { | bool RPCIsInWarmup(std::string *outStatus) { | ||||
LOCK(cs_rpcWarmup); | LOCK(cs_rpcWarmup); | ||||
if (outStatus) { | if (outStatus) { | ||||
*outStatus = rpcWarmupStatus; | *outStatus = rpcWarmupStatus; | ||||
} | } | ||||
return fRPCInWarmup; | return fRPCInWarmup; | ||||
} | } | ||||
bool IsDeprecatedRPCEnabled(const std::string &method) { | bool IsDeprecatedRPCEnabled(ArgsManager &args, const std::string &method) { | ||||
const std::vector<std::string> enabled_methods = | const std::vector<std::string> enabled_methods = | ||||
gArgs.GetArgs("-deprecatedrpc"); | args.GetArgs("-deprecatedrpc"); | ||||
return find(enabled_methods.begin(), enabled_methods.end(), method) != | return find(enabled_methods.begin(), enabled_methods.end(), method) != | ||||
enabled_methods.end(); | enabled_methods.end(); | ||||
} | } | ||||
static UniValue JSONRPCExecOne(Config &config, RPCServer &rpcServer, | static UniValue JSONRPCExecOne(Config &config, RPCServer &rpcServer, | ||||
JSONRPCRequest jreq, const UniValue &req) { | JSONRPCRequest jreq, const UniValue &req) { | ||||
UniValue rpc_result(UniValue::VOBJ); | UniValue rpc_result(UniValue::VOBJ); | ||||
▲ Show 20 Lines • Show All 170 Lines • Show Last 20 Lines |