From 3d243d3af0dd0db22178df0e0a00b7ede905e9e9 Mon Sep 17 00:00:00 2001 From: Roman Krasiuk Date: Mon, 1 May 2023 05:39:04 +0300 Subject: [PATCH] fix(consensus): clique block rewards (#2484) --- crates/consensus/common/src/calc.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/consensus/common/src/calc.rs b/crates/consensus/common/src/calc.rs index 3c69441627..304a081e5c 100644 --- a/crates/consensus/common/src/calc.rs +++ b/crates/consensus/common/src/calc.rs @@ -1,4 +1,4 @@ -use reth_primitives::{constants::ETH_TO_WEI, BlockNumber, ChainSpec, Hardfork, U256}; +use reth_primitives::{constants::ETH_TO_WEI, BlockNumber, Chain, ChainSpec, Hardfork, U256}; /// Calculates the base block reward. /// @@ -25,7 +25,9 @@ pub fn base_block_reward( block_difficulty: U256, total_difficulty: U256, ) -> Option { - if chain_spec.fork(Hardfork::Paris).active_at_ttd(total_difficulty, block_difficulty) { + if chain_spec.chain == Chain::goerli() || + chain_spec.fork(Hardfork::Paris).active_at_ttd(total_difficulty, block_difficulty) + { None } else if chain_spec.fork(Hardfork::Petersburg).active_at_block(block_number) { Some(ETH_TO_WEI * 2)