fix: add data_dir to config to make config command work

This commit is contained in:
Lorenzo Tucci 2023-01-24 20:54:37 +01:00
parent 250764ed30
commit dc8982731c
No known key found for this signature in database
GPG key ID: D98C4FA2CDF590A0
3 changed files with 11 additions and 12 deletions

View file

@ -26,6 +26,7 @@ pub struct Config {
seed: Option<Seed>,
debug: bool,
json: bool,
data_dir: PathBuf,
pub is_testnet: bool,
}
@ -109,6 +110,7 @@ impl Context {
debug,
json,
is_testnet,
data_dir,
},
shutdown: Arc::new(shutdown),
running_swap: Arc::new(Mutex::new(false)),
@ -238,6 +240,7 @@ pub mod api_test {
debug,
json,
is_testnet,
data_dir
}
}
}