Skip to content

Commit

Permalink
ReadWriteAccountSet: use AHashSet
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge committed Jun 11, 2024
1 parent 2493542 commit ac311ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/banking_stage/read_write_account_set.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
use {
ahash::AHashSet,
solana_sdk::{message::SanitizedMessage, pubkey::Pubkey},
std::collections::HashSet,
};

/// Wrapper struct to accumulate locks for a batch of transactions.
#[derive(Debug, Default)]
pub struct ReadWriteAccountSet {
/// Set of accounts that are locked for read
read_set: HashSet<Pubkey>,
read_set: AHashSet<Pubkey>,
/// Set of accounts that are locked for write
write_set: HashSet<Pubkey>,
write_set: AHashSet<Pubkey>,
}

impl ReadWriteAccountSet {
Expand Down

0 comments on commit ac311ce

Please sign in to comment.