From 7401bc0fa5b380a1e843759e85bda4bc8be9e293 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Fri, 6 May 2022 12:38:09 -0500 Subject: [PATCH] remove_old_historical_roots uses correct epoch schedule (#25020) * remove_old_historical_roots uses correct epoch schedule * Update runtime/src/accounts_db.rs Co-authored-by: apfitzge Co-authored-by: apfitzge --- runtime/src/accounts_db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index 612871f812..7633f62791 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -5654,7 +5654,7 @@ impl AccountsDb { let result = self.calculate_accounts_hash_without_index(config, &storages, timings); // now that calculate_accounts_hash_without_index is complete, we can remove old historical roots - self.remove_old_historical_roots(slot, &config.rent_collector.epoch_schedule); + self.remove_old_historical_roots(slot, config.epoch_schedule); result } else {