Add logs when adding to pubkey cache

This commit is contained in:
dapplion
2025-03-13 13:38:34 -03:00
committed by realbigsean
parent 8d058e4040
commit 8f2194eb2c

View File

@@ -64,6 +64,8 @@ impl<T: BeaconChainTypes> ValidatorPubkeyCache<T> {
}
}
debug!(indices = indices.len(), "Loaded pubkey cache from store");
Ok(ValidatorPubkeyCache {
pubkeys,
indices,
@@ -105,6 +107,11 @@ impl<T: BeaconChainTypes> ValidatorPubkeyCache<T> {
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();