MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / IsDeprecatedRPCEnabled

Function IsDeprecatedRPCEnabled

src/rpc/server.cpp:339–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339bool IsDeprecatedRPCEnabled(const std::string& method)
340{
341 const std::vector<std::string> enabled_methods = gArgs.GetArgs("-deprecatedrpc");
342
343 return find(enabled_methods.begin(), enabled_methods.end(), method) != enabled_methods.end();
344}
345
346UniValue JSONRPCExec(const JSONRPCRequest& jreq, bool catch_errors)
347{

Callers 9

FUZZ_TARGETFunction · 0.85
getmininginfoFunction · 0.85
MempoolEntryDescriptionFunction · 0.85
mempool.cppFile · 0.85
MempoolInfoToJSONFunction · 0.85
getmempoolinfoFunction · 0.85
getblockchaininfoFunction · 0.85
getnetworkinfoFunction · 0.85
rpcEnableDeprecatedMethod · 0.85

Calls 3

GetArgsMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by 1

FUZZ_TARGETFunction · 0.68