Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement BlockCache trait for FsBlockDb #1535

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions zcash_client_backend/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,15 @@ funds to those addresses. See [ZIP 320](https://zips.z.cash/zip-0320) for detail
- `zcash_client_backend::wallet::WalletTransparentOutput::from_parts`
now takes its height argument as `Option<BlockHeight>` rather than
`BlockHeight`.
- zcash_client_backend::data_api::chain:
- `BlockSource` added Send + Sync trait bounds
- `BlockSource::with_blocks` changed to async fn
- Changes to `BlockCache` trait:
- removed `sync` feature flag so it can be used in `scan_cached_blocks`
- all trait methods now return `zcash_client_backend::data_api::chain::error::Error`
so implementations may call `BlockSource::with_blocks` and propagate errors correctly.
- `scan_cached_blocks` now takes a block cache and a scan range for scanning.


### Removed
- `zcash_client_backend::data_api`:
Expand Down
4 changes: 1 addition & 3 deletions zcash_client_backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ orchard = { workspace = true, optional = true }
sapling.workspace = true

# - Sync engine
async-trait = { version = "0.1", optional = true }
async-trait = { version = "0.1" }
futures-util = { version = "0.3", optional = true }

# - Note commitment trees
Expand Down Expand Up @@ -171,15 +171,13 @@ orchard = ["dep:orchard", "dep:pasta_curves", "zcash_keys/orchard"]
## Exposes a wallet synchronization function that implements the necessary state machine.
sync = [
"lightwalletd-tonic",
"dep:async-trait",
"dep:futures-util",
]

## Exposes a Tor client for hiding a wallet's IP address while performing certain wallet
## operations.
tor = [
"dep:arti-client",
"dep:async-trait",
"dep:futures-util",
"dep:http-body-util",
"dep:hyper",
Expand Down
Loading