Skip to content

Commit

Permalink
complete excision of getset, reveals dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
zancas committed Dec 2, 2024
1 parent e15223d commit 167404b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions zingo-sync/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,12 +475,12 @@ where
.unwrap();

// add spending transaction for all spent notes
let wallet_transactions = wallet.get_wallet_transactions().unwrap();
let wallet_transactions = wallet.get_wallet_transactions_mut().unwrap();
wallet_transactions
.values()
.flat_map(|tx| tx.sapling_notes)
.values_mut()
.flat_map(|tx| tx.sapling_notes.iter_mut())
.filter(|note| note.spending_transaction.is_none())
.for_each(|mut note| {
.for_each(|note| {
if let Some((_, txid)) = note
.nullifier
.and_then(|nf| sapling_spend_locators.get(&nf))
Expand All @@ -489,10 +489,10 @@ where
}
});
wallet_transactions
.values()
.flat_map(|tx| tx.orchard_notes)
.values_mut()
.flat_map(|tx| tx.orchard_notes.iter_mut())
.filter(|note| note.spending_transaction.is_none())
.for_each(|mut note| {
.for_each(|note| {
if let Some((_, txid)) = note
.nullifier
.and_then(|nf| orchard_spend_locators.get(&nf))
Expand Down

0 comments on commit 167404b

Please sign in to comment.