Browse Source
Merge pull request #31 from DenioD/dev
change wallet.dat and .log path to ./silentdragon
pull/10/head
Denio
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
11 additions and
11 deletions
README.md
cli/src/lib.rs
lib/src/lightclient.rs
lib/src/lightwallet/startup_helpers.rs
lib/src/startup_helpers.rs
@ -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:
@ -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 ) ;
}
@ -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 ) ;
}