Skip to content

Commit

Permalink
fixup! fixup! Merge branch 'murisi/masp-fixes' (#2371)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzemanovic committed Jan 16, 2024
1 parent c1e6eee commit 4438f66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/src/masp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ impl<U: ShieldedUtils + MaybeSend + MaybeSync> ShieldedContext<U> {
// Update this unknown shielded context until it is level with self
while tx_ctx.last_indexed != self.last_indexed {
if let Some((indexed_tx, (epoch, tx, stx))) = tx_iter.next() {
tx_ctx.scan_tx(*indexed_tx, *epoch, tx, stx).await?;
tx_ctx.scan_tx(*indexed_tx, *epoch, tx, stx)?;
} else {
break;
}
Expand All @@ -658,7 +658,7 @@ impl<U: ShieldedUtils + MaybeSend + MaybeSync> ShieldedContext<U> {
// Now that we possess the unspent notes corresponding to both old and
// new keys up until tx_pos, proceed to scan the new transactions.
for (indexed_tx, (epoch, tx, stx)) in &mut tx_iter {
self.scan_tx(*indexed_tx, *epoch, tx, stx).await?;
self.scan_tx(*indexed_tx, *epoch, tx, stx)?;
}
Ok(())
}
Expand Down

0 comments on commit 4438f66

Please sign in to comment.