Skip to main content

halving_interval

Function halving_interval 

Source
pub fn halving_interval(height: Height, network: &Network) -> HeightDiff
Expand description

HalvingInterval(height): the number of blocks in the halving period containing height.

The halving-preserving issuance ZIP defines this as PostNU7HalvingInterval where ZIP 218’s 25-second blocks are active, and PostBlossomHalvingInterval otherwise.