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

promag commented on this pull request.

Kind of weak concept ACK, but current implementation is a bit off.

Please read developer-notes.md and update code according.

Also squash commits.

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

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

+typedef enum{

Use `enum class`.

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

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

+typedef enum{
+ eRPCCategory_blockchain = 0,

Don’t use tabs.

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