Skip to content

Commit

Permalink
Merge branch 'QoS_protocol' into conflict_resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
Yarom Swisa authored and Yarom Swisa committed Jul 4, 2022
2 parents a301846 + 3fd8efa commit abe10f9
Show file tree
Hide file tree
Showing 17 changed files with 5,137 additions and 2,936 deletions.
42 changes: 0 additions & 42 deletions app/simulation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,45 +110,3 @@ func BenchmarkSimulation(b *testing.B) {
simapp.PrintStats(db)
}
}

// func SimulationMyOperations(app simapp.App, cdc codec.JSONCodec, config simtypes.Config) []simtypes.WeightedOperation {
// simState := module.SimulationState{
// AppParams: make(simtypes.AppParams),
// Cdc: cdc,
// }

// if config.ParamsFile != "" {
// bz, err := ioutil.ReadFile(config.ParamsFile)
// if err != nil {
// panic(err)
// }

// err = json.Unmarshal(bz, &simState.AppParams)
// if err != nil {
// panic(err)
// }
// }

// simState.ParamChanges = app.SimulationManager().GenerateParamChanges(config.Seed)
// simState.Contents = app.SimulationManager().GetProposalContents(simState)
// return myOperations(simState)
// }

// func myOperations(simState module.SimulationState) []simulationtypes.WeightedOperation {

// operations := make([]simulationtypes.WeightedOperation, 0)
// simApp := app.SimulationManager()

// var weightMsgStakeProvider int
// simulationtypes.AppParams.GetOrGenerate(simulationtypes.Cdc, opWeightMsgStakeProvider, &weightMsgStakeProvider, nil,
// func(_ *rand.Rand) {
// weightMsgStakeProvider = defaultWeightMsgStakeProvider
// },
// )
// operations = append(operations, simulation.NewWeightedOperation(
// weightMsgStakeProvider,
// pairingsimulation.SimulateMsgStakeProvider(accountKeeper, simApp.bankKeeper, simApp.keeper),
// ))

// return nil
// }
Loading

0 comments on commit abe10f9

Please sign in to comment.