[tendermint init] add default consensus params to genesis

This commit is contained in:
Anton Kaliaev 2018-06-27 14:12:52 +04:00
parent 9563927bbd
commit 2a7602c4ed
No known key found for this signature in database
GPG Key ID: 7B6881D965918214
1 changed files with 3 additions and 2 deletions

View File

@ -52,8 +52,9 @@ func initFilesWithConfig(config *cfg.Config) error {
logger.Info("Found genesis file", "path", genFile)
} else {
genDoc := types.GenesisDoc{
ChainID: cmn.Fmt("test-chain-%v", cmn.RandStr(6)),
GenesisTime: time.Now(),
ChainID: cmn.Fmt("test-chain-%v", cmn.RandStr(6)),
GenesisTime: time.Now(),
ConsensusParams: types.DefaultConsensusParams(),
}
genDoc.Validators = []types.GenesisValidator{{
PubKey: pv.GetPubKey(),