Skip to main content

block_subsidy_with_parent_pools

Function block_subsidy_with_parent_pools 

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

BlockSubsidy(height) for a block whose parent block leaves parent_chain_value_pools in the chain value pools.

From DEPLOYMENT_BLOCK_HEIGHT, this is ScheduledBlockSubsidy(height) + ceiling(BLOCK_SUBSIDY_FRACTION * NSMValueBalance(height - 1)). Before that, parent_chain_value_pools is unused and this is scheduled_block_subsidy.