Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaroms committed Apr 17, 2024
1 parent 68e6915 commit 8e769da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x/dualstaking/keeper/slashing.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ func (k Keeper) HandleSlashedValidators(ctx sdk.Context, req abci.RequestBeginBl
switch tmEvidence.Type {
case abci.MisbehaviorType_DUPLICATE_VOTE, abci.MisbehaviorType_LIGHT_CLIENT_ATTACK:
evidence := evidenceTypes.FromABCIEvidence(tmEvidence)
k.BalanceValidatorsDelegators(ctx, evidence.(*evidenceTypes.Equivocation))
evidenceEq, ok := evidence.(*evidenceTypes.Equivocation)
if ok {
k.BalanceValidatorsDelegators(ctx, evidenceEq)
}

default:
k.Logger(ctx).Error(fmt.Sprintf("ignored unknown evidence type: %s", tmEvidence.Type))
Expand Down

0 comments on commit 8e769da

Please sign in to comment.