From d9b31fd6b09ad2ab000c24a3fe2defe1ab0b25a5 Mon Sep 17 00:00:00 2001 From: Brooks Prumo Date: Fri, 23 Sep 2022 14:04:48 -0400 Subject: [PATCH] ahv: Add debug logging for EAH (#27998) --- core/src/accounts_hash_verifier.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/src/accounts_hash_verifier.rs b/core/src/accounts_hash_verifier.rs index e962ad115e..a07e274965 100644 --- a/core/src/accounts_hash_verifier.rs +++ b/core/src/accounts_hash_verifier.rs @@ -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