test (#9484)
Co-authored-by: Anil Kumar Kammari <anil@vitwit.com> Co-authored-by: Cory <cjlevinson@gmail.com>
This commit is contained in:
parent
745154aec0
commit
606bb2f46d
|
@ -56,8 +56,12 @@ func migrateValidatorsByPowerIndexKey(store sdk.KVStore) {
|
|||
}
|
||||
|
||||
func migrateParamsStore(ctx sdk.Context, paramstore paramtypes.Subspace) {
|
||||
paramstore.WithKeyTable(types.ParamKeyTable())
|
||||
paramstore.Set(ctx, types.KeyPowerReduction, sdk.DefaultPowerReduction)
|
||||
if paramstore.HasKeyTable() {
|
||||
paramstore.Set(ctx, types.KeyPowerReduction, sdk.DefaultPowerReduction)
|
||||
} else {
|
||||
paramstore.WithKeyTable(types.ParamKeyTable())
|
||||
paramstore.Set(ctx, types.KeyPowerReduction, sdk.DefaultPowerReduction)
|
||||
}
|
||||
}
|
||||
|
||||
// MigrateStore performs in-place store migrations from v0.40 to v0.43. The
|
||||
|
|
Loading…
Reference in New Issue