mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-09 03:31:45 +00:00
Add logs when adding to pubkey cache
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user