Constant zebra_network::constants::MAX_PEER_DISK_CACHE_SIZE

source ·
pub const MAX_PEER_DISK_CACHE_SIZE: usize = 75;
Expand description

The maximum number of addresses in the peer disk cache.

This is chosen to be less than the number of active peers, and approximately the same as the number of seed peers returned by DNS. It is a tradeoff between fingerprinting attacks, DNS pollution risk, and cache pollution risk.