chore: remove usages of reth_primitives from reth bin (#14252)

This commit is contained in:
Dan Cline
2025-02-05 19:02:12 -05:00
committed by GitHub
parent 3309484a30
commit d5277d5f27
7 changed files with 17 additions and 14 deletions

1
Cargo.lock generated
View File

@ -6448,6 +6448,7 @@ dependencies = [
"reth-errors", "reth-errors",
"reth-ethereum-cli", "reth-ethereum-cli",
"reth-ethereum-payload-builder", "reth-ethereum-payload-builder",
"reth-ethereum-primitives",
"reth-evm", "reth-evm",
"reth-execution-types", "reth-execution-types",
"reth-exex", "reth-exex",

View File

@ -57,6 +57,7 @@ reth-trie-db = { workspace = true, features = ["metrics"] }
reth-node-api.workspace = true reth-node-api.workspace = true
reth-node-core.workspace = true reth-node-core.workspace = true
reth-ethereum-payload-builder.workspace = true reth-ethereum-payload-builder.workspace = true
reth-ethereum-primitives.workspace = true
reth-node-ethereum = { workspace = true, features = ["js-tracer"] } reth-node-ethereum = { workspace = true, features = ["js-tracer"] }
reth-node-builder.workspace = true reth-node-builder.workspace = true
reth-node-events.workspace = true reth-node-events.workspace = true

View File

@ -17,16 +17,16 @@ use reth_cli_runner::CliContext;
use reth_consensus::{Consensus, FullConsensus}; use reth_consensus::{Consensus, FullConsensus};
use reth_errors::{ConsensusError, RethResult}; use reth_errors::{ConsensusError, RethResult};
use reth_ethereum_payload_builder::EthereumBuilderConfig; use reth_ethereum_payload_builder::EthereumBuilderConfig;
use reth_ethereum_primitives::{EthPrimitives, Transaction, TransactionSigned};
use reth_evm::execute::{BlockExecutorProvider, Executor}; use reth_evm::execute::{BlockExecutorProvider, Executor};
use reth_execution_types::ExecutionOutcome; use reth_execution_types::ExecutionOutcome;
use reth_fs_util as fs; use reth_fs_util as fs;
use reth_node_api::{BlockTy, EngineApiMessageVersion, PayloadBuilderAttributes}; use reth_node_api::{BlockTy, EngineApiMessageVersion, PayloadBuilderAttributes};
use reth_node_ethereum::{consensus::EthBeaconConsensus, EthEvmConfig, EthExecutorProvider}; use reth_node_ethereum::{consensus::EthBeaconConsensus, EthEvmConfig, EthExecutorProvider};
use reth_primitives::{ use reth_primitives_traits::{
transaction::SignedTransactionIntoRecoveredExt, EthPrimitives, SealedBlock, SealedHeader, transaction::signed::SignedTransactionIntoRecoveredExt, Block as _, SealedBlock, SealedHeader,
Transaction, TransactionSigned, SignedTransaction,
}; };
use reth_primitives_traits::{Block as _, SignedTransaction};
use reth_provider::{ use reth_provider::{
providers::{BlockchainProvider, ProviderNodeTypes}, providers::{BlockchainProvider, ProviderNodeTypes},
BlockHashReader, BlockReader, BlockWriter, ChainSpecProvider, ProviderFactory, BlockHashReader, BlockReader, BlockWriter, ChainSpecProvider, ProviderFactory,

View File

@ -18,6 +18,7 @@ use reth_downloaders::{
headers::reverse_headers::ReverseHeadersDownloaderBuilder, headers::reverse_headers::ReverseHeadersDownloaderBuilder,
}; };
use reth_errors::ConsensusError; use reth_errors::ConsensusError;
use reth_ethereum_primitives::EthPrimitives;
use reth_exex::ExExManagerHandle; use reth_exex::ExExManagerHandle;
use reth_network::{BlockDownloaderProvider, NetworkHandle}; use reth_network::{BlockDownloaderProvider, NetworkHandle};
use reth_network_api::NetworkInfo; use reth_network_api::NetworkInfo;
@ -25,7 +26,6 @@ use reth_network_p2p::{headers::client::HeadersClient, EthBlockClient};
use reth_node_api::NodeTypesWithDBAdapter; use reth_node_api::NodeTypesWithDBAdapter;
use reth_node_ethereum::{consensus::EthBeaconConsensus, EthExecutorProvider}; use reth_node_ethereum::{consensus::EthBeaconConsensus, EthExecutorProvider};
use reth_node_events::node::NodeEvent; use reth_node_events::node::NodeEvent;
use reth_primitives::EthPrimitives;
use reth_provider::{ use reth_provider::{
providers::ProviderNodeTypes, ChainSpecProvider, ProviderFactory, StageCheckpointReader, providers::ProviderNodeTypes, ChainSpecProvider, ProviderFactory, StageCheckpointReader,
}; };

View File

@ -15,13 +15,14 @@ use reth_cli_commands::common::{AccessRights, CliNodeTypes, Environment, Environ
use reth_cli_runner::CliContext; use reth_cli_runner::CliContext;
use reth_cli_util::get_secret_key; use reth_cli_util::get_secret_key;
use reth_config::Config; use reth_config::Config;
use reth_ethereum_primitives::EthPrimitives;
use reth_evm::execute::{BlockExecutorProvider, Executor}; use reth_evm::execute::{BlockExecutorProvider, Executor};
use reth_execution_types::ExecutionOutcome; use reth_execution_types::ExecutionOutcome;
use reth_network::{BlockDownloaderProvider, NetworkHandle}; use reth_network::{BlockDownloaderProvider, NetworkHandle};
use reth_network_api::NetworkInfo; use reth_network_api::NetworkInfo;
use reth_node_api::NodePrimitives; use reth_node_api::NodePrimitives;
use reth_node_ethereum::{consensus::EthBeaconConsensus, EthExecutorProvider}; use reth_node_ethereum::{consensus::EthBeaconConsensus, EthExecutorProvider};
use reth_primitives::{EthPrimitives, SealedBlock}; use reth_primitives_traits::SealedBlock;
use reth_provider::{ use reth_provider::{
providers::ProviderNodeTypes, AccountExtReader, ChainSpecProvider, DatabaseProviderFactory, providers::ProviderNodeTypes, AccountExtReader, ChainSpecProvider, DatabaseProviderFactory,
HashedPostStateProvider, HashingWriter, LatestStateProviderRef, OriginalValuesKnown, HashedPostStateProvider, HashingWriter, LatestStateProviderRef, OriginalValuesKnown,
@ -61,9 +62,9 @@ impl<C: ChainSpecParser<ChainSpec = ChainSpec>> Command<C> {
N: ProviderNodeTypes< N: ProviderNodeTypes<
ChainSpec = C::ChainSpec, ChainSpec = C::ChainSpec,
Primitives: NodePrimitives< Primitives: NodePrimitives<
Block = reth_primitives::Block, Block = reth_ethereum_primitives::Block,
Receipt = reth_primitives::Receipt, Receipt = reth_ethereum_primitives::Receipt,
BlockHeader = reth_primitives::Header, BlockHeader = alloy_consensus::Header,
>, >,
>, >,
>( >(

View File

@ -13,13 +13,13 @@ use reth_config::Config;
use reth_consensus::{Consensus, ConsensusError}; use reth_consensus::{Consensus, ConsensusError};
use reth_db::tables; use reth_db::tables;
use reth_db_api::{cursor::DbCursorRO, transaction::DbTx}; use reth_db_api::{cursor::DbCursorRO, transaction::DbTx};
use reth_ethereum_primitives::EthPrimitives;
use reth_evm::execute::{BatchExecutor, BlockExecutorProvider}; use reth_evm::execute::{BatchExecutor, BlockExecutorProvider};
use reth_network::{BlockDownloaderProvider, NetworkHandle}; use reth_network::{BlockDownloaderProvider, NetworkHandle};
use reth_network_api::NetworkInfo; use reth_network_api::NetworkInfo;
use reth_network_p2p::full_block::FullBlockClient; use reth_network_p2p::full_block::FullBlockClient;
use reth_node_api::{BlockTy, NodePrimitives}; use reth_node_api::{BlockTy, NodePrimitives};
use reth_node_ethereum::{consensus::EthBeaconConsensus, EthExecutorProvider}; use reth_node_ethereum::{consensus::EthBeaconConsensus, EthExecutorProvider};
use reth_primitives::EthPrimitives;
use reth_provider::{ use reth_provider::{
providers::ProviderNodeTypes, BlockNumReader, BlockWriter, ChainSpecProvider, providers::ProviderNodeTypes, BlockNumReader, BlockWriter, ChainSpecProvider,
DatabaseProviderFactory, HeaderProvider, LatestStateProviderRef, OriginalValuesKnown, DatabaseProviderFactory, HeaderProvider, LatestStateProviderRef, OriginalValuesKnown,
@ -61,9 +61,9 @@ impl<C: ChainSpecParser<ChainSpec = ChainSpec>> Command<C> {
N: ProviderNodeTypes< N: ProviderNodeTypes<
ChainSpec = C::ChainSpec, ChainSpec = C::ChainSpec,
Primitives: NodePrimitives< Primitives: NodePrimitives<
Block = reth_primitives::Block, Block = reth_ethereum_primitives::Block,
Receipt = reth_primitives::Receipt, Receipt = reth_ethereum_primitives::Receipt,
BlockHeader = reth_primitives::Header, BlockHeader = alloy_consensus::Header,
>, >,
>, >,
>( >(

View File

@ -5,8 +5,8 @@ use reth_chainspec::ChainSpec;
use reth_cli::chainspec::ChainSpecParser; use reth_cli::chainspec::ChainSpecParser;
use reth_cli_commands::common::CliNodeTypes; use reth_cli_commands::common::CliNodeTypes;
use reth_cli_runner::CliContext; use reth_cli_runner::CliContext;
use reth_ethereum_primitives::EthPrimitives;
use reth_node_ethereum::EthEngineTypes; use reth_node_ethereum::EthEngineTypes;
use reth_primitives::EthPrimitives;
mod build_block; mod build_block;
mod execution; mod execution;