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); } }