Skip to content

Commit

Permalink
Remove hack for buggy lightwalletd impls
Browse files Browse the repository at this point in the history
All deployed lightwalletd servers have the bug fixed.
  • Loading branch information
str4d committed Apr 26, 2024
1 parent 9b728d2 commit 75cf509
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/commands/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,6 @@ async fn update_subtree_roots<P: Parameters>(
) -> Result<(), anyhow::Error> {
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)
.await?
Expand All @@ -306,8 +304,6 @@ async fn update_subtree_roots<P: Parameters>(

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 75cf509

Please sign in to comment.