Skip to content

Commit

Permalink
Adds minor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
arya2 committed Nov 9, 2024
1 parent 874372a commit 5829ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zebrad/src/components/mempool/storage/verified_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,13 @@ impl VerifiedSet {
self.transaction_dependencies
.add(tx_id, spent_mempool_outpoints);

// Inserts the transaction's outputs into the internal caches and responds to pending output requests.
let tx = &transaction.transaction.transaction;
for (index, output) in tx.outputs().iter().cloned().enumerate() {
let outpoint = transparent::OutPoint::from_usize(tx_id, index);
self.created_outputs.insert(outpoint, output.clone());
pending_outputs.respond(&outpoint, output)
}

self.spent_outpoints.extend(tx.spent_outpoints());
self.sprout_nullifiers.extend(tx.sprout_nullifiers());
self.sapling_nullifiers.extend(tx.sapling_nullifiers());
Expand Down

0 comments on commit 5829ef3

Please sign in to comment.