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 <apfitzge@users.noreply.github.com>

Co-authored-by: apfitzge <apfitzge@users.noreply.github.com>
This commit is contained in:
Jeff Washington (jwash) 2022-05-06 12:38:09 -05:00 committed by GitHub
parent f3e4bd373d
commit 7401bc0fa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {