Function base_block_reward
pub fn base_block_reward<ChainSpec>(
chain_spec: &ChainSpec,
block_number: u64,
) -> Option<u128>where
ChainSpec: EthereumHardforks,
Expand description
Calculates the base block reward.
The base block reward is defined as:
- For Paris and later:
None
- For Petersburg and later:
Some(2 ETH)
- For Byzantium and later:
Some(3 ETH)
- Otherwise:
Some(5 ETH)
§Note
This does not include the reward for including ommers. To calculate the full block reward, see
block_reward
.
§References
- Definition: Yellow Paper (page 15, 11.3)