From 8f2194eb2c41378ae30402db8477aefee5eae324 Mon Sep 17 00:00:00 2001 From: dapplion <35266934+dapplion@users.noreply.github.com> Date: Thu, 13 Mar 2025 13:38:34 -0300 Subject: [PATCH] Add logs when adding to pubkey cache --- beacon_node/beacon_chain/src/validator_pubkey_cache.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/beacon_node/beacon_chain/src/validator_pubkey_cache.rs b/beacon_node/beacon_chain/src/validator_pubkey_cache.rs index 877c297a3b..0866b0d0cf 100644 --- a/beacon_node/beacon_chain/src/validator_pubkey_cache.rs +++ b/beacon_node/beacon_chain/src/validator_pubkey_cache.rs @@ -64,6 +64,8 @@ impl ValidatorPubkeyCache { } } + debug!(indices = indices.len(), "Loaded pubkey cache from store"); + Ok(ValidatorPubkeyCache { pubkeys, indices, @@ -105,6 +107,11 @@ impl ValidatorPubkeyCache { self.pubkeys.reserve(validator_keys.len()); self.indices.reserve(validator_keys.len()); + debug!( + count = validator_keys.len(), + "Importing new pubkeys to the pubkey cache" + ); + let mut store_ops = Vec::with_capacity(validator_keys.len()); for pubkey_bytes in validator_keys { let i = self.pubkeys.len();