From 5829ef3a33305babefae159f84723f3354432726 Mon Sep 17 00:00:00 2001 From: Arya Date: Fri, 8 Nov 2024 19:46:47 -0500 Subject: [PATCH] Adds minor comments --- zebrad/src/components/mempool/storage/verified_set.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebrad/src/components/mempool/storage/verified_set.rs b/zebrad/src/components/mempool/storage/verified_set.rs index 27d5c90f4d9..54790477a49 100644 --- a/zebrad/src/components/mempool/storage/verified_set.rs +++ b/zebrad/src/components/mempool/storage/verified_set.rs @@ -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());