zebra_network::constants

Constant MAX_ADDRS_IN_ADDRESS_BOOK

source
pub const MAX_ADDRS_IN_ADDRESS_BOOK: usize = _; // 5_000usize
Expand description

The maximum number of addresses Zebra will keep in its address book.

This is a tradeoff between:

  • revealing the whole address book in a few requests,
  • sending the maximum number of peer addresses, and
  • making sure the limit code actually gets run.