Skip to content

Commit

Permalink
fix rebasing conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-aouadi committed Feb 2, 2024
1 parent 3978a82 commit c598b14
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -688,19 +688,6 @@ protected void initSlashingEventsSubscriptions() {
}
}

protected void initSlashingEventsSubscriptions() {
if (beaconConfig.validatorConfig().isShutdownWhenValidatorSlashedEnabled()) {
final ValidatorTimingChannel validatorTimingChannel =
eventChannels.getPublisher(ValidatorTimingChannel.class);
attesterSlashingPool.subscribeOperationAdded(
(operation, validationStatus, fromNetwork) ->
validatorTimingChannel.onAttesterSlashing(operation));
proposerSlashingPool.subscribeOperationAdded(
(operation, validationStatus, fromNetwork) ->
validatorTimingChannel.onProposerSlashing(operation));
}
}

protected void initVoluntaryExitPool() {
LOG.debug("BeaconChainController.initVoluntaryExitPool()");
VoluntaryExitValidator validator = new VoluntaryExitValidator(spec, recentChainData);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public class ValidatorTimingActionsTest {
Map.entry(key4, ValidatorStatus.exited_slashed));

@Test
public void shouldPrintAlertForSlashedValidators_AttesterSlashing() {
public void shouldTriggerSlashingActionForSlashedValidators_AttesterSlashing() {
final ValidatorTimingActions validatorTimingActions =
new ValidatorTimingActions(
validatorIndexProvider, delegates, spec, metricsSystem, maybeSlashedValidatorAction);
Expand Down

0 comments on commit c598b14

Please sign in to comment.