Skip to content

Commit

Permalink
don't change file
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Oct 20, 2023
1 parent e9d0726 commit 00b2227
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Bytes> g1Points = trustedSetup.g1Points();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ public SafeFuture<SignedValidatorRegistration> createSignedValidatorRegistration
.orElseGet(
() -> {
final Signer signer = validator.getSigner();
return signValidatorRegistration(publicKey, validatorRegistration, signer);
return signAndCacheValidatorRegistration(publicKey, validatorRegistration, signer);
})
.whenException(errorHandler);
}

private SafeFuture<SignedValidatorRegistration> signValidatorRegistration(
final BLSPublicKey publicKey,
private SafeFuture<SignedValidatorRegistration> signAndCacheValidatorRegistration(
final BLSPublicKey cacheKey,
final ValidatorRegistration validatorRegistration,
final Signer signer) {
return signer
Expand All @@ -106,7 +106,7 @@ private SafeFuture<SignedValidatorRegistration> 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;
});
}
Expand Down

0 comments on commit 00b2227

Please sign in to comment.