Browse Source

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

checkpoints
DenioD 5 years ago
parent
commit
9e710e0bfd
  1. 2
      README.md
  2. 4
      cli/src/lib.rs
  3. 8
      lib/src/lightclient.rs
  4. 4
      lib/src/lightwallet/startup_helpers.rs
  5. 4
      lib/src/startup_helpers.rs

2
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:

4
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);
}

8
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[..] {

4
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);
}

4
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);
}

Loading…
Cancel
Save