Skip to main content

next_poll_delay

Function next_poll_delay 

Source
pub fn next_poll_delay(reached_all_peers: bool) -> Duration
Expand description

How long to wait before polling peers for their supported module consensus version again.

The first poll of a freshly started process races the peers’ API servers binding and normally loses, so a round that failed to reach everyone is retried soon rather than after the full interval – otherwise activation is dead for that interval after every restart. A peer that stays unreachable is then polled at the short interval indefinitely, which is a few requests per minute.