feat: re-use BlockExecutionStrategy in payload building (#14609)

This commit is contained in:
Arsenii Kulikov
2025-02-20 19:06:19 +04:00
committed by GitHub
parent 09cf07d523
commit 72210736ad
15 changed files with 352 additions and 492 deletions

View File

@ -21,8 +21,8 @@ use reth_chainspec::EthereumHardforks;
/// - Definition: [Yellow Paper][yp] (page 15, 11.3)
///
/// [yp]: https://ethereum.github.io/yellowpaper/paper.pdf
pub fn base_block_reward<ChainSpec: EthereumHardforks>(
chain_spec: &ChainSpec,
pub fn base_block_reward(
chain_spec: impl EthereumHardforks,
block_number: BlockNumber,
) -> Option<u128> {
if chain_spec.is_paris_active_at_block(block_number).is_some_and(|active| active) {