fix: add additional op checks for chain specific check (#12623)

This commit is contained in:
Matthias Seitz
2024-11-18 12:33:38 +01:00
committed by GitHub
parent 4b4f9cf406
commit 1acdf9b2d4

View File

@ -819,7 +819,10 @@ where
/// This checks for OP-Mainnet and ensures we have all the necessary data to progress (past
/// bedrock height)
fn ensure_chain_specific_db_checks(&self) -> ProviderResult<()> {
if self.chain_id() == Chain::optimism_mainnet() {
if self.chain_spec().is_optimism() &&
!self.is_dev() &&
self.chain_id() == Chain::optimism_mainnet()
{
let latest = self.blockchain_db().last_block_number()?;
// bedrock height
if latest < 105235063 {