zebrad::components::inbound::cached_peer_addr_response

Constant CACHED_ADDRS_REFRESH_INTERVAL

source
pub const CACHED_ADDRS_REFRESH_INTERVAL: Duration;
Expand description

The minimum duration that a CachedPeerAddrResponse is considered fresh before the inbound service should get new peer addresses from the address book to send as a GetAddr response.

Cached responses are considered stale and should be cleared after twice this duration.