[bitcoin/bitcoin] Refactoring CRPCCommand with enum category (#13945)

laanwj commented on this pull request.

> @@ -128,13 +128,29 @@ void RPCRunLater(const std::string& name, std::function func, int64_

typedef UniValue(*rpcfn_type)(const JSONRPCRequest& jsonRequest);

+typedef enum{

Please don’t add bitcoin-specific things (such as these categories) in `rpc/server.h`, the base RPC code is supposed to be independent of any specific use.

Добавить комментарий