Documentation ¶
Index ¶
- func MigrateParams(store storetypes.KVStore, cdc codec.BinaryCodec) error
- func MigrateStore(ctx sdk.Context, emissionsKeeper keeper.Keeper) error
- func MigrateTopics(ctx sdk.Context, store storetypes.KVStore, cdc codec.BinaryCodec, ...) error
- func ResetMapsWithNonNumericValues(ctx sdk.Context, store storetypes.KVStore, cdc codec.BinaryCodec) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrateParams ¶
func MigrateParams(store storetypes.KVStore, cdc codec.BinaryCodec) error
migrate params for this new version the only change is the addition of MaxStringLength
func MigrateStore ¶
MigrateStore migrates the store from version 3 to version 4 it does the following: - migrates params - migrates topics - Deletes the contents of several maps that had NaN values in them
func MigrateTopics ¶
func MigrateTopics( ctx sdk.Context, store storetypes.KVStore, cdc codec.BinaryCodec, emissionsKeeper keeper.Keeper, ) error
migrate topics for this new version iterate through all topics, keep all the old values of these topics if a topic has a NaN value for InitialRegret, set the value to zero if the topic doesn't have a value for MeritSortitionAlpha, ActiveInfererQuantile, ActiveForecasterQuantile, or ActiveReputerQuantile, set those values to the default.
func ResetMapsWithNonNumericValues ¶
func ResetMapsWithNonNumericValues(ctx sdk.Context, store storetypes.KVStore, cdc codec.BinaryCodec) error
Clear out poison NaN values on different inferences, scores etc
Types ¶
This section is empty.