From 76c30e7bd0d1c524321e5ee540bf147ec449a0d8 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Thu, 6 Oct 2022 17:11:08 -0700 Subject: [PATCH] move accounts_db::load_without_fixed_root to test mod (#28271) --- runtime/src/accounts_db.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index edfafe3f3d..6af7a1d3ba 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -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]