change wallet.dat and .log path to ./silentdragon

This commit is contained in:
DenioD
2019-10-27 21:06:17 +01:00
parent 020994549d
commit 9e710e0bfd
5 changed files with 11 additions and 11 deletions

View File

@@ -28,8 +28,8 @@ use crate::ANCHOR_OFFSET;
mod checkpoints;
pub const DEFAULT_SERVER: &str = "https://";
pub const WALLET_NAME: &str = "silentdragonlite-cli-wallet.dat";
pub const LOGFILE_NAME: &str = "silentdragonlite-cli-wallet.debug.log";
pub const WALLET_NAME: &str = "silentdragonlite-wallet.dat";
pub const LOGFILE_NAME: &str = "silentdragonlite-wallet.debug.log";
#[derive(Clone, Debug)]
pub struct WalletStatus {
@@ -100,10 +100,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("HUSH3");
zcash_data_location.push("silentdragonlite");
} else {
zcash_data_location = dirs::home_dir().expect("Couldn't determine home directory!");
zcash_data_location.push(".komodo/HUSH3");
zcash_data_location.push("/.silentdragonlite");
};
match &self.chain_name[..] {

View File

@@ -9,11 +9,11 @@ pub fn report_permission_error() {
eprintln!("HOME: {}", home);
eprintln!("Executable: {}", current_executable.display());
if home == "/" {
eprintln!("User {} must have permission to write to '{}.komodo/HUSH3/' .",
eprintln!("User {} must have permission to write to '{}.silentdragonlite/' .",
user,
home);
} else {
eprintln!("User {} must have permission to write to '{}/.komodo/HUSH3/ .",
eprintln!("User {} must have permission to write to '{}/.silentdragonlite/ .",
user,
home);
}

View File

@@ -9,11 +9,11 @@ pub fn report_permission_error() {
eprintln!("HOME: {}", home);
eprintln!("Executable: {}", current_executable.display());
if home == "/" {
eprintln!("User {} must have permission to write to '{}.komodo/HUSH3/' .",
eprintln!("User {} must have permission to write to '{}.silentdragonlite/' .",
user,
home);
} else {
eprintln!("User {} must have permission to write to '{}/.komodo/HUSH3/ .",
eprintln!("User {} must have permission to write to '{}/.silentdragonlite/ .",
user,
home);
}