From 1acdf9b2d43958eec0bd7b2dd449978d8b4d7862 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 18 Nov 2024 12:33:38 +0100 Subject: [PATCH] fix: add additional op checks for chain specific check (#12623) --- crates/node/builder/src/launch/common.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/node/builder/src/launch/common.rs b/crates/node/builder/src/launch/common.rs index 972fdc640d..41fbf93e05 100644 --- a/crates/node/builder/src/launch/common.rs +++ b/crates/node/builder/src/launch/common.rs @@ -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 {