cli/cli_config: disabled config db path. bin/darkfid: hardcoded path

This commit is contained in:
lunar-mining
2021-09-21 10:23:34 +02:00
parent fb7aa45400
commit 2daa4290ee

View File

@@ -38,10 +38,8 @@ struct Darkfid {
impl Darkfid {
fn new(verbose: bool, config_path: PathBuf) -> Result<Self, Error> {
let config: DarkfidConfig = Config::<DarkfidConfig>::load(config_path)?;
let wallet = WalletDb::new(
&PathBuf::from(config.walletdb_path.clone()),
config.password.clone(),
)?;
let wallet_path = join_config_path(&PathBuf::from("walletdb.db"))?;
let wallet = WalletDb::new(&PathBuf::from(wallet_path.clone()), config.password.clone())?;
Ok(Self {
verbose,