use of tech.pegasys.teku.validator.api.FileBackedGraffitiProvider in project teku by ConsenSys.
the class ValidatorOptions method configure.
public void configure(TekuConfiguration.Builder builder) {
if (validatorPerformanceTrackingEnabled != null) {
if (validatorPerformanceTrackingEnabled) {
this.validatorPerformanceTrackingMode = ValidatorPerformanceTrackingMode.ALL;
} else {
this.validatorPerformanceTrackingMode = ValidatorPerformanceTrackingMode.NONE;
}
}
builder.validator(config -> config.validatorKeystoreLockingEnabled(validatorKeystoreLockingEnabled).blindedBeaconBlocksApiEnabled(blindedBlocksApiEnabled).validatorPerformanceTrackingMode(validatorPerformanceTrackingMode).validatorExternalSignerSlashingProtectionEnabled(validatorExternalSignerSlashingProtectionEnabled).graffitiProvider(new FileBackedGraffitiProvider(Optional.ofNullable(graffiti), Optional.ofNullable(graffitiFile))).generateEarlyAttestations(generateEarlyAttestations));
validatorProposerOptions.configure(builder);
validatorKeysOptions.configure(builder);
}
Aggregations