pub const ADDR_RESPONSE_LIMIT_DENOMINATOR: usize = 2;Expand description
The fraction of addresses Zebra sends in response to a Peers request.
Each response contains approximately:
address_book.len() / ADDR_RESPONSE_LIMIT_DENOMINATOR
addresses, selected at random from the address book.
ยงSecurity
This limit makes sure that Zebra does not reveal its entire address book
in a single Peers response.
This is temporarily set to 2 (up from 4) to speed up peer discovery, so nodes can recover more quickly from network fragmentation. This reveals more of the address book to each requester, see #11103 for the tradeoff discussion and the follow-up conditions for reverting or replacing this value.