Skip to content

Commit

Permalink
blockchain-tree-api:replace reth_primitives with alloy_primitives
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishekkochar <[email protected]>
  • Loading branch information
Abhishekkochar committed Sep 17, 2024
1 parent 0fd8132 commit 1241d0c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions crates/blockchain-tree-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion crates/blockchain-tree-api/src/error.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 2 additions & 4 deletions crates/blockchain-tree-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1241d0c

Please sign in to comment.