@@ -109,13 +109,13 @@ func (k Keeper) HandleValidatorSignature(ctx context.Context, addr cryptotypes.A
109109 minHeight := signInfo .StartHeight + signedBlocksWindow
110110 maxMissed := signedBlocksWindow - minSignedPerWindow
111111
112- params , err := k .GetParams (ctx )
112+ singularityHeight , err := k .SingularityHeight (ctx )
113113 if err != nil {
114114 return errors .Wrap (err , "failed to get params" )
115115 }
116116
117117 // if we are past the minimum height and the validator has missed too many blocks, punish them
118- if height > int64 (params . SingularityHeight ) && height > minHeight && signInfo .MissedBlocksCounter > maxMissed {
118+ if height > int64 (singularityHeight ) && height > minHeight && signInfo .MissedBlocksCounter > maxMissed {
119119 validator , err := k .sk .ValidatorByConsAddr (ctx , consAddr )
120120 if err != nil {
121121 return err
@@ -175,7 +175,7 @@ func (k Keeper) HandleValidatorSignature(ctx context.Context, addr cryptotypes.A
175175 "slashed" , slashFractionDowntime .String (),
176176 "jailed_until" , signInfo .JailedUntil ,
177177 )
178- } else if height == int64 (params . SingularityHeight ) {
178+ } else if height == int64 (singularityHeight ) {
179179 // reset the counter & bitmap so that the validator won't be
180180 // immediately slashed after singularity.
181181 signInfo .MissedBlocksCounter = 0
0 commit comments