diff --git a/infrastructure/kzg/src/main/java/tech/pegasys/teku/kzg/ckzg4844/CKZG4844.java b/infrastructure/kzg/src/main/java/tech/pegasys/teku/kzg/ckzg4844/CKZG4844.java index 10627580348..1d961011a9d 100644 --- a/infrastructure/kzg/src/main/java/tech/pegasys/teku/kzg/ckzg4844/CKZG4844.java +++ b/infrastructure/kzg/src/main/java/tech/pegasys/teku/kzg/ckzg4844/CKZG4844.java @@ -61,7 +61,6 @@ public synchronized void loadTrustedSetup(final String trustedSetupFile) throws LOG.trace("Trusted setup from file {} is already loaded.", trustedSetupFile); return; } - try { final TrustedSetup trustedSetup = CKZG4844Utils.parseTrustedSetupFile(trustedSetupFile); final List g1Points = trustedSetup.g1Points(); diff --git a/validator/client/src/main/java/tech/pegasys/teku/validator/client/SignedValidatorRegistrationFactory.java b/validator/client/src/main/java/tech/pegasys/teku/validator/client/SignedValidatorRegistrationFactory.java index e0acd784d3a..e149a522979 100644 --- a/validator/client/src/main/java/tech/pegasys/teku/validator/client/SignedValidatorRegistrationFactory.java +++ b/validator/client/src/main/java/tech/pegasys/teku/validator/client/SignedValidatorRegistrationFactory.java @@ -90,13 +90,13 @@ public SafeFuture createSignedValidatorRegistration .orElseGet( () -> { final Signer signer = validator.getSigner(); - return signValidatorRegistration(publicKey, validatorRegistration, signer); + return signAndCacheValidatorRegistration(publicKey, validatorRegistration, signer); }) .whenException(errorHandler); } - private SafeFuture signValidatorRegistration( - final BLSPublicKey publicKey, + private SafeFuture signAndCacheValidatorRegistration( + final BLSPublicKey cacheKey, final ValidatorRegistration validatorRegistration, final Signer signer) { return signer @@ -106,7 +106,7 @@ private SafeFuture signValidatorRegistration( final SignedValidatorRegistration signedValidatorRegistration = ApiSchemas.SIGNED_VALIDATOR_REGISTRATION_SCHEMA.create( validatorRegistration, signature); - LOG.debug("Validator registration signed for {}", publicKey); + LOG.debug("Validator registration signed for {}", cacheKey); return signedValidatorRegistration; }); }