diff --git a/README.md b/README.md index 293c354..2528139 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Run `zecwallet-cli help` to see a list of all commands. ## Notes: * If you want to run your own server, please see [zecwallet lightwalletd](https://github.com/adityapk00/lightwalletd), and then run `./zecwallet-cli --server http://127.0.0.1:9067`. -* The log file is in `~/.zcash/zecwallet-light-wallet.debug.log`. Wallet is stored in `~/.zcash/zecwallet-light-wallet.dat` +* The log file is in `~/.zero/zerowallet-light-wallet.debug.log`. Wallet is stored in `~/.zero/zerowallet-light-wallet.dat` ### Note Management Zecwallet-CLI does automatic note and utxo management, which means it doesn't allow you to manually select which address to send outgoing transactions from. It follows these principles: diff --git a/cli/src/lib.rs b/cli/src/lib.rs index 8064d9f..095ed2e 100644 --- a/cli/src/lib.rs +++ b/cli/src/lib.rs @@ -67,7 +67,7 @@ pub fn report_permission_error() { eprintln!("HOME: {}", home); eprintln!("Executable: {}", current_executable.display()); if home == "/" { - eprintln!("User {} must have permission to write to '{}.zcash/' .", + eprintln!("User {} must have permission to write to '{}.zero/' .", user, home); } else { diff --git a/lib/src/lightclient.rs b/lib/src/lightclient.rs index 76bdd8d..088aef5 100644 --- a/lib/src/lightclient.rs +++ b/lib/src/lightclient.rs @@ -39,8 +39,8 @@ use crate::ANCHOR_OFFSET; mod checkpoints; pub const DEFAULT_SERVER: &str = "https://lightwalletd.zeromachine.io:443"; -pub const WALLET_NAME: &str = "zecwallet-light-wallet.dat"; -pub const LOGFILE_NAME: &str = "zecwallet-light-wallet.debug.log"; +pub const WALLET_NAME: &str = "zerowallet-light-wallet.dat"; +pub const LOGFILE_NAME: &str = "zerowallet-light-wallet.debug.log"; #[derive(Clone, Debug)] pub struct WalletStatus { @@ -113,7 +113,7 @@ impl LightClientConfig { pub fn get_log_config(&self) -> io::Result { let window_size = 3; // log0, log1, log2 let fixed_window_roller = - FixedWindowRoller::builder().build("zecwallet-light-wallet-log{}",window_size).unwrap(); + FixedWindowRoller::builder().build("zerowallet-light-wallet-log{}",window_size).unwrap(); let size_limit = 5 * 1024 * 1024; // 5MB as max log file size to roll let size_trigger = SizeTrigger::new(size_limit); let compound_policy = CompoundPolicy::new(Box::new(size_trigger),Box::new(fixed_window_roller)); @@ -146,10 +146,10 @@ impl LightClientConfig { } else { if cfg!(target_os="macos") || cfg!(target_os="windows") { zcash_data_location = dirs::data_dir().expect("Couldn't determine app data directory!"); - zcash_data_location.push("Zcash"); + zcash_data_location.push("Zero"); } else { zcash_data_location = dirs::home_dir().expect("Couldn't determine home directory!"); - zcash_data_location.push(".zcash"); + zcash_data_location.push(".zero"); }; match &self.chain_name[..] { @@ -166,8 +166,8 @@ impl LightClientConfig { match std::fs::create_dir_all(zcash_data_location.clone()) { Ok(_) => {}, Err(e) => { - eprintln!("Couldn't create zcash directory!\n{}", e); - panic!("Couldn't create zcash directory!"); + eprintln!("Couldn't create zero directory!\n{}", e); + panic!("Couldn't create zero directory!"); } } } @@ -193,7 +193,7 @@ impl LightClientConfig { use std::time::{SystemTime, UNIX_EPOCH}; let mut backup_file_path = self.get_zcash_data_path().into_path_buf(); - backup_file_path.push(&format!("zecwallet-light-wallet.backup.{}.dat", SystemTime::now().duration_since(UNIX_EPOCH).unwrap().as_secs())); + backup_file_path.push(&format!("zerowallet-light-wallet.backup.{}.dat", SystemTime::now().duration_since(UNIX_EPOCH).unwrap().as_secs())); let backup_file_str = backup_file_path.to_string_lossy().to_string(); std::fs::copy(self.get_wallet_path(), backup_file_path).map_err(|e| format!("{}", e))?;