Skip to content

Commit

Permalink
zcash_client_backend: Remove lightwalletd workaround
Browse files Browse the repository at this point in the history
The bug was fixed in zcash/lightwalletd@b805382,
and the workaround doesn't work with backed by zebrad.
  • Loading branch information
str4d committed Jan 17, 2025
1 parent ebd2d3a commit 375a079
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions zcash_client_backend/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,6 @@ where
{
let mut request = service::GetSubtreeRootsArg::default();
request.set_shielded_protocol(service::ShieldedProtocol::Sapling);
// Hack to work around a bug in the initial lightwalletd implementation.
request.max_entries = 65536;

let sapling_roots: Vec<CommitmentTreeRoot<sapling::Node>> = client
.get_subtree_roots(request)
Expand All @@ -278,8 +276,7 @@ where
{
let mut request = service::GetSubtreeRootsArg::default();
request.set_shielded_protocol(service::ShieldedProtocol::Orchard);
// Hack to work around a bug in the initial lightwalletd implementation.
request.max_entries = 65536;

let orchard_roots: Vec<CommitmentTreeRoot<MerkleHashOrchard>> = client
.get_subtree_roots(request)
.await?
Expand Down

0 comments on commit 375a079

Please sign in to comment.