diff --git a/x/simulation/simulate.go b/x/simulation/simulate.go index ab0dfdcda7d0..e1ff8f1826b6 100644 --- a/x/simulation/simulate.go +++ b/x/simulation/simulate.go @@ -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)