mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-11-02 21:17:03 +00:00
Fix typos
This commit is contained in:
@@ -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>();
|
||||
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),
|
||||
@@ -678,7 +678,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
|
||||
|
||||
@@ -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<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>,
|
||||
|
||||
// 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)>>()
|
||||
}
|
||||
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user