move accounts_db::load_without_fixed_root to test mod (#28271)

This commit is contained in:
Jeff Washington (jwash) 2022-10-06 17:11:08 -07:00 committed by GitHub
parent a8d5731e5b
commit 76c30e7bd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

@ -4843,14 +4843,6 @@ impl AccountsDb {
.filter(|(account, _)| !account.is_zero_lamport())
}
pub fn load_without_fixed_root(
&self,
ancestors: &Ancestors,
pubkey: &Pubkey,
) -> Option<(AccountSharedData, Slot)> {
self.load(ancestors, pubkey, LoadHint::Unspecified)
}
fn read_index_for_accessor_or_load_slow<'a>(
&'a self,
ancestors: &Ancestors,
@ -9650,6 +9642,14 @@ pub mod tests {
None,
)
}
fn load_without_fixed_root(
&self,
ancestors: &Ancestors,
pubkey: &Pubkey,
) -> Option<(AccountSharedData, Slot)> {
self.load(ancestors, pubkey, LoadHint::Unspecified)
}
}
#[test]