mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-02-07 06:44:11 +00:00
Fix typos
This commit is contained in:
parent
0d874c2dec
commit
09b9181939
@ -1,6 +1,6 @@
|
|||||||
# Zeclite CLI - A command line ZecWallet light client.
|
# 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
|
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`
|
* The log file is in `~/.zcash/testnet3/zeclite.debug.log`
|
||||||
|
|
||||||
### Note Management
|
### 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
|
* 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
|
* 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)
|
* 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
|
## Compiling from source
|
||||||
|
@ -646,10 +646,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::<u64>();
|
let total_transparent_received = v.utxos.iter().map(|u| u.value).sum::<u64>();
|
||||||
if total_transparent_received > v.total_transparent_value_spent {
|
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!{
|
txns.push(object!{
|
||||||
"block_height" => v.block,
|
"block_height" => v.block,
|
||||||
"txid" => format!("{}", v.txid),
|
"txid" => format!("{}", v.txid),
|
||||||
@ -678,7 +678,7 @@ impl LightClient {
|
|||||||
// First, clear the state from the wallet
|
// First, clear the state from the wallet
|
||||||
self.wallet.clear_blocks();
|
self.wallet.clear_blocks();
|
||||||
|
|
||||||
// Then set the inital block
|
// Then set the initial block
|
||||||
self.set_wallet_initial_state();
|
self.set_wallet_initial_state();
|
||||||
|
|
||||||
// Then, do a sync, which will force a full rescan from the initial state
|
// Then, do a sync, which will force a full rescan from the initial state
|
||||||
|
@ -363,14 +363,14 @@ impl OutgoingTxMetadata {
|
|||||||
pub struct WalletTx {
|
pub struct WalletTx {
|
||||||
pub block: i32,
|
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)
|
// WalletTx in LightWallet::txs)
|
||||||
pub txid: TxId,
|
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<SaplingNoteData>,
|
pub notes: Vec<SaplingNoteData>,
|
||||||
|
|
||||||
// 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<Utxo>,
|
pub utxos: Vec<Utxo>,
|
||||||
|
|
||||||
// Total shielded value spent in this Tx. Note that this is the value of the wallet's notes spent.
|
// Total shielded value spent in this Tx. Note that this is the value of the wallet's notes spent.
|
||||||
|
@ -335,7 +335,7 @@ impl LightWallet {
|
|||||||
}).collect::<Vec<(String, String)>>()
|
}).collect::<Vec<(String, String)>>()
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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
|
// After this, the wallet's initial state will need to be set
|
||||||
// and the wallet will need to be rescanned
|
// and the wallet will need to be rescanned
|
||||||
pub fn clear_blocks(&self) {
|
pub fn clear_blocks(&self) {
|
||||||
@ -1072,7 +1072,7 @@ impl LightWallet {
|
|||||||
let mut builder = Builder::new(height);
|
let mut builder = Builder::new(height);
|
||||||
|
|
||||||
// A note on t addresses
|
// 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.
|
// 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,
|
// 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
|
// ZecWallet will add all your t-address funds into that transaction, and send them to your shielded
|
||||||
|
Loading…
Reference in New Issue
Block a user