Skip to main content

block_subsidy

Function block_subsidy 

Source
pub fn block_subsidy(
    height: Height,
    net: &Network,
) -> Result<Amount<NonNegative>, SubsidyError>
Expand description

BlockSubsidy(height) as described in protocol specification §7.8

This returns SubsidyError::ParentChainValuePoolsRequired once the halving-preserving issuance ZIP reissues, because the subsidy then depends on the parent block’s NSM value balance. Use block_subsidy_with_parent_pools there.