Skip to content
Snippets Groups Projects
Commit f4d83ddc authored by Pascal Engélibert's avatar Pascal Engélibert :bicyclist:
Browse files

Fix default distance dir

parent a0a6426e
No related branches found
No related tags found
1 merge request!105Distance Oracle
Pipeline #33224 waiting for manual action
......@@ -432,7 +432,12 @@ where
let mut command_sink_opt = None;
if role.is_authority() {
let distance_dir = config.base_path.as_ref().map_or_else(
|| PathBuf::from("/tmp/duniter-distance"),
|| {
PathBuf::from(format!(
"/tmp/duniter/chains/{}/distance",
config.chain_spec.id()
))
},
|base_path| {
base_path
.config_dir(config.chain_spec.id())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment