Skip to content

Commit

Permalink
Don't pass async runner if no external signer public key sources
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyeh committed May 7, 2024
1 parent 5d49652 commit 7e6d4d3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,10 @@ private static ValidatorLoader createValidatorLoader(
HttpClientExternalSignerFactory.create(validatorConfig);
final Optional<AsyncRunner> maybeAsyncRunner =
Optional.ofNullable(
validatorConfig.validatorExternalSignerPublicKeysRetryEnabled() ? asyncRunner : null);
!validatorConfig.getValidatorExternalSignerPublicKeySources().isEmpty()
&& validatorConfig.validatorExternalSignerPublicKeysRetryEnabled()
? asyncRunner
: null);
return ValidatorLoader.create(
config.getSpec(),
validatorConfig,
Expand Down

0 comments on commit 7e6d4d3

Please sign in to comment.