Constant zebra_network::constants::MAX_PEER_ACTIVE_FOR_GOSSIP

source ·
pub const MAX_PEER_ACTIVE_FOR_GOSSIP: Duration32;
Expand description

The maximum duration since a peer was last seen to consider it reachable.

This is used to prevent Zebra from gossiping addresses that are likely unreachable. Peers that have last been seen more than this duration ago will not be gossiped.

This is determined as a tradeoff between network health and network view leakage. From the Bitcoin protocol documentation:

“The typical presumption is that a node is likely to be active if it has been sending a message within the last three hours.”