blockchain-tree-api:replace reth_primitives with alloy_primitives (#10946)

Signed-off-by: Abhishekkochar <abhishekkochar2@gmail.com>
This commit is contained in:
Abhishek kochar
2024-09-17 17:51:11 +08:00
committed by GitHub
parent 21e92b83bd
commit 847ac1dfcc
4 changed files with 8 additions and 5 deletions

View File

@ -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

View File

@ -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.

View File

@ -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;