Skip to main content

AT_OR_NEAR_TIP_THRESHOLD

Constant AT_OR_NEAR_TIP_THRESHOLD 

Source
pub const AT_OR_NEAR_TIP_THRESHOLD: HeightDiff = 1_000;
Expand description

The maximum estimated distance to the network chain tip that is considered “at or near tip”.

Allows for normal block-time variance and propagation delay. Considering the 75 second target for the time between blocks on mainnet, the node is considered far from the tip once the estimated distance exceeds this threshold, after approximately 20 hours and 51 minutes without a new block.

Since block production is approximately a Poisson process, this larger tolerance avoids enabling peer stall detection during normal long gaps between blocks.