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:
atheeshp
2020-08-04 12:58:36 +00:00
committed by GitHub
co-authored by Anil Kumar Kammari SaReN
parent cb5c93213c
commit 662aa7fa01
8 changed files with 1869 additions and 639 deletions
+1 -1
View File
@@ -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)