From 48e2fe243f7965193bf334a7e6ae146191c8274e Mon Sep 17 00:00:00 2001 From: maskpp Date: Wed, 20 Nov 2024 16:18:51 +0800 Subject: [PATCH] sync blockchain-tree --- crates/blockchain-tree/Cargo.toml | 1 + crates/blockchain-tree/src/blockchain_tree.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/crates/blockchain-tree/Cargo.toml b/crates/blockchain-tree/Cargo.toml index cff117c92b05..b9fc9a0d99ab 100644 --- a/crates/blockchain-tree/Cargo.toml +++ b/crates/blockchain-tree/Cargo.toml @@ -65,3 +65,4 @@ alloy-consensus.workspace = true [features] test-utils = [] optimism = ["reth-primitives/optimism", "reth-provider/optimism"] +taiko = [] diff --git a/crates/blockchain-tree/src/blockchain_tree.rs b/crates/blockchain-tree/src/blockchain_tree.rs index 4bed718aa0a6..20c6ba23c22f 100644 --- a/crates/blockchain-tree/src/blockchain_tree.rs +++ b/crates/blockchain-tree/src/blockchain_tree.rs @@ -195,6 +195,7 @@ where return Ok(Some(BlockStatus::Valid(BlockAttachment::Canonical))); } + #[cfg(not(feature = "taiko"))] return Err(BlockchainTreeError::PendingBlockIsFinalized { last_finalized: last_finalized_block, } @@ -214,6 +215,7 @@ where })) } + #[cfg(feature = "taiko")] Ok(None) }