-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Summary of Bug
Given the usage of panics down below
in this code section
Lines 155 to 174 in 3157d97
| iter := sdk.KVStoreReversePrefixIterator(store, stakingtypes.ValidatorsKey) | |
| counter := int16(0) | |
| for ; iter.Valid(); iter.Next() { | |
| addr := sdk.ValAddress(iter.Key()[1:]) | |
| validator, found := app.StakingKeeper.GetValidator(ctx, addr) | |
| if !found { | |
| panic("expected validator, not found") | |
| } | |
| validator.UnbondingHeight = 0 | |
| if applyAllowedAddrs && !allowedAddrsMap[addr.String()] { | |
| validator.Jailed = true | |
| } | |
| app.StakingKeeper.SetValidator(ctx, validator) | |
| counter++ | |
| } | |
| iter.Close() |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels