mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
qol: purge goerli (#9310)
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
use reth_chainspec::{Chain, ChainSpec, EthereumHardfork};
|
||||
use reth_chainspec::{ChainSpec, EthereumHardfork};
|
||||
use reth_primitives::{constants::ETH_TO_WEI, BlockNumber, U256};
|
||||
|
||||
/// Calculates the base block reward.
|
||||
@ -26,9 +26,7 @@ pub fn base_block_reward(
|
||||
block_difficulty: U256,
|
||||
total_difficulty: U256,
|
||||
) -> Option<u128> {
|
||||
if chain_spec.fork(EthereumHardfork::Paris).active_at_ttd(total_difficulty, block_difficulty) ||
|
||||
chain_spec.chain == Chain::goerli()
|
||||
{
|
||||
if chain_spec.fork(EthereumHardfork::Paris).active_at_ttd(total_difficulty, block_difficulty) {
|
||||
None
|
||||
} else {
|
||||
Some(base_block_reward_pre_merge(chain_spec, block_number))
|
||||
|
||||
Reference in New Issue
Block a user