CAddrMan.GetAddr() would previously limit the number and percentage of
addresses returned (to ADDRMAN_GETADDR_MAX (1000) and
ADDRMAN_GETADDR_MAX_PCT (23) respectively). Instead, make it the callers
responsibility to specify the maximum addresses and percentage they want
returned.
For net_processing, the maximums are MAX_ADDR_TO_SEND (1000) and
MAX_PCT_ADDR_TO_SEND (23). For rpc/net, the maximum is specified by the
client.
"\nReturn known addresses which can potentially be used to find new nodes in the network\n",
{
{"count",RPCArg::Type::NUM,/* default */"1","How many addresses to return. Limited to the smaller of "+ToString(ADDRMAN_GETADDR_MAX)+" or "+ToString(ADDRMAN_GETADDR_MAX_PCT)+"% of all known addresses."},
{"count",RPCArg::Type::NUM,/* default */"1","The maximum number of addresses to return. Specify 0 to return all known addresses."},