Skip to content

Commit

Permalink
make the tombstone field irrelevant for downtime infractions
Browse files Browse the repository at this point in the history
  • Loading branch information
stana-miric committed Dec 12, 2024
1 parent 66cc872 commit dbd34b7
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions x/ccv/provider/keeper/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,15 +507,6 @@ func (k Keeper) HandleSlashPacket(ctx sdk.Context, consumerId string, data ccv.S
k.Logger(ctx).Error("failed to set jail duration", "err", err.Error())
return
}

// tombstone validator
if infractionParams.Downtime.Tombstone {
if err = k.slashingKeeper.Tombstone(ctx, providerConsAddr.ToSdkConsAddr()); err != nil {
k.Logger(ctx).Error("failed to tombstone validator", "err", err.Error())
return
}
k.Logger(ctx).Info("HandleSlashPacket - validator tombstoned", "provider cons addr", providerConsAddr.String())
}
}

ctx.EventManager().EmitEvent(
Expand Down

0 comments on commit dbd34b7

Please sign in to comment.