From 9e710e0bfdc6a6cb850d8bced02c15311d356122 Mon Sep 17 00:00:00 2001 From: DenioD Date: Sun, 27 Oct 2019 21:06:17 +0100 Subject: [PATCH] change wallet.dat and .log path to ./silentdragon --- README.md | 2 +- cli/src/lib.rs | 4 ++-- lib/src/lightclient.rs | 8 ++++---- lib/src/lightwallet/startup_helpers.rs | 4 ++-- lib/src/startup_helpers.rs | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 1b46e78..80d8e55 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Run `silentdragonlite-cli help` to see a list of all commands. ## Notes: * If you want to run your own server, please see [SilentDragonLite-cli lightwalletd](https://github.com/MyHush/lightwalletd), and then run `./silentdragonlite-cli --server http://127.0.0.1:9069`. You might also need to pass `--dangerous` if you are using a self-signed TLS certificate. -* The log file is in `~/.komodo/HUSH3/silentdragonlite-cli.debug.log`. Wallet is stored in `~/.komodo/HUSH3/silentdragonlite-cli.dat` +* The log file is in `~/.silentdragonlite/silentdragonlite-cli.debug.log`. Wallet is stored in `~/.silentdragonlite/silentdragonlite-cli.dat` ### Note Management silentdragonlite 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 4c31111..b7406dd 100644 --- a/cli/src/lib.rs +++ b/cli/src/lib.rs @@ -75,11 +75,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/' .", + 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); } diff --git a/lib/src/lightclient.rs b/lib/src/lightclient.rs index 7016e2b..832c3ba 100644 --- a/lib/src/lightclient.rs +++ b/lib/src/lightclient.rs @@ -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[..] { diff --git a/lib/src/lightwallet/startup_helpers.rs b/lib/src/lightwallet/startup_helpers.rs index 0b5ac59..6b47f46 100644 --- a/lib/src/lightwallet/startup_helpers.rs +++ b/lib/src/lightwallet/startup_helpers.rs @@ -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); } diff --git a/lib/src/startup_helpers.rs b/lib/src/startup_helpers.rs index c597c5d..44fd061 100644 --- a/lib/src/startup_helpers.rs +++ b/lib/src/startup_helpers.rs @@ -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); }