diff --git a/accounts-db/src/accounts_db.rs b/accounts-db/src/accounts_db.rs index 3e246f08820054..fc447ae01b3d9a 100644 --- a/accounts-db/src/accounts_db.rs +++ b/accounts-db/src/accounts_db.rs @@ -7536,15 +7536,6 @@ impl AccountsDb { } } - /// Wrapper function to calculate accounts delta hash for `slot` (only used for testing and benchmarking.) - /// - /// 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()) - } - /// Calculate accounts delta hash for `slot` /// /// As part of calculating the accounts delta hash, get a list of accounts modified this slot @@ -9299,6 +9290,22 @@ impl AccountStorageEntry { // These functions/fields are only usable from a dev context (i.e. tests and benches) #[cfg(feature = "dev-context-only-utils")] impl AccountsDb { + /// useful to adapt tests written prior to introduction of the write cache + /// to use the write cache + pub fn add_root_and_flush_write_cache(&self, slot: Slot) { + self.add_root(slot); + self.flush_root_write_cache(slot); + } + + /// Wrapper function to calculate accounts delta hash for `slot` (only used for testing and benchmarking.) + /// + /// 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()) + } + pub fn load_without_fixed_root( &self, ancestors: &Ancestors, @@ -9436,13 +9443,6 @@ impl AccountsDb { ) } - /// useful to adapt tests written prior to introduction of the write cache - /// to use the write cache - pub fn add_root_and_flush_write_cache(&self, slot: Slot) { - self.add_root(slot); - self.flush_root_write_cache(slot); - } - /// useful to adapt tests written prior to introduction of the write cache /// to use the write cache pub fn flush_root_write_cache(&self, root: Slot) {