mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 12:48:00 +00:00
Fix purge-chain and print DB info on startup (#5840)
* purge-chain accepts --db option * print DB info on startup * Small refactoring * Added back &self * Add DatabaseParams for PurgeChain, ImportParams and ExportBlocks * Don't force default value * Remove unused fields * Update client/cli/src/commands/export_blocks_cmd.rs * Fix stuff Co-authored-by: Cecile Tonglet <cecile@parity.io> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
@@ -164,6 +164,10 @@ impl<C: SubstrateCli> Runner<C> {
|
||||
info!("📋 Chain specification: {}", self.config.chain_spec.name());
|
||||
info!("🏷 Node name: {}", self.config.network.node_name);
|
||||
info!("👤 Role: {}", self.config.display_role());
|
||||
info!("💾 Database: {} at {}",
|
||||
self.config.database,
|
||||
self.config.database.path().map_or_else(|| "<unknown>".to_owned(), |p| p.display().to_string())
|
||||
);
|
||||
info!("⛓ Native runtime: {}", runtime_version);
|
||||
|
||||
match self.config.role {
|
||||
|
||||
Reference in New Issue
Block a user