zebra_consensus::block::check

Function subsidy_is_valid

source
pub fn subsidy_is_valid(
    block: &Block,
    network: &Network,
    expected_block_subsidy: Amount<NonNegative>,
) -> Result<(), BlockError>
Expand description

Returns Ok(()) if the block subsidy in block is valid for network