Skip to content

Commit

Permalink
fix --jail-whitelist?
Browse files Browse the repository at this point in the history
  • Loading branch information
assafmo committed Aug 30, 2020
1 parent 6338180 commit a245976
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++
}

Expand Down

0 comments on commit a245976

Please sign in to comment.