change wallet.dat and .log path to ./silentdragon
This commit is contained in:
@@ -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[..] {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user