Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print some useful logs on start like upstream CLI #342

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/backend/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ use subspace_service::config::{
use subspace_service::sync_from_dsn::DsnSyncPieceGetter;
use subspace_service::{FullClient, NewFull};
use tokio::time::MissedTickBehavior;
use tracing::{error, info_span};
use tracing::{error, info, info_span};

pub(super) const GENESIS_HASH: &str =
"66455a580aabff303720aa83adbe6c44502922251c03ba73686d5245da9e21bd";
Expand Down Expand Up @@ -493,6 +493,14 @@ pub(super) async fn create_consensus_node(

let consensus_chain_config =
create_consensus_chain_config(keypair, base_path.clone(), substrate_port, chain_spec);

info!(
"📋 Chain specification: {}",
consensus_chain_config.chain_spec.name()
);
info!("🏷 Node name: {}", consensus_chain_config.network.node_name);
info!("💾 Node path: {}", base_path.display());

let sync = consensus_chain_config.network.sync_mode;
let consensus_chain_config = Configuration::from(consensus_chain_config);
let pause_sync = Arc::clone(&consensus_chain_config.network.pause_sync);
Expand Down