mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05:00
feat(node): log storage settings after genesis init (#21229)
This commit is contained in:
committed by
GitHub
parent
22b465dd64
commit
660964a0f5
@@ -32,7 +32,7 @@ use reth_node_core::{
|
||||
use reth_node_events::node;
|
||||
use reth_provider::{
|
||||
providers::{BlockchainProvider, NodeTypesForProvider},
|
||||
BlockNumReader, MetadataProvider,
|
||||
BlockNumReader, StorageSettingsCache,
|
||||
};
|
||||
use reth_tasks::TaskExecutor;
|
||||
use reth_tokio_util::EventSender;
|
||||
@@ -41,7 +41,6 @@ use reth_trie_db::ChangesetCache;
|
||||
use std::{future::Future, pin::Pin, sync::Arc};
|
||||
use tokio::sync::{mpsc::unbounded_channel, oneshot};
|
||||
use tokio_stream::wrappers::UnboundedReceiverStream;
|
||||
use tracing::warn;
|
||||
|
||||
/// The engine node launcher.
|
||||
#[derive(Debug)]
|
||||
@@ -104,24 +103,8 @@ impl EngineNodeLauncher {
|
||||
.with_adjusted_configs()
|
||||
// Create the provider factory with changeset cache
|
||||
.with_provider_factory::<_, <CB::Components as NodeComponents<T>>::Evm>(changeset_cache.clone()).await?
|
||||
.inspect(|ctx| {
|
||||
.inspect(|_| {
|
||||
info!(target: "reth::cli", "Database opened");
|
||||
match ctx.provider_factory().storage_settings() {
|
||||
Ok(settings) => {
|
||||
info!(
|
||||
target: "reth::cli",
|
||||
?settings,
|
||||
"Storage settings"
|
||||
);
|
||||
},
|
||||
Err(err) => {
|
||||
warn!(
|
||||
target: "reth::cli",
|
||||
?err,
|
||||
"Failed to get storage settings"
|
||||
);
|
||||
},
|
||||
}
|
||||
})
|
||||
.with_prometheus_server().await?
|
||||
.inspect(|this| {
|
||||
@@ -130,6 +113,8 @@ impl EngineNodeLauncher {
|
||||
.with_genesis()?
|
||||
.inspect(|this: &LaunchContextWith<Attached<WithConfigs<<T::Types as NodeTypes>::ChainSpec>, _>>| {
|
||||
info!(target: "reth::cli", "\n{}", this.chain_spec().display_hardforks());
|
||||
let settings = this.provider_factory().cached_storage_settings();
|
||||
info!(target: "reth::cli", ?settings, "Loaded storage settings");
|
||||
})
|
||||
.with_metrics_task()
|
||||
// passing FullNodeTypes as type parameter here so that we can build
|
||||
|
||||
Reference in New Issue
Block a user