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:
@ -8,7 +8,7 @@
|
||||
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
use reth_chainspec::{Chain, ChainSpec, EthereumHardfork, EthereumHardforks};
|
||||
use reth_chainspec::{ChainSpec, EthereumHardfork, EthereumHardforks};
|
||||
use reth_consensus::{Consensus, ConsensusError, PostExecutionInput};
|
||||
use reth_consensus_common::validation::{
|
||||
validate_4844_header_standalone, validate_against_parent_4844,
|
||||
@ -198,10 +198,9 @@ impl Consensus for EthBeaconConsensus {
|
||||
})
|
||||
}
|
||||
|
||||
// Goerli and early OP exception:
|
||||
// * If the network is goerli pre-merge, ignore the extradata check, since we do not
|
||||
// support clique. Same goes for OP blocks below Bedrock.
|
||||
if self.chain_spec.chain != Chain::goerli() && !self.chain_spec.is_optimism() {
|
||||
// Early OP exception:
|
||||
// * If the network is pre-Bedrock OP, ignore the extradata check.
|
||||
if !self.chain_spec.is_optimism() {
|
||||
validate_header_extradata(header)?;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user