Constant zebra_network::constants::MAX_ADDRS_IN_MESSAGE

source ยท
pub const MAX_ADDRS_IN_MESSAGE: usize = 1000;
Expand description

The maximum number of addresses allowed in an addr or addrv2 message.

addr:

The number of IP address entries up to a maximum of 1,000.

https://developer.bitcoin.org/reference/p2p_networking.html#addr

addrv2:

One message can contain up to 1,000 addresses. Clients MUST reject messages with more addresses.

https://zips.z.cash/zip-0155#specification