Fix db path on normal run.
@@ -804,9 +804,7 @@ where
E: ChainSpecExtension,
S: FnOnce(&str) -> Result<Option<ChainSpec<G, E>>, String>,
{
- let spec = load_spec(&cli.shared_params, spec_factory)?;
- let base_path = base_path(&cli.shared_params, &version);
- let mut config = service::Configuration::default_with_spec_and_base_path(spec.clone(), Some(base_path));
+ let mut config = create_config_with_db_path(spec_factory, &cli.shared_params, &version)?;
fill_config_keystore_password(&mut config, &cli)?;
