mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 16:55:46 +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 {
|
Ok(ValidatorPubkeyCache {
|
||||||
pubkeys,
|
pubkeys,
|
||||||
indices,
|
indices,
|
||||||
@@ -105,6 +107,11 @@ impl<T: BeaconChainTypes> ValidatorPubkeyCache<T> {
|
|||||||
self.pubkeys.reserve(validator_keys.len());
|
self.pubkeys.reserve(validator_keys.len());
|
||||||
self.indices.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());
|
let mut store_ops = Vec::with_capacity(validator_keys.len());
|
||||||
for pubkey_bytes in validator_keys {
|
for pubkey_bytes in validator_keys {
|
||||||
let i = self.pubkeys.len();
|
let i = self.pubkeys.len();
|
||||||
|
|||||||
Reference in New Issue
Block a user