mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: re-use BlockExecutionStrategy in payload building (#14609)
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user