diff --git a/README.md b/README.md index cf2c57d..2c44a22 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Zeclite CLI - A command line ZecWallet light client. -`zeclite-cli` is a command line zecwallet light client. To use it, download the latest binary from the releases page and run `./zeclite-cli` +`zeclite-cli` is a command line ZecWallet light client. To use it, download the latest binary from the releases page and run `./zeclite-cli` This will launch the interactive prompt. Type `help` to get a list of commands @@ -14,10 +14,10 @@ This will launch the interactive prompt. Type `help` to get a list of commands * The log file is in `~/.zcash/testnet3/zeclite.debug.log` ### Note Management -Zeclite 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 priciples: +Zeclite 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: * Defaults to sending shielded transactions, even if you're sending to a transparent address * Can select funds from multiple shielded addresses in the same transaction -* Will automatically shield your transparent funds at the first oppurtunity +* Will automatically shield your transparent funds at the first opportunity * When sending an outgoing transaction to a shielded address, Zeclite can decide to use the transaction to additionally shield your transparent funds (i.e., send your transparent funds to your own shielded address in the same transaction) ## Compiling from source diff --git a/src/lightclient.rs b/src/lightclient.rs index 2a75efb..6005a21 100644 --- a/src/lightclient.rs +++ b/src/lightclient.rs @@ -614,10 +614,10 @@ impl LightClient { }) ); - // Get the total transparent recieved + // Get the total transparent received let total_transparent_received = v.utxos.iter().map(|u| u.value).sum::(); if total_transparent_received > v.total_transparent_value_spent { - // Create a input transaction for the transparent value as well. + // Create an input transaction for the transparent value as well. txns.push(object!{ "block_height" => v.block, "txid" => format!("{}", v.txid), @@ -646,7 +646,7 @@ impl LightClient { // First, clear the state from the wallet self.wallet.clear_blocks(); - // Then set the inital block + // Then set the initial block self.set_wallet_initial_state(); // Then, do a sync, which will force a full rescan from the initial state diff --git a/src/lightwallet/data.rs b/src/lightwallet/data.rs index d1e4b7e..d1d857a 100644 --- a/src/lightwallet/data.rs +++ b/src/lightwallet/data.rs @@ -363,14 +363,14 @@ impl OutgoingTxMetadata { pub struct WalletTx { pub block: i32, - // Txid of this transcation. It's duplicated here (It is also the Key in the HashMap that points to this + // Txid of this transaction. It's duplicated here (It is also the Key in the HashMap that points to this // WalletTx in LightWallet::txs) pub txid: TxId, - // List of all notes recieved in this tx. Some of these might be change notes. + // List of all notes received in this tx. Some of these might be change notes. pub notes: Vec, - // List of all Utxos recieved in this Tx. Some of these might be change notes + // List of all Utxos received in this Tx. Some of these might be change notes pub utxos: Vec, // Total shielded value spent in this Tx. Note that this is the value of the wallet's notes spent. diff --git a/src/lightwallet/mod.rs b/src/lightwallet/mod.rs index cfc6729..0140969 100644 --- a/src/lightwallet/mod.rs +++ b/src/lightwallet/mod.rs @@ -335,7 +335,7 @@ impl LightWallet { }).collect::>() } - // Clears all the downloaded blocks and resets the state back to the inital block. + // Clears all the downloaded blocks and resets the state back to the initial block. // After this, the wallet's initial state will need to be set // and the wallet will need to be rescanned pub fn clear_blocks(&self) { @@ -1072,7 +1072,7 @@ impl LightWallet { let mut builder = Builder::new(height); // A note on t addresses - // Funds recieved by t-addresses can't be explicitly spent in ZecWallet. + // Funds received by t-addresses can't be explicitly spent in ZecWallet. // ZecWallet will lazily consolidate all t address funds into your shielded addresses. // Specifically, if you send an outgoing transaction that is sent to a shielded address, // ZecWallet will add all your t-address funds into that transaction, and send them to your shielded