Constant zebra_network::constants::EWMA_DEFAULT_RTT

source ·
pub const EWMA_DEFAULT_RTT: Duration;
Expand description

The default RTT estimate for peer responses.

We choose a high value for the default RTT, so that new peers must prove they are fast, before we prefer them to other peers. This is particularly important on testnet, which has a small number of peers, which are often slow.

Make the default RTT slightly higher than the request timeout.