Constant zebrad::components::sync::GENESIS_TIMEOUT_RETRY
source · const GENESIS_TIMEOUT_RETRY: Duration;
Expand description
Controls how long we wait to retry a failed attempt to download and verify the genesis block.
This timeout gives the crawler time to find better peers.
§Security
If this timeout is removed (or set too low), Zebra will immediately retry to download and verify the genesis block from its peers. This can cause a denial of service on those peers.
If this timeout is too short, old or buggy nodes will keep making useless network requests. If there are a lot of them, it could overwhelm the network.