@Test void doNotInitializeInteropValidatorsWhenInteropIsDisabled() { final int ownedValidatorCount = 10; final GlobalConfiguration globalConfig = GlobalConfiguration.builder() .setInteropEnabled(false) .setInteropOwnedValidatorCount(ownedValidatorCount) .build(); final ValidatorConfig config = ValidatorConfig.builder().build(); final Map<BLSPublicKey, Validator> validators = validatorLoader.initializeValidators(config, globalConfig); assertThat(validators).isEmpty(); }
public Map<BLSPublicKey, Validator> initializeValidators( ValidatorConfig config, final GlobalConfiguration globalConfiguration) { final Map<BLSPublicKey, Validator> validators = new HashMap<>(); validators.putAll(createLocalSignerValidator(config, globalConfiguration)); validators.putAll(createExternalSignerValidator(config)); STATUS_LOG.validatorsInitialised( validators.values().stream() .map(Validator::getPublicKey) .map(BLSPublicKey::toAbbreviatedString) .collect(Collectors.toList())); return validators; }
ValidatorLoader { public Map<BLSPublicKey, Validator> initializeValidators( ValidatorConfig config, final GlobalConfiguration globalConfiguration) { final Map<BLSPublicKey, Validator> validators = new HashMap<>(); validators.putAll(createLocalSignerValidator(config, globalConfiguration)); validators.putAll(createExternalSignerValidator(config)); STATUS_LOG.validatorsInitialised( validators.values().stream() .map(Validator::getPublicKey) .map(BLSPublicKey::toAbbreviatedString) .collect(Collectors.toList())); return validators; } }
ValidatorLoader { public Map<BLSPublicKey, Validator> initializeValidators( ValidatorConfig config, final GlobalConfiguration globalConfiguration) { final Map<BLSPublicKey, Validator> validators = new HashMap<>(); validators.putAll(createLocalSignerValidator(config, globalConfiguration)); validators.putAll(createExternalSignerValidator(config)); STATUS_LOG.validatorsInitialised( validators.values().stream() .map(Validator::getPublicKey) .map(BLSPublicKey::toAbbreviatedString) .collect(Collectors.toList())); return validators; } ValidatorLoader(final SlashingProtector slashingProtector, final AsyncRunner asyncRunner); }
ValidatorLoader { public Map<BLSPublicKey, Validator> initializeValidators( ValidatorConfig config, final GlobalConfiguration globalConfiguration) { final Map<BLSPublicKey, Validator> validators = new HashMap<>(); validators.putAll(createLocalSignerValidator(config, globalConfiguration)); validators.putAll(createExternalSignerValidator(config)); STATUS_LOG.validatorsInitialised( validators.values().stream() .map(Validator::getPublicKey) .map(BLSPublicKey::toAbbreviatedString) .collect(Collectors.toList())); return validators; } ValidatorLoader(final SlashingProtector slashingProtector, final AsyncRunner asyncRunner); Map<BLSPublicKey, Validator> initializeValidators(
      ValidatorConfig config, final GlobalConfiguration globalConfiguration); }
ValidatorLoader { public Map<BLSPublicKey, Validator> initializeValidators( ValidatorConfig config, final GlobalConfiguration globalConfiguration) { final Map<BLSPublicKey, Validator> validators = new HashMap<>(); validators.putAll(createLocalSignerValidator(config, globalConfiguration)); validators.putAll(createExternalSignerValidator(config)); STATUS_LOG.validatorsInitialised( validators.values().stream() .map(Validator::getPublicKey) .map(BLSPublicKey::toAbbreviatedString) .collect(Collectors.toList())); return validators; } ValidatorLoader(final SlashingProtector slashingProtector, final AsyncRunner asyncRunner); Map<BLSPublicKey, Validator> initializeValidators(
      ValidatorConfig config, final GlobalConfiguration globalConfiguration);  }