diff --git a/app.go b/app.go index 43b7e9e06..7217773bc 100644 --- a/app.go +++ b/app.go @@ -574,9 +574,12 @@ func (app *SecretNetworkApp) prepForZeroHeightGenesis(ctx sdk.Context, jailWhite validator.UnbondingHeight = 0 if applyWhiteList && !whiteListMap[addr.String()] { validator.Jailed = true + app.stakingKeeper.SetValidator(ctx, validator) + app.stakingKeeper.DeleteValidatorByPowerIndex(ctx, validator) + } else { + app.stakingKeeper.SetValidator(ctx, validator) } - app.stakingKeeper.SetValidator(ctx, validator) counter++ }