refactor: extract init from node-core (#8373)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
William Law
2024-05-25 03:20:04 -07:00
committed by GitHub
parent 0056f2f097
commit 7dd787707c
17 changed files with 80 additions and 21 deletions

View File

@@ -16,6 +16,7 @@ workspace = true
reth-auto-seal-consensus.workspace = true
reth-beacon-consensus.workspace = true
reth-blockchain-tree.workspace = true
reth-db-common.workspace = true
reth-exex.workspace = true
reth-evm.workspace = true
reth-provider.workspace = true

View File

@@ -9,11 +9,11 @@ use tokio::sync::mpsc::Receiver;
use reth_auto_seal_consensus::MiningMode;
use reth_config::{config::EtlConfig, PruneConfig};
use reth_db::{database::Database, database_metrics::DatabaseMetrics};
use reth_db_common::init::{init_genesis, InitDatabaseError};
use reth_interfaces::p2p::headers::client::HeadersClient;
use reth_node_core::{
cli::config::RethRpcConfig,
dirs::{ChainPath, DataDirPath},
init::{init_genesis, InitDatabaseError},
node_config::NodeConfig,
};
use reth_primitives::{BlockNumber, Chain, ChainSpec, Head, PruneModes, B256};