Function subsidy_is_valid

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

Returns Ok() with the deferred pool balance change of the coinbase transaction if the block subsidy in block is valid for network