Renames fn to calculate_accounts_hash_from_index() (#28568)

This commit is contained in:
Brooks Prumo 2022-10-24 19:20:08 -04:00 committed by GitHub
parent dde8f0dfad
commit 2354a0a343
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -244,7 +244,7 @@ impl AccountsHashVerifier {
let result_with_index = accounts_package
.accounts
.accounts_db
.calculate_accounts_hash(
.calculate_accounts_hash_from_index(
accounts_package.slot,
&CalcAccountsHashConfig {
use_bg_thread_pool: false,

View File

@ -310,7 +310,7 @@ fn test_epoch_accounts_hash_basic(test_environment: TestEnvironment) {
.rc
.accounts
.accounts_db
.calculate_accounts_hash(
.calculate_accounts_hash_from_index(
bank.slot(),
&CalcAccountsHashConfig {
use_bg_thread_pool: false,

View File

@ -6782,7 +6782,7 @@ impl AccountsDb {
AccountsHash::checked_cast_for_capitalization(balances.map(|b| b as u128).sum::<u128>())
}
pub fn calculate_accounts_hash(
pub fn calculate_accounts_hash_from_index(
&self,
max_slot: Slot,
config: &CalcAccountsHashConfig<'_>,
@ -6893,7 +6893,7 @@ impl AccountsDb {
let (accumulated_hash, hash_total) = AccountsHash::calculate_hash(hashes);
hash_time.stop();
datapoint_info!(
"update_accounts_hash",
"calculate_accounts_hash_from_index",
("accounts_scan", scan.as_us(), i64),
("hash", hash_time.as_us(), i64),
("hash_total", hash_total, i64),
@ -7278,7 +7278,7 @@ impl AccountsDb {
self.calculate_accounts_hash_without_index(config, &storages, timings)
} else {
self.calculate_accounts_hash(slot, config)
self.calculate_accounts_hash_from_index(slot, config)
}
}