Web3 signer validator definitions reloading on any request (#3801)
## Issue Addressed https://github.com/sigp/lighthouse/issues/3795 Co-authored-by: realbigsean <sean@sigmaprime.io>
This commit is contained in:
parent
830efdb5c2
commit
c85cd87c10
@ -994,17 +994,17 @@ impl InitializedValidators {
|
|||||||
let mut disabled_uuids = HashSet::new();
|
let mut disabled_uuids = HashSet::new();
|
||||||
for def in self.definitions.as_slice() {
|
for def in self.definitions.as_slice() {
|
||||||
if def.enabled {
|
if def.enabled {
|
||||||
|
let pubkey_bytes = def.voting_public_key.compress();
|
||||||
|
|
||||||
|
if self.validators.contains_key(&pubkey_bytes) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
match &def.signing_definition {
|
match &def.signing_definition {
|
||||||
SigningDefinition::LocalKeystore {
|
SigningDefinition::LocalKeystore {
|
||||||
voting_keystore_path,
|
voting_keystore_path,
|
||||||
..
|
..
|
||||||
} => {
|
} => {
|
||||||
let pubkey_bytes = def.voting_public_key.compress();
|
|
||||||
|
|
||||||
if self.validators.contains_key(&pubkey_bytes) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if let Some(key_store) = key_stores.get(voting_keystore_path) {
|
if let Some(key_store) = key_stores.get(voting_keystore_path) {
|
||||||
disabled_uuids.remove(key_store.uuid());
|
disabled_uuids.remove(key_store.uuid());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user