586 | @@ -587,7 +587,7 @@ static RPCHelpMan getnetworkinfo()
587 | {
588 | {RPCResult::Type::OBJ, "", "",
589 | {
590 | - {RPCResult::Type::STR, "name", "network (ipv4, ipv6 or onion)"},
591 | + {RPCResult::Type::STR, "name", "network (ipv4, ipv6, onion, i2p, cjdns, or not_publicly_routable)"},
unrelated nit: Could return a list of all networks in netbase and call Join(...) here? Would simplify future review if a network is added or the list added to another place.
done, it works but not sure if it's kosher to iterate over the enum instead of using a static, manually updated array
added regression coverage for the generated help
(it seems ok to iterate over the enum per the doc in src/netaddress.h)
* Keep these sequential starting from 0 and `NET_MAX` as the last entry.
* We have loops like `for (int i = 0; i < NET_MAX; i++)` that expect to iterate
* over all enum values and also `GetExtNetwork()` "extends" this enum by
* introducing standalone constants starting from `NET_MAX`.
*/
enum Network