More debugging, next trace the overwrite of the config

This commit is contained in:
Anynomouss
2025-02-05 20:54:33 +01:00
parent 4fb0b7b387
commit 0573393e8d
2 changed files with 72 additions and 28 deletions
+2 -6
View File
@@ -110,7 +110,6 @@ fn real_main() -> i32 {
// Load relevant config, try and load a wallet config file
// Use defaults for configuration if config file not found anywhere
dbg!(&current_dir, &create_path);
let mut config = match config::initial_setup_wallet(&chain_type, current_dir, create_path) {
Ok(c) => c,
Err(e) => match e {
@@ -142,6 +141,7 @@ fn real_main() -> i32 {
println!("here3");
log_build_info();
dbg!(&config.members.as_mut().unwrap().wallet.node_api_secret_path);
global::init_global_chain_type(
config
.members
@@ -153,14 +153,10 @@ fn real_main() -> i32 {
.unwrap()
.clone(),
);
println!("here4");
global::init_global_accept_fee_base(config.members.as_ref().unwrap().wallet.accept_fee_base());
let wallet_config = config.clone().members.unwrap().wallet;
println!("here5");
dbg!(&config.members.as_mut().unwrap().wallet.node_api_secret_path);
let node_client = HTTPNodeClient::new(&wallet_config.check_node_api_http_addr, None).unwrap();
println!("here6");
//dbg!(&config.check_node_api_http_addr, None).unwrap();
println!("here7");
cmd::wallet_command(&args, config, node_client)
}