cleanup CalcAccountsHashDataSource (#28882)

This commit is contained in:
Jeff Washington (jwash) 2022-11-18 14:49:22 -08:00 committed by GitHub
parent f22104d46b
commit 8cbe83c725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -297,7 +297,6 @@ impl SnapshotRequestHandler {
let previous_hash = if test_hash_calculation {
// We have to use the index version here.
// We cannot calculate the non-index way because cache has not been flushed and stores don't match reality.
// This comment is out of date and can be re-evaluated.
snapshot_root_bank.update_accounts_hash(
CalcAccountsHashDataSource::IndexForTests,
false,

View File

@ -9587,8 +9587,8 @@ impl AccountsDb {
/// Specify the source of the accounts data when calculating the accounts hash
///
/// Using the Index is meant for tests and debugging; not intended during normal validator
/// operation.
/// Using the Index is meant for testing the hash calculation itself and debugging;
/// not intended during normal validator operation.
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
pub enum CalcAccountsHashDataSource {
IndexForTests,