Skip to main content

tip_block_delay

Function tip_block_delay 

Source
fn tip_block_delay(
    network: Option<&Network>,
    height: Height,
    seconds: f64,
) -> DistributionMetric
Expand description

Returns a tip block delay with the block’s height and, once the network is known, its network upgrade.

The network upgrade comes from the block’s own height, because the tip height that the node context reports lags behind a new tip, which would put an activation block in the previous upgrade.