mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-10-17 07:11:36 +02:00
In the middle of debugging hell, default overwrite any updates to the config made earlier, its never written to a file when running init
This commit is contained in:
@@ -19,6 +19,7 @@ serde_derive = "1"
|
||||
serde_json = "1"
|
||||
log = "0.4"
|
||||
ring = "0.16"
|
||||
dirs = "2.0"
|
||||
uuid = { version = "0.8", features = ["serde", "v4"] }
|
||||
chrono = { version = "0.4.11", features = ["serde"] }
|
||||
lazy_static = "1"
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
// limitations under the License.
|
||||
|
||||
//! Default wallet lifecycle provider
|
||||
|
||||
use crate::config::{
|
||||
config, GlobalWalletConfig, GlobalWalletConfigMembers, TorConfig, WalletConfig, GRIN_WALLET_DIR,
|
||||
};
|
||||
@@ -137,10 +136,13 @@ where
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let mut abs_path = std::env::current_dir()?;
|
||||
abs_path.push(self.data_dir.clone());
|
||||
// let mut abs_path_node = std::env::current_dir()?;
|
||||
// let mut abs_path_wallet = std::env::current_dir()?;
|
||||
// abs_path_wallet.push(self.data_dir.clone());
|
||||
// abs_path_node.push(self.data_dir.clone());
|
||||
// default_config.update_paths(&abs_path_wallet,&abs_path_node);
|
||||
// println!("here, updating and writing config in default");
|
||||
|
||||
default_config.update_paths(&abs_path);
|
||||
let res =
|
||||
default_config.write_to_file(config_file_name.to_str().unwrap(), false, None, None);
|
||||
if let Err(e) = res {
|
||||
|
||||
Reference in New Issue
Block a user