reth_consensus_common::calc

Function base_block_reward_pre_merge

source
pub fn base_block_reward_pre_merge(
    chain_spec: impl Hardforks,
    block_number: BlockNumber,
) -> u128
Expand description

Calculates the base block reward before the merge (Paris hardfork).

Caution: The caller must ensure that the block number is before the merge.