ahv: Add debug logging for EAH (#27998)

This commit is contained in:
Brooks Prumo 2022-09-23 14:04:48 -04:00 committed by GitHub
parent 206cc9407b
commit d9b31fd6b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -65,6 +65,12 @@ impl AccountsHashVerifier {
continue;
}
let accounts_package = accounts_package.unwrap();
debug!(
"handling accounts package, type: {:?}, slot: {}, block height: {}",
accounts_package.package_type,
accounts_package.slot,
accounts_package.block_height,
);
Self::process_accounts_package(
accounts_package,
@ -231,6 +237,10 @@ impl AccountsHashVerifier {
fn save_epoch_accounts_hash(accounts_package: &AccountsPackage, accounts_hash: Hash) {
if accounts_package.package_type == AccountsPackageType::EpochAccountsHash {
debug!(
"saving epoch accounts hash, slot: {}, hash: {}",
accounts_package.slot, accounts_hash
);
let new_epoch_accounts_hash = EpochAccountsHash::new(accounts_hash);
let old_epoch_accounts_hash = accounts_package
.accounts