Skip to content

Commit

Permalink
Update x/ccv/provider/keeper/punish_validator.go
Browse files Browse the repository at this point in the history
Co-authored-by: insumity <[email protected]>
  • Loading branch information
sainoe and insumity authored Oct 12, 2023
1 parent 991181a commit c858173
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion x/ccv/provider/keeper/punish_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ func (k Keeper) JailAndTombstoneValidator(ctx sdk.Context, providerAddr types.Pr
k.slashingKeeper.JailUntil(ctx, providerAddr.ToSdkConsAddr(), evidencetypes.DoubleSignJailEndTime)

// Tombstone the validator so that we cannot slash the validator more than once
// (see cosmos/cosmos-sdk/blob/v0.45.16-ics-lsm/x/evidence/keeper/infraction.go#L81).
// Note that we cannot simply use the fact that a validator is jailed to avoid slashing more than once
// because then a validator could i) perform an equivocation, ii) get jailed (e.g., through downtime)
// and in such a case the validator would not get slashed when we call `SlashValidator`.
Expand Down

0 comments on commit c858173

Please sign in to comment.