Skip to content

Commit

Permalink
sync blockchain-tree
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed Nov 20, 2024
1 parent 3455496 commit 48e2fe2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/blockchain-tree/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,4 @@ alloy-consensus.workspace = true
[features]
test-utils = []
optimism = ["reth-primitives/optimism", "reth-provider/optimism"]
taiko = []
2 changes: 2 additions & 0 deletions crates/blockchain-tree/src/blockchain_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand All @@ -214,6 +215,7 @@ where
}))
}

#[cfg(feature = "taiko")]
Ok(None)
}

Expand Down

0 comments on commit 48e2fe2

Please sign in to comment.