mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
fix(node): insert genesis on node startup (#909)
This commit is contained in:
@@ -12,6 +12,7 @@ use clap::{crate_version, Parser};
|
||||
use eyre::Context;
|
||||
use fdlimit::raise_fd_limit;
|
||||
use futures::{stream::select as stream_select, Stream, StreamExt};
|
||||
use reth_cli_utils::init::init_genesis;
|
||||
use reth_consensus::BeaconConsensus;
|
||||
use reth_downloaders::{bodies, headers};
|
||||
use reth_interfaces::consensus::ForkchoiceState;
|
||||
@@ -114,6 +115,9 @@ impl Command {
|
||||
HeaderMetrics::describe();
|
||||
}
|
||||
|
||||
let genesis = init_genesis(db.clone(), self.chain.genesis().clone())?;
|
||||
info!(target: "reth::cli", ?genesis, "Inserted genesis");
|
||||
|
||||
let consensus: Arc<BeaconConsensus> = Arc::new(BeaconConsensus::new(self.chain.clone()));
|
||||
|
||||
let network = config
|
||||
|
||||
Reference in New Issue
Block a user