1272 | @@ -1273,7 +1273,7 @@ RPCHelpMan getblockchaininfo()
1273 | RPCResult{
1274 | RPCResult::Type::OBJ, "", "",
1275 | {
1276 | - {RPCResult::Type::STR, "chain", "current network name (main, test, signet, regtest)"},
1277 | + {RPCResult::Type::STR, "chain", "current network name (main, test, testnet4, signet, regtest)"},
Would it make sense to have a #define LIST_CHAIN_NAMES "main, test, testnet4, signet, regtest" in src/chainparamsbase.h? Otherwise, the lines of code will have to be touched again when testnet3 is removed.
{RPCResult::Type::STR, "chain", "current network name (" LIST_CHAIN_NAMES ")"},
Yes, this list of chain names could be de-duplicated as a macro as maflcko suggested or something like a std::string ListChainTypes() (perhaps in src/util/chaintypes.h/cpp, src/chainparamsbase.h/cpp, src/common/messages.h/cpp, etc. or where appropriate).