feat: move RethRpcConfig to rpc-builder (#8684)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Aurélien
2024-06-11 00:08:51 +02:00
committed by GitHub
parent 7eec20d56d
commit 08cb775455
21 changed files with 755 additions and 738 deletions

View File

@ -24,6 +24,7 @@ reth-db = { workspace = true, features = ["mdbx"] }
reth-db-api.workspace = true
reth-rpc-engine-api.workspace = true
reth-rpc.workspace = true
reth-rpc-builder.workspace = true
reth-rpc-layer.workspace = true
reth-node-api.workspace = true
reth-node-core.workspace = true

View File

@ -12,7 +12,6 @@ use reth_downloaders::{bodies::noop::NoopBodiesDownloader, headers::noop::NoopHe
use reth_evm::noop::NoopBlockExecutorProvider;
use reth_network_p2p::headers::client::HeadersClient;
use reth_node_core::{
cli::config::RethRpcConfig,
dirs::{ChainPath, DataDirPath},
node_config::NodeConfig,
};
@ -21,6 +20,7 @@ use reth_provider::{
providers::StaticFileProvider, HeaderSyncMode, ProviderFactory, StaticFileProviderFactory,
};
use reth_prune::{PruneModes, PrunerBuilder};
use reth_rpc_builder::config::RethRpcServerConfig;
use reth_rpc_layer::JwtSecret;
use reth_stages::{sets::DefaultStages, Pipeline};
use reth_static_file::StaticFileProducer;

View File

@ -36,7 +36,7 @@ pub mod exex;
/// Re-export the core configuration traits.
pub use reth_node_core::cli::config::{
PayloadBuilderConfig, RethNetworkConfig, RethRpcConfig, RethTransactionPoolConfig,
PayloadBuilderConfig, RethNetworkConfig, RethTransactionPoolConfig,
};
// re-export the core config for convenience

View File

@ -4,14 +4,12 @@ use reth_node_api::FullNodeComponents;
use reth_node_core::{
dirs::{ChainPath, DataDirPath},
node_config::NodeConfig,
rpc::{
api::EngineApiClient,
builder::{auth::AuthServerHandle, RpcServerHandle},
},
rpc::api::EngineApiClient,
};
use reth_payload_builder::PayloadBuilderHandle;
use reth_primitives::ChainSpec;
use reth_provider::ChainSpecProvider;
use reth_rpc_builder::{auth::AuthServerHandle, RpcServerHandle};
use reth_tasks::TaskExecutor;
use std::sync::Arc;

View File

@ -3,18 +3,13 @@
use futures::TryFutureExt;
use reth_network::NetworkHandle;
use reth_node_api::FullNodeComponents;
use reth_node_core::{
cli::config::RethRpcConfig,
node_config::NodeConfig,
rpc::{
api::EngineApiServer,
builder::{
auth::{AuthRpcModule, AuthServerHandle},
RethModuleRegistry, RpcModuleBuilder, RpcServerHandle, TransportRpcModules,
},
},
};
use reth_node_core::{node_config::NodeConfig, rpc::api::EngineApiServer};
use reth_payload_builder::PayloadBuilderHandle;
use reth_rpc_builder::{
auth::{AuthRpcModule, AuthServerHandle},
config::RethRpcServerConfig,
RethModuleRegistry, RpcModuleBuilder, RpcServerHandle, TransportRpcModules,
};
use reth_rpc_layer::JwtSecret;
use reth_tasks::TaskExecutor;
use reth_tracing::tracing::{debug, info};