mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-29 17:55:19 +00:00
17 lines
527 B
Go
17 lines
527 B
Go
|
package v038
|
||
|
|
||
|
import (
|
||
|
v038evidence "github.com/cosmos/cosmos-sdk/x/evidence"
|
||
|
|
||
|
v18de63slashing "github.com/kava-labs/kava/migrate/v0_8/sdk/slashing/v18de63"
|
||
|
)
|
||
|
|
||
|
func Migrate(oldSlashingGenState v18de63slashing.GenesisState) v038evidence.GenesisState {
|
||
|
// Need to use DefaultGenesisState as evidence doesn't export Params type (inside internal/ and missing from alias.go)
|
||
|
|
||
|
newGenState := v038evidence.DefaultGenesisState()
|
||
|
newGenState.Params.MaxEvidenceAge = oldSlashingGenState.Params.MaxEvidenceAge
|
||
|
|
||
|
return newGenState
|
||
|
}
|