mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
refactor: move cli utils to new reth-cli-utils crate (#790)
* Move bin/src/util to reth-cli-utils * Add reth-cli-utils to workspace members * Fix imports in bin/src * Create reth-cli-utils crate * Add utils import
This commit is contained in:
@ -1,6 +1,10 @@
|
||||
//! P2P Debugging tool
|
||||
use backon::{ConstantBackoff, Retryable};
|
||||
use clap::{Parser, Subcommand};
|
||||
use reth_cli_utils::{
|
||||
chainspec::{chain_spec_value_parser, ChainSpecification},
|
||||
hash_or_num_value_parser,
|
||||
};
|
||||
use reth_db::mdbx::{Env, EnvKind, WriteMap};
|
||||
use reth_interfaces::p2p::{
|
||||
bodies::client::BodiesClient,
|
||||
@ -10,14 +14,7 @@ use reth_network::FetchClient;
|
||||
use reth_primitives::{BlockHashOrNumber, Header, NodeRecord, SealedHeader};
|
||||
use std::sync::Arc;
|
||||
|
||||
use crate::{
|
||||
config::Config,
|
||||
dirs::ConfigPath,
|
||||
util::{
|
||||
chainspec::{chain_spec_value_parser, ChainSpecification},
|
||||
hash_or_num_value_parser,
|
||||
},
|
||||
};
|
||||
use crate::{config::Config, dirs::ConfigPath};
|
||||
|
||||
/// `reth p2p` command
|
||||
#[derive(Debug, Parser)]
|
||||
|
||||
Reference in New Issue
Block a user