v4

package
v0.6.0-rc-1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

func MigrateStore(ctx sdk.Context, emissionsKeeper keeper.Keeper) error

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL