mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
feat: move RethRpcConfig to rpc-builder (#8684)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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};
|
||||
|
||||
Reference in New Issue
Block a user