Skip to content

Commit

Permalink
wow please kill me immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
2501babe committed Jan 14, 2025
1 parent 7280007 commit 58a3586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 58a3586

Please sign in to comment.