move accounts_db::load_without_fixed_root to test mod (#28271)
This commit is contained in:
parent
a8d5731e5b
commit
76c30e7bd0
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue