Search in sources :

Example 1 with FileBackedGraffitiProvider

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);
}
Also used : FileBackedGraffitiProvider(tech.pegasys.teku.validator.api.FileBackedGraffitiProvider)

Aggregations

FileBackedGraffitiProvider (tech.pegasys.teku.validator.api.FileBackedGraffitiProvider)1