Skip to content

Commit

Permalink
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 00d591e commit 2063358
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions sdk/src/masp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ use namada_core::types::masp::{
use namada_core::types::storage::{BlockHeight, Epoch, IndexedTx, TxIndex};
use namada_core::types::time::{DateTimeUtc, DurationSecs};
use namada_core::types::token;
use namada_core::types::token::{Change, MaspDenom, Transfer};
use namada_core::types::token::{MaspDenom, Transfer};
use namada_core::types::transaction::{TxResult, WrapperTx};
use rand_core::{CryptoRng, OsRng, RngCore};
use ripemd::Digest as RipemdDigest;
Expand Down 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
2 changes: 1 addition & 1 deletion shared/src/ledger/native_vp/masp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use namada_core::ledger::vp_env::VpEnv;
use namada_core::proto::Tx;
use namada_core::types::address::Address;
use namada_core::types::address::InternalAddress::Masp;
use namada_core::types::storage::{Epoch, IndexedTx, Key};
use namada_core::types::storage::{IndexedTx, Key};
use namada_core::types::token::{
self, is_masp_allowed_key, is_masp_key, is_masp_nullifier_key,
masp_pin_tx_key,
Expand Down

0 comments on commit 2063358

Please sign in to comment.