zebra_consensus::block::subsidy::general

Function halving_divisor

Source
pub fn halving_divisor(height: Height, network: &Network) -> Option<u64>
Expand description

The divisor used for halvings.

1 << Halving(height), as described in protocol specification ยง7.8

Returns None if the divisor would overflow a u64.