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

isghe commented on this pull request.

> @@ -169,7 +169,7 @@ std::string CRPCTable::help(const std::string& strCommand, const JSONRPCRequest&
{
const CRPCCommand *pcmd = command.second;
std::string strMethod = pcmd->name;
— if ((strCommand != «» || pcmd->category == «hidden») && strMethod != strCommand)
+ if ((strCommand != «» || pcmd->category == RPCCategory::hidden) && strMethod != strCommand)

This is the volta stone of this refactoring: avoiding a strange behavior in the semantics of category identifiers.

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