From 59525452e45cbfe77186c42bc26b36f4544a2ee2 Mon Sep 17 00:00:00 2001 From: Ishika Choudhury <117741714+Rimeeeeee@users.noreply.github.com> Date: Sat, 5 Apr 2025 16:05:08 +0530 Subject: [PATCH] chore: changed imports for custom-dev-node (#15555) --- Cargo.lock | 3 +-- examples/custom-dev-node/Cargo.toml | 3 +-- examples/custom-dev-node/src/main.rs | 8 ++++---- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 47f00b65e3..91fd0e1a43 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3390,9 +3390,8 @@ dependencies = [ "eyre", "futures-util", "reth", - "reth-chainspec", + "reth-ethereum", "reth-node-core", - "reth-node-ethereum", "serde_json", "tokio", ] diff --git a/examples/custom-dev-node/Cargo.toml b/examples/custom-dev-node/Cargo.toml index a001431c5a..95756b9e6a 100644 --- a/examples/custom-dev-node/Cargo.toml +++ b/examples/custom-dev-node/Cargo.toml @@ -7,9 +7,8 @@ license.workspace = true [dependencies] reth.workspace = true -reth-chainspec.workspace = true reth-node-core.workspace = true -reth-node-ethereum = { workspace = true, features = ["test-utils"] } +reth-ethereum = { workspace = true, features = ["node", "test-utils"] } futures-util.workspace = true eyre.workspace = true diff --git a/examples/custom-dev-node/src/main.rs b/examples/custom-dev-node/src/main.rs index eea90c9176..3aa806d51e 100644 --- a/examples/custom-dev-node/src/main.rs +++ b/examples/custom-dev-node/src/main.rs @@ -10,13 +10,13 @@ use alloy_primitives::{b256, hex}; use futures_util::StreamExt; use reth::{ builder::{NodeBuilder, NodeHandle}, - providers::CanonStateSubscriptions, - rpc::api::eth::helpers::EthTransactions, tasks::TaskManager, }; -use reth_chainspec::ChainSpec; +use reth_ethereum::{ + chainspec::ChainSpec, node::EthereumNode, provider::CanonStateSubscriptions, + rpc::api::eth::helpers::EthTransactions, +}; use reth_node_core::{args::RpcServerArgs, node_config::NodeConfig, primitives::SignedTransaction}; -use reth_node_ethereum::EthereumNode; #[tokio::main] async fn main() -> eyre::Result<()> {