Slashing genesis types proto migration (#6881)
* slashing genesis types migrated to proto * review changes * fixed lint * review change * review change * review changes * Update proto messgaes * Add test for ExportGenesis * Address naming suggestions * Update genesis * Fix genesis test * Add GetMissedBlocks * Update genesis test * Address review suggestions Co-authored-by: Anil Kumar Kammari <anil@vitwit.com> Co-authored-by: SaReN <sahithnarahari@gmail.com>
This commit is contained in:
co-authored by
Anil Kumar Kammari
SaReN
parent
cb5c93213c
commit
662aa7fa01
@@ -86,7 +86,7 @@ func RandomizedGenState(simState *module.SimulationState) {
|
||||
slashFractionDoubleSign, slashFractionDowntime,
|
||||
)
|
||||
|
||||
slashingGenesis := types.NewGenesisState(params, nil, nil)
|
||||
slashingGenesis := types.NewGenesisState(params, []types.SigningInfo{}, []types.ValidatorMissedBlocks{})
|
||||
|
||||
fmt.Printf("Selected randomly generated slashing parameters:\n%s\n", codec.MustMarshalJSONIndent(simState.Cdc, slashingGenesis.Params))
|
||||
simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(slashingGenesis)
|
||||
|
||||
Reference in New Issue
Block a user