Documentation ¶
Index ¶
- Constants
- func DecodeStore(cdc *codec.Codec, kvA, kvB sdk.KVPair) string
- func GenDowntimeJailDuration(r *rand.Rand) time.Duration
- func GenEnableslashing(r *rand.Rand) bool
- func GenJailFractionLimit(r *rand.Rand) sdk.Dec
- func GenMaxEvidenceAge(r *rand.Rand) time.Duration
- func GenMinSignedPerWindow(r *rand.Rand) sdk.Dec
- func GenSignedBlocksWindow(r *rand.Rand) int64
- func GenSlashFractionDoubleSign(r *rand.Rand) sdk.Dec
- func GenSlashFractionDowntime(r *rand.Rand) sdk.Dec
- func GenSlashFractionLimit(r *rand.Rand) sdk.Dec
- func ParamChanges(r *rand.Rand) []simtypes.ParamChange
- func RandomizedGenState(simState *module.SimulationState)
Constants ¶
const ( SignedBlocksWindow = "signed_blocks_window" MinSignedPerWindow = "min_signed_per_window" DowntimeJailDuration = "downtime_jail_duration" SlashFractionDoubleSign = "slash_fraction_double_sign" SlashFractionDowntime = "slash_fraction_downtime" SlashFractionLimit = "slash_fraction_limit" JailFractionLimit = "jail_fraction_limit" MaxEvidenceAge = "max_evidence_age" )
Simulation parameter constants
Variables ¶
This section is empty.
Functions ¶
func DecodeStore ¶
DecodeStore unmarshals the KVPair's Value to the corresponding slashing type
func GenDowntimeJailDuration ¶
GenDowntimeJailDuration randomized DowntimeJailDuration
func GenEnableslashing ¶
GenMaxEvidenceAge randomized MaxEvidenceAge
func GenJailFractionLimit ¶
GenJailFractionLimit randomized JailFractionLimit
func GenMaxEvidenceAge ¶
GenMaxEvidenceAge randomized MaxEvidenceAge
func GenMinSignedPerWindow ¶
GenMinSignedPerWindow randomized MinSignedPerWindow
func GenSignedBlocksWindow ¶
GenSignedBlocksWindow randomized SignedBlocksWindow
func GenSlashFractionDoubleSign ¶
GenSlashFractionDoubleSign randomized SlashFractionDoubleSign
func GenSlashFractionDowntime ¶
GenSlashFractionDowntime randomized SlashFractionDowntime
func GenSlashFractionLimit ¶
GenSlashFractionLimit randomized SlashFractionLimit
func ParamChanges ¶
func ParamChanges(r *rand.Rand) []simtypes.ParamChange
ParamChanges defines the parameters that can be modified by param change proposals on the simulation
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for slashing
Types ¶
This section is empty.