| 337 | } |
| 338 | |
| 339 | bool 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 | |
| 346 | UniValue JSONRPCExec(const JSONRPCRequest& jreq, bool catch_errors) |
| 347 | { |