| 350 | } |
| 351 | |
| 352 | bool IsDeprecatedRPCEnabled(const std::string& method) |
| 353 | { |
| 354 | const std::vector<std::string> enabled_methods = gArgs.GetArgs("-deprecatedrpc"); |
| 355 | |
| 356 | return find(enabled_methods.begin(), enabled_methods.end(), method) != enabled_methods.end(); |
| 357 | } |
| 358 | |
| 359 | static UniValue JSONRPCExecOne(JSONRPCRequest jreq, const UniValue& req) |
| 360 | { |