Currently addrman only allows a maximum of 1000 records or 23% of all records to be returned in a call to GetAddr()
. Relax this limit and have the client specify the max records they want. For p2p, behaviour is unchanged (but the rate limiting is set inside net_processing, where it belongs). For RPC, getnodeaddresses
can now return the complete addrman, which is helpful for testing and monitoring.
Also add a test-only RPC addpeeraddress
, which adds an IP address:port to addrman. This is helpful for testing (eg #18991).