mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 14:27:57 +00:00
Fix CLI setup again (#4851)
* Fix CLI setup again We need to set `config_dir` and `database_path` for almost every command. This fixes `purge-chain` and also adds a test to make sure we don't break it again. * Adds missing test files * Split methods
This commit is contained in:
@@ -933,11 +933,7 @@ impl RunCmd {
|
||||
{
|
||||
assert!(config.chain_spec.is_some(), "chain_spec must be present before continuing");
|
||||
|
||||
crate::update_config_for_running_node(
|
||||
&mut config,
|
||||
self,
|
||||
&version,
|
||||
)?;
|
||||
crate::update_config_for_running_node(&mut config, self)?;
|
||||
|
||||
crate::run_node(config, new_light, new_full, &version)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user