Skip to content

Commit

Permalink
Move remaining pool tests from zcash_client_sqlite to `zcash_client…
Browse files Browse the repository at this point in the history
…_backend`

Co-authored-by: Willem Olding <[email protected]>
  • Loading branch information
str4d and willemolding committed Sep 20, 2024
1 parent 0deee7a commit 1f23bc1
Show file tree
Hide file tree
Showing 8 changed files with 2,528 additions and 2,256 deletions.
1 change: 1 addition & 0 deletions zcash_client_backend/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this library adheres to Rust's notion of

### Added
- `zcash_client_backend::data_api`:
- `GAP_LIMIT`
- `WalletSummary::recovery_progress`

### Changed
Expand Down
6 changes: 5 additions & 1 deletion zcash_client_backend/src/data_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ pub const SAPLING_SHARD_HEIGHT: u8 = sapling::NOTE_COMMITMENT_TREE_DEPTH / 2;
#[cfg(feature = "orchard")]
pub const ORCHARD_SHARD_HEIGHT: u8 = { orchard::NOTE_COMMITMENT_TREE_DEPTH as u8 } / 2;

/// The number of ephemeral addresses that can be safely reserved without observing any
/// of them to be mined. This is the same as the gap limit in Bitcoin.
pub const GAP_LIMIT: u32 = 20;

/// An enumeration of constraints that can be applied when querying for nullifiers for notes
/// belonging to the wallet.
pub enum NullifierQuery {
Expand Down Expand Up @@ -1113,7 +1117,7 @@ pub trait WalletRead {

/// Returns a vector of ephemeral transparent addresses associated with the given
/// account controlled by this wallet, along with their metadata. The result includes
/// reserved addresses, and addresses for `GAP_LIMIT` additional indices (capped to
/// reserved addresses, and addresses for [`GAP_LIMIT`] additional indices (capped to
/// the maximum index).
///
/// If `index_range` is some `Range`, it limits the result to addresses with indices
Expand Down
Loading

0 comments on commit 1f23bc1

Please sign in to comment.