diff --git a/Cargo.lock b/Cargo.lock index 5b4ccbd7e37a..06d0d18ddda8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6392,6 +6392,7 @@ dependencies = [ name = "reth-blockchain-tree-api" version = "1.0.6" dependencies = [ + "alloy-primitives", "reth-consensus", "reth-execution-errors", "reth-primitives", diff --git a/crates/blockchain-tree-api/Cargo.toml b/crates/blockchain-tree-api/Cargo.toml index 69616209dd1c..552b72767177 100644 --- a/crates/blockchain-tree-api/Cargo.toml +++ b/crates/blockchain-tree-api/Cargo.toml @@ -16,5 +16,8 @@ reth-execution-errors.workspace = true reth-primitives.workspace = true reth-storage-errors.workspace = true +# alloy +alloy-primitives.workspace = true + # misc thiserror.workspace = true diff --git a/crates/blockchain-tree-api/src/error.rs b/crates/blockchain-tree-api/src/error.rs index 5ef146b0874e..5dbd4cf179c7 100644 --- a/crates/blockchain-tree-api/src/error.rs +++ b/crates/blockchain-tree-api/src/error.rs @@ -1,10 +1,11 @@ //! Error handling for the blockchain tree +use alloy_primitives::{BlockHash, BlockNumber}; use reth_consensus::ConsensusError; use reth_execution_errors::{ BlockExecutionError, BlockValidationError, InternalBlockExecutionError, }; -use reth_primitives::{BlockHash, BlockNumber, SealedBlock}; +use reth_primitives::SealedBlock; pub use reth_storage_errors::provider::ProviderError; /// Various error cases that can occur when a block violates tree assumptions. diff --git a/crates/blockchain-tree-api/src/lib.rs b/crates/blockchain-tree-api/src/lib.rs index b8fb06e05582..0a1bf6164e0e 100644 --- a/crates/blockchain-tree-api/src/lib.rs +++ b/crates/blockchain-tree-api/src/lib.rs @@ -9,10 +9,8 @@ use self::error::CanonicalError; use crate::error::InsertBlockError; -use reth_primitives::{ - BlockHash, BlockNumHash, BlockNumber, Receipt, SealedBlock, SealedBlockWithSenders, - SealedHeader, -}; +use alloy_primitives::{BlockHash, BlockNumber}; +use reth_primitives::{BlockNumHash, Receipt, SealedBlock, SealedBlockWithSenders, SealedHeader}; use reth_storage_errors::provider::{ProviderError, ProviderResult}; use std::collections::BTreeMap;