Skip to content

Commit

Permalink
Web3 signer validator definitions reloading on any request (#3801)
Browse files Browse the repository at this point in the history
## Issue Addressed

#3795


Co-authored-by: realbigsean <sean@sigmaprime.io>
  • Loading branch information
realbigsean and realbigsean committed Jan 9, 2023
1 parent 830efdb commit c85cd87
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions validator_client/src/initialized_validators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -994,17 +994,17 @@ impl InitializedValidators {
let mut disabled_uuids = HashSet::new();
for def in self.definitions.as_slice() {
if def.enabled {
let pubkey_bytes = def.voting_public_key.compress();

if self.validators.contains_key(&pubkey_bytes) {
continue;
}

match &def.signing_definition {
SigningDefinition::LocalKeystore {
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) {
disabled_uuids.remove(key_store.uuid());
}
Expand Down

0 comments on commit c85cd87

Please sign in to comment.