Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/go_modules/github.com/tendermin…
Browse files Browse the repository at this point in the history
…t/tendermint-0.34.13
  • Loading branch information
alexanderbez authored Sep 9, 2021
2 parents 546bc96 + 2f5bac8 commit 552a9de
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions x/simulation/simulate.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,22 @@ const AverageBlockTime = 6 * time.Second

// initialize the chain for the simulation
func initChain(
r *rand.Rand, params Params, accounts []simulation.Account, app *baseapp.BaseApp,
appStateFn simulation.AppStateFn, config simulation.Config, cdc codec.JSONCodec,
r *rand.Rand,
params Params,
accounts []simulation.Account,
app *baseapp.BaseApp,
appStateFn simulation.AppStateFn,
config simulation.Config,
cdc codec.JSONCodec,
) (mockValidators, time.Time, []simulation.Account, string) {
appState, accounts, chainID, genesisTimestamp := appStateFn(r, accounts, config)

appState, accounts, chainID, genesisTimestamp := appStateFn(r, accounts, config)
consensusParams := randomConsensusParams(r, appState, cdc)

req := abci.RequestInitChain{
AppStateBytes: appState,
ChainId: chainID,
ConsensusParams: consensusParams,
Time: genesisTimestamp,
}
res := app.InitChain(req)
validators := newMockValidators(r, res.Validators, params)
Expand Down

0 comments on commit 552a9de

Please sign in to comment.