From 5af74ccac6b01a1bf5af3367e09bcbd953c31abd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keszey=20D=C3=A1niel?= Date: Sun, 15 Sep 2024 21:22:56 +0200 Subject: [PATCH] delete duplicated config and handle --- bin/reth/src/main.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/bin/reth/src/main.rs b/bin/reth/src/main.rs index 8ea057572f8c..7424ad1f0a0b 100644 --- a/bin/reth/src/main.rs +++ b/bin/reth/src/main.rs @@ -17,10 +17,6 @@ fn main() -> eyre::Result<()> { let tasks = TaskManager::current(); let exec = tasks.executor(); - let network_config = NetworkArgs { - discovery: DiscoveryArgs { disable_discovery: true, ..DiscoveryArgs::default() }, - ..NetworkArgs::default() - }; let network_config = NetworkArgs { discovery: DiscoveryArgs { disable_discovery: true, ..DiscoveryArgs::default() }, ..NetworkArgs::default() @@ -44,13 +40,6 @@ fn main() -> eyre::Result<()> { .with_rpc(RpcServerArgs::default().with_unused_ports().with_static_l2_rpc_ip_and_port()) .set_dev(true); - let NodeHandle { node: eth_node, node_exit_future: _ } = - NodeBuilder::new(node_config.clone()) - .testing_node(exec.clone()) - .node(EthereumNode::default()) - .launch() - .await?; - let NodeHandle { node: gwyneth_node, node_exit_future: _ } = NodeBuilder::new(node_config.clone()) .testing_node(exec.clone())