Skip to content

Commit

Permalink
Merge pull request #261 from nerdcash/taddr
Browse files Browse the repository at this point in the history
Prepare for smarter t-addr downloads
  • Loading branch information
AArnott authored Mar 4, 2024
2 parents d7d810e + cc97978 commit 78fbd5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/nerdbank-zcash-rust/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,14 @@ pub async fn sync<P: AsRef<Path>>(

// Download all the transparent ops related to the wallet first.
// We don't need batches for this as that would just multiply the number of LWD requests we have to make.
for (address, height) in db.data.get_transparent_addresses_and_sync_heights()? {
let taddrs_by_account = db.data.get_transparent_addresses_and_sync_heights()?;
for addr_info in taddrs_by_account {
let txids = download_transparent_transactions(
&mut client,
&mut db,
&network,
&address,
height,
&addr_info.address,
addr_info.height,
tip_height,
cancellation_token.clone(),
)
Expand Down

0 comments on commit 78fbd5e

Please sign in to comment.