Move delta hash test function to dev-context-utils (#151)

move delta hash test function to dev-context-utils

Co-authored-by: HaoranYi <haoran.yi@solana.com>
This commit is contained in:
HaoranYi 2024-03-08 12:14:40 -06:00 committed by GitHub
parent 68be105870
commit 1ac523c121
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -7882,6 +7882,7 @@ impl AccountsDb {
///
/// As part of calculating the accounts delta hash, get a list of accounts modified this slot
/// (aka dirty pubkeys) and add them to `self.uncleaned_pubkeys` for future cleaning.
#[cfg(feature = "dev-context-only-utils")]
pub fn calculate_accounts_delta_hash(&self, slot: Slot) -> AccountsDeltaHash {
self.calculate_accounts_delta_hash_internal(slot, None, HashMap::default())
}