Skip to content

Commit

Permalink
disabled pre merge checks for now
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry123 committed Dec 5, 2023
1 parent ef149f6 commit f81607e
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions crates/blockchain-tree/src/blockchain_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,13 +391,13 @@ impl<DB: Database, EF: ExecutorFactory> BlockchainTree<DB, EF> {
})?;

// Pass the parent total difficulty to short-circuit unnecessary calculations.
if !self.externals.chain_spec.fork(Hardfork::Paris).active_at_ttd(parent_td, U256::ZERO)
{
return Err(InsertBlockError::execution_error(
BlockValidationError::BlockPreMerge { hash: block.hash }.into(),
block.block,
))
}
// if !self.externals.chain_spec.fork(Hardfork::Paris).active_at_ttd(parent_td, U256::ZERO)
// {
// return Err(InsertBlockError::execution_error(
// BlockValidationError::BlockPreMerge { hash: block.hash }.into(),
// block.block,
// ))
// }

let parent_header = provider
.header(&block.parent_hash)
Expand Down Expand Up @@ -928,12 +928,12 @@ impl<DB: Database, EF: ExecutorFactory> BlockchainTree<DB, EF> {
hash: *block_hash,
}),
)?;
if !self.externals.chain_spec.fork(Hardfork::Paris).active_at_ttd(td, U256::ZERO) {
return Err(CanonicalError::from(BlockValidationError::BlockPreMerge {
hash: *block_hash,
})
.into())
}
// if !self.externals.chain_spec.fork(Hardfork::Paris).active_at_ttd(td, U256::ZERO) {
// return Err(CanonicalError::from(BlockValidationError::BlockPreMerge {
// hash: *block_hash,
// })
// .into())
// }
return Ok(CanonicalOutcome::AlreadyCanonical { header })
}

Expand Down

0 comments on commit f81607e

Please sign in to comment.