From 58a358619a853ee430201ad8070d423fc9fb3287 Mon Sep 17 00:00:00 2001 From: hana <81144685+2501babe@users.noreply.github.com> Date: Tue, 14 Jan 2025 13:00:06 +0000 Subject: [PATCH] wow please kill me immediately --- runtime/src/bank.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 1f6333f6c00294..c41df53b21f278 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -3204,7 +3204,7 @@ impl Bank { let mut deduped_tx_results: Vec<_> = transaction_results.collect(); let mut batch_signatures = AHashSet::with_capacity(transactions.len()); for (i, tx) in transactions.iter().enumerate() { - if batch_signatures.insert(tx.signature()) && deduped_tx_results[i].is_ok() { + if !batch_signatures.insert(tx.signature()) && deduped_tx_results[i].is_ok() { deduped_tx_results[i] = Err(TransactionError::AccountInUse); } }