components:: sync:: SYNC_RESTART_TIMEOUT
pub(in components::sync) const SYNC_RESTART_TIMEOUT: Duration;
Controls how long we wait to restart syncing after finishing a sync run.
This timeout should be long enough to:
- allow zcashd peers to process pending requests. If the node only has a few peers, we want to clear as much peer state as possible. In particular, zcashd sends "next block range" hints, based on zcashd's internal model of our sync progress. But we want to discard these hints, so they don't get confused with ObtainTips and ExtendTips responses.
This timeout is particularly important on instances with slow or unreliable networks, and on testnet, which has a small number of slow peers.