Skip to content

Commit

Permalink
Documentation typos and clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
daira authored Mar 4, 2025
1 parent d39e2b2 commit 5257bdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions zcash_client_sqlite/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ pub(crate) fn get_next_available_address<P: consensus::Parameters, C: Clock>(
UnifiedAddressRequest::unsafe_custom(Allow, Allow, Require),
)?;

// Select indicies from the transparent gap limit that are available for use as
// Select indices from the transparent gap limit that are available for use as
// diversifier indices.
let (gap_start, addrs) = transparent::select_addrs_to_reserve(
conn,
Expand Down Expand Up @@ -779,7 +779,8 @@ pub(crate) fn get_last_generated_address_matching<P: consensus::Parameters>(
let require_flags = ReceiverFlags::required(requirements);
let omit_flags = ReceiverFlags::omitted(requirements);
// This returns the most recently exposed external-scope address (the address that was exposed
// at the greatest block height) that conforms to the specified requirements.
// at the greatest block height, using the largest diversifier index to break ties)
// that conforms to the specified requirements.
let addr: Option<(String, Vec<u8>)> = conn
.query_row(
"SELECT address, diversifier_index_be
Expand Down
2 changes: 1 addition & 1 deletion zcash_client_sqlite/src/wallet/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ CREATE TABLE "transactions" (
/// - `memo`: the memo output associated with the note, if known
/// - `commitment_tree_position`: the 0-based index of the note in the leaves of the note
/// commitment tree.
/// - `receipient_key_scope`: the ZIP 32 key scope of the key that decrypted this output,
/// - `recipient_key_scope`: the ZIP 32 key scope of the key that decrypted this output,
/// encoded as `0` for external scope and `1` for internal scope.
/// - `address_id`: a foreign key to the address that this note was sent to; null in the
/// case that the note was sent to an internally-scoped address (we never store addresses
Expand Down

0 comments on commit 5257bdb

Please sign in to comment.