Skip to content

Commit

Permalink
use StaticMeta instead
Browse files Browse the repository at this point in the history
  • Loading branch information
2501babe committed Feb 14, 2025
1 parent afc0f61 commit 1ba6d3f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3189,11 +3189,8 @@ impl Bank {
.enumerate()
.map(|(i, tx_result)| match tx_result {
Ok(()) if relax_intrabatch_account_locks => {
let message_hash =
*transactions[i].as_sanitized_transaction().message_hash();

// `HashSet::insert()` returns `true` when the value does *not* already exist
if batch_message_hashes.insert(message_hash) {
if batch_message_hashes.insert(transactions[i].message_hash()) {
Ok(())
} else {
Err(TransactionError::AccountInUse)
Expand Down

0 comments on commit 1ba6d3f

Please sign in to comment.