Skip to content

Commit

Permalink
update SetValidatorForZone
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanhNhann committed Oct 24, 2023
1 parent a7a4ace commit a3cb797
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions x/interchainstaking/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,12 +345,6 @@ func (k *Keeper) SetValidatorForZone(ctx sdk.Context, zone *types.Zone, data []b
return err
}
} else if val.Jailed && !validator.IsJailed() {
consAddr, err := validator.GetConsAddr()
if err != nil {
return err
}
k.DeleteValidatorAddrByConsAddr(ctx, zone.ChainId, consAddr)

k.Logger(ctx).Info("Transitioning validator to unjailed state", "valoper", validator.OperatorAddress)

val.Jailed = false
Expand Down

0 comments on commit a3cb797

Please sign in to comment.