chore: rm beacon consensus deps (#13716)

This commit is contained in:
Matthias Seitz
2025-01-07 23:31:04 +01:00
committed by GitHub
parent ccaf9da732
commit fb6902880c
16 changed files with 17 additions and 25 deletions

8
Cargo.lock generated
View File

@ -6710,7 +6710,6 @@ dependencies = [
"proptest", "proptest",
"proptest-arbitrary-interop", "proptest-arbitrary-interop",
"ratatui", "ratatui",
"reth-beacon-consensus",
"reth-chainspec", "reth-chainspec",
"reth-cli", "reth-cli",
"reth-cli-runner", "reth-cli-runner",
@ -6726,6 +6725,7 @@ dependencies = [
"reth-ecies", "reth-ecies",
"reth-eth-wire", "reth-eth-wire",
"reth-ethereum-cli", "reth-ethereum-cli",
"reth-ethereum-consensus",
"reth-evm", "reth-evm",
"reth-exex", "reth-exex",
"reth-fs-util", "reth-fs-util",
@ -7299,6 +7299,7 @@ dependencies = [
"reth-db", "reth-db",
"reth-engine-primitives", "reth-engine-primitives",
"reth-errors", "reth-errors",
"reth-ethereum-consensus",
"reth-ethereum-engine-primitives", "reth-ethereum-engine-primitives",
"reth-evm", "reth-evm",
"reth-exex-types", "reth-exex-types",
@ -8014,7 +8015,6 @@ version = "1.1.5"
dependencies = [ dependencies = [
"alloy-rpc-types-engine", "alloy-rpc-types-engine",
"eyre", "eyre",
"reth-beacon-consensus",
"reth-consensus", "reth-consensus",
"reth-db-api", "reth-db-api",
"reth-engine-primitives", "reth-engine-primitives",
@ -8161,11 +8161,11 @@ dependencies = [
"futures", "futures",
"rand 0.8.5", "rand 0.8.5",
"reth-basic-payload-builder", "reth-basic-payload-builder",
"reth-beacon-consensus",
"reth-chainspec", "reth-chainspec",
"reth-consensus", "reth-consensus",
"reth-db", "reth-db",
"reth-e2e-test-utils", "reth-e2e-test-utils",
"reth-ethereum-consensus",
"reth-ethereum-engine-primitives", "reth-ethereum-engine-primitives",
"reth-ethereum-payload-builder", "reth-ethereum-payload-builder",
"reth-evm", "reth-evm",
@ -8956,7 +8956,6 @@ dependencies = [
"jsonrpsee", "jsonrpsee",
"metrics", "metrics",
"pin-project", "pin-project",
"reth-beacon-consensus",
"reth-chainspec", "reth-chainspec",
"reth-consensus", "reth-consensus",
"reth-engine-primitives", "reth-engine-primitives",
@ -9006,7 +9005,6 @@ dependencies = [
"jsonrpsee-types", "jsonrpsee-types",
"metrics", "metrics",
"parking_lot", "parking_lot",
"reth-beacon-consensus",
"reth-chainspec", "reth-chainspec",
"reth-engine-primitives", "reth-engine-primitives",
"reth-ethereum-engine-primitives", "reth-ethereum-engine-primitives",

View File

@ -11,7 +11,7 @@ repository.workspace = true
[dependencies] [dependencies]
# reth # reth
reth-beacon-consensus.workspace = true reth-ethereum-consensus.workspace = true
reth-chainspec.workspace = true reth-chainspec.workspace = true
reth-cli.workspace = true reth-cli.workspace = true
reth-ethereum-cli.workspace = true reth-ethereum-cli.workspace = true

View File

@ -3,7 +3,6 @@ use crate::common::{AccessRights, CliNodeTypes, Environment, EnvironmentArgs};
use alloy_primitives::B256; use alloy_primitives::B256;
use clap::Parser; use clap::Parser;
use futures::{Stream, StreamExt}; use futures::{Stream, StreamExt};
use reth_beacon_consensus::EthBeaconConsensus;
use reth_chainspec::{EthChainSpec, EthereumHardforks}; use reth_chainspec::{EthChainSpec, EthereumHardforks};
use reth_cli::chainspec::ChainSpecParser; use reth_cli::chainspec::ChainSpecParser;
use reth_config::Config; use reth_config::Config;
@ -15,6 +14,7 @@ use reth_downloaders::{
file_client::{ChunkedFileReader, FileClient, DEFAULT_BYTE_LEN_CHUNK_CHAIN_FILE}, file_client::{ChunkedFileReader, FileClient, DEFAULT_BYTE_LEN_CHUNK_CHAIN_FILE},
headers::reverse_headers::ReverseHeadersDownloaderBuilder, headers::reverse_headers::ReverseHeadersDownloaderBuilder,
}; };
use reth_ethereum_consensus::EthBeaconConsensus;
use reth_evm::execute::BlockExecutorProvider; use reth_evm::execute::BlockExecutorProvider;
use reth_network_p2p::{ use reth_network_p2p::{
bodies::downloader::BodyDownloader, bodies::downloader::BodyDownloader,

View File

@ -6,7 +6,6 @@ use crate::common::{AccessRights, CliNodeTypes, Environment, EnvironmentArgs};
use alloy_eips::BlockHashOrNumber; use alloy_eips::BlockHashOrNumber;
use alloy_primitives::Sealable; use alloy_primitives::Sealable;
use clap::Parser; use clap::Parser;
use reth_beacon_consensus::EthBeaconConsensus;
use reth_chainspec::{EthChainSpec, EthereumHardforks}; use reth_chainspec::{EthChainSpec, EthereumHardforks};
use reth_cli::chainspec::ChainSpecParser; use reth_cli::chainspec::ChainSpecParser;
use reth_cli_runner::CliContext; use reth_cli_runner::CliContext;
@ -18,6 +17,7 @@ use reth_downloaders::{
headers::reverse_headers::ReverseHeadersDownloaderBuilder, headers::reverse_headers::ReverseHeadersDownloaderBuilder,
}; };
use reth_eth_wire::NetPrimitivesFor; use reth_eth_wire::NetPrimitivesFor;
use reth_ethereum_consensus::EthBeaconConsensus;
use reth_evm::execute::BlockExecutorProvider; use reth_evm::execute::BlockExecutorProvider;
use reth_exex::ExExManagerHandle; use reth_exex::ExExManagerHandle;
use reth_network::BlockDownloaderProvider; use reth_network::BlockDownloaderProvider;

View File

@ -73,6 +73,7 @@ reth-chain-state = { workspace = true, features = ["test-utils"] }
reth-chainspec.workspace = true reth-chainspec.workspace = true
reth-db = { workspace = true, features = ["test-utils"] } reth-db = { workspace = true, features = ["test-utils"] }
reth-ethereum-engine-primitives.workspace = true reth-ethereum-engine-primitives.workspace = true
reth-ethereum-consensus.workspace = true
reth-evm = { workspace = true, features = ["test-utils"] } reth-evm = { workspace = true, features = ["test-utils"] }
reth-exex-types.workspace = true reth-exex-types.workspace = true
reth-network-p2p = { workspace = true, features = ["test-utils"] } reth-network-p2p = { workspace = true, features = ["test-utils"] }

View File

@ -2785,10 +2785,10 @@ mod tests {
use alloy_rlp::Decodable; use alloy_rlp::Decodable;
use alloy_rpc_types_engine::{CancunPayloadFields, ExecutionPayloadSidecar}; use alloy_rpc_types_engine::{CancunPayloadFields, ExecutionPayloadSidecar};
use assert_matches::assert_matches; use assert_matches::assert_matches;
use reth_beacon_consensus::EthBeaconConsensus;
use reth_chain_state::{test_utils::TestBlockBuilder, BlockState}; use reth_chain_state::{test_utils::TestBlockBuilder, BlockState};
use reth_chainspec::{ChainSpec, HOLESKY, MAINNET}; use reth_chainspec::{ChainSpec, HOLESKY, MAINNET};
use reth_engine_primitives::ForkchoiceStatus; use reth_engine_primitives::ForkchoiceStatus;
use reth_ethereum_consensus::EthBeaconConsensus;
use reth_ethereum_engine_primitives::{EthEngineTypes, EthereumEngineValidator}; use reth_ethereum_engine_primitives::{EthEngineTypes, EthereumEngineValidator};
use reth_evm::test_utils::MockExecutorProvider; use reth_evm::test_utils::MockExecutorProvider;
use reth_primitives::{Block, BlockExt, EthPrimitives}; use reth_primitives::{Block, BlockExt, EthPrimitives};

View File

@ -9,8 +9,6 @@
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
mod payload; mod payload;
use std::sync::Arc;
use alloy_rpc_types_engine::{ExecutionPayload, ExecutionPayloadSidecar, PayloadError}; use alloy_rpc_types_engine::{ExecutionPayload, ExecutionPayloadSidecar, PayloadError};
pub use alloy_rpc_types_engine::{ pub use alloy_rpc_types_engine::{
ExecutionPayloadEnvelopeV2, ExecutionPayloadEnvelopeV3, ExecutionPayloadEnvelopeV4, ExecutionPayloadEnvelopeV2, ExecutionPayloadEnvelopeV3, ExecutionPayloadEnvelopeV4,
@ -26,6 +24,7 @@ use reth_payload_primitives::{
use reth_payload_validator::ExecutionPayloadValidator; use reth_payload_validator::ExecutionPayloadValidator;
use reth_primitives::{Block, NodePrimitives, SealedBlock, SealedBlockFor}; use reth_primitives::{Block, NodePrimitives, SealedBlock, SealedBlockFor};
use reth_rpc_types_compat::engine::payload::block_to_payload; use reth_rpc_types_compat::engine::payload::block_to_payload;
use std::sync::Arc;
/// The types used in the default mainnet ethereum beacon consensus engine. /// The types used in the default mainnet ethereum beacon consensus engine.
#[derive(Debug, Default, Clone, serde::Deserialize, serde::Serialize)] #[derive(Debug, Default, Clone, serde::Deserialize, serde::Serialize)]

View File

@ -16,6 +16,7 @@ reth-payload-builder.workspace = true
reth-ethereum-engine-primitives.workspace = true reth-ethereum-engine-primitives.workspace = true
reth-basic-payload-builder.workspace = true reth-basic-payload-builder.workspace = true
reth-ethereum-payload-builder.workspace = true reth-ethereum-payload-builder.workspace = true
reth-ethereum-consensus.workspace = true
reth-node-builder.workspace = true reth-node-builder.workspace = true
reth-tracing.workspace = true reth-tracing.workspace = true
reth-provider.workspace = true reth-provider.workspace = true
@ -24,7 +25,6 @@ reth-network.workspace = true
reth-evm.workspace = true reth-evm.workspace = true
reth-evm-ethereum.workspace = true reth-evm-ethereum.workspace = true
reth-consensus.workspace = true reth-consensus.workspace = true
reth-beacon-consensus.workspace = true
reth-rpc.workspace = true reth-rpc.workspace = true
reth-node-api.workspace = true reth-node-api.workspace = true
reth-chainspec.workspace = true reth-chainspec.workspace = true

View File

@ -1,9 +1,11 @@
//! Ethereum Node types config. //! Ethereum Node types config.
pub use crate::payload::EthereumPayloadBuilder;
use crate::{EthEngineTypes, EthEvmConfig}; use crate::{EthEngineTypes, EthEvmConfig};
use reth_beacon_consensus::EthBeaconConsensus;
use reth_chainspec::ChainSpec; use reth_chainspec::ChainSpec;
use reth_consensus::{ConsensusError, FullConsensus}; use reth_consensus::{ConsensusError, FullConsensus};
use reth_ethereum_consensus::EthBeaconConsensus;
pub use reth_ethereum_engine_primitives::EthereumEngineValidator;
use reth_ethereum_engine_primitives::{ use reth_ethereum_engine_primitives::{
EthBuiltPayload, EthPayloadAttributes, EthPayloadBuilderAttributes, EthBuiltPayload, EthPayloadAttributes, EthPayloadBuilderAttributes,
}; };
@ -30,9 +32,6 @@ use reth_transaction_pool::{
use reth_trie_db::MerklePatriciaTrie; use reth_trie_db::MerklePatriciaTrie;
use std::sync::Arc; use std::sync::Arc;
pub use crate::payload::EthereumPayloadBuilder;
pub use reth_ethereum_engine_primitives::EthereumEngineValidator;
/// Type configuration for a regular Ethereum node. /// Type configuration for a regular Ethereum node.
#[derive(Debug, Default, Clone, Copy)] #[derive(Debug, Default, Clone, Copy)]
#[non_exhaustive] #[non_exhaustive]

View File

@ -13,7 +13,6 @@ workspace = true
[dependencies] [dependencies]
# reth # reth
reth-db-api.workspace = true reth-db-api.workspace = true
reth-beacon-consensus.workspace = true
reth-consensus.workspace = true reth-consensus.workspace = true
reth-evm.workspace = true reth-evm.workspace = true
reth-provider.workspace = true reth-provider.workspace = true

View File

@ -2,12 +2,12 @@
use crate::ConfigureEvm; use crate::ConfigureEvm;
use alloy_rpc_types_engine::JwtSecret; use alloy_rpc_types_engine::JwtSecret;
use reth_beacon_consensus::BeaconConsensusEngineHandle;
use reth_consensus::{ConsensusError, FullConsensus}; use reth_consensus::{ConsensusError, FullConsensus};
use reth_db_api::{ use reth_db_api::{
database_metrics::{DatabaseMetadata, DatabaseMetrics}, database_metrics::{DatabaseMetadata, DatabaseMetrics},
Database, Database,
}; };
use reth_engine_primitives::BeaconConsensusEngineHandle;
use reth_evm::execute::BlockExecutorProvider; use reth_evm::execute::BlockExecutorProvider;
use reth_network_api::FullNetwork; use reth_network_api::FullNetwork;
use reth_node_core::node_config::NodeConfig; use reth_node_core::node_config::NodeConfig;

View File

@ -51,7 +51,6 @@ tokio = { workspace = true, features = ["rt", "rt-multi-thread"] }
[dev-dependencies] [dev-dependencies]
reth-chainspec.workspace = true reth-chainspec.workspace = true
reth-beacon-consensus.workspace = true
reth-network-api.workspace = true reth-network-api.workspace = true
reth-network-peers.workspace = true reth-network-peers.workspace = true
reth-evm-ethereum.workspace = true reth-evm-ethereum.workspace = true

View File

@ -4,9 +4,9 @@ use std::{
}; };
use alloy_rpc_types_engine::{ClientCode, ClientVersionV1}; use alloy_rpc_types_engine::{ClientCode, ClientVersionV1};
use reth_beacon_consensus::BeaconConsensusEngineHandle;
use reth_chainspec::MAINNET; use reth_chainspec::MAINNET;
use reth_consensus::noop::NoopConsensus; use reth_consensus::noop::NoopConsensus;
use reth_engine_primitives::BeaconConsensusEngineHandle;
use reth_ethereum_engine_primitives::{EthEngineTypes, EthereumEngineValidator}; use reth_ethereum_engine_primitives::{EthEngineTypes, EthereumEngineValidator};
use reth_evm::execute::BasicBlockExecutorProvider; use reth_evm::execute::BasicBlockExecutorProvider;
use reth_evm_ethereum::{execute::EthExecutionStrategyFactory, EthEvmConfig}; use reth_evm_ethereum::{execute::EthExecutionStrategyFactory, EthEvmConfig};

View File

@ -17,7 +17,6 @@ reth-chainspec.workspace = true
reth-primitives.workspace = true reth-primitives.workspace = true
reth-rpc-api.workspace = true reth-rpc-api.workspace = true
reth-storage-api.workspace = true reth-storage-api.workspace = true
reth-beacon-consensus.workspace = true
reth-payload-builder.workspace = true reth-payload-builder.workspace = true
reth-payload-builder-primitives.workspace = true reth-payload-builder-primitives.workspace = true
reth-payload-primitives.workspace = true reth-payload-primitives.workspace = true

View File

@ -16,9 +16,8 @@ use alloy_rpc_types_engine::{
use async_trait::async_trait; use async_trait::async_trait;
use jsonrpsee_core::RpcResult; use jsonrpsee_core::RpcResult;
use parking_lot::Mutex; use parking_lot::Mutex;
use reth_beacon_consensus::BeaconConsensusEngineHandle;
use reth_chainspec::{EthereumHardforks, Hardforks}; use reth_chainspec::{EthereumHardforks, Hardforks};
use reth_engine_primitives::{EngineTypes, EngineValidator}; use reth_engine_primitives::{BeaconConsensusEngineHandle, EngineTypes, EngineValidator};
use reth_payload_builder::PayloadStore; use reth_payload_builder::PayloadStore;
use reth_payload_primitives::{ use reth_payload_primitives::{
validate_payload_timestamp, EngineApiMessageVersion, PayloadBuilderAttributes, validate_payload_timestamp, EngineApiMessageVersion, PayloadBuilderAttributes,

View File

@ -2,8 +2,7 @@ use alloy_primitives::{B256, U256};
use jsonrpsee_types::error::{ use jsonrpsee_types::error::{
INTERNAL_ERROR_CODE, INVALID_PARAMS_CODE, INVALID_PARAMS_MSG, SERVER_ERROR_MSG, INTERNAL_ERROR_CODE, INVALID_PARAMS_CODE, INVALID_PARAMS_MSG, SERVER_ERROR_MSG,
}; };
use reth_beacon_consensus::BeaconForkChoiceUpdateError; use reth_engine_primitives::{BeaconForkChoiceUpdateError, BeaconOnNewPayloadError};
use reth_engine_primitives::BeaconOnNewPayloadError;
use reth_payload_builder_primitives::PayloadBuilderError; use reth_payload_builder_primitives::PayloadBuilderError;
use reth_payload_primitives::EngineObjectValidationError; use reth_payload_primitives::EngineObjectValidationError;
use thiserror::Error; use thiserror::Error;