From 163992d9c6f338a0ae3b4a5b5e28aa0f985ce95c Mon Sep 17 00:00:00 2001 From: beer-1 Date: Mon, 7 Oct 2024 14:39:50 +0900 Subject: [PATCH] fix to use default params for the rest params --- contrib/launchtools/steps/genesis.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/contrib/launchtools/steps/genesis.go b/contrib/launchtools/steps/genesis.go index ab54736..a7d1f4b 100644 --- a/contrib/launchtools/steps/genesis.go +++ b/contrib/launchtools/steps/genesis.go @@ -220,14 +220,12 @@ func initializeGenesis( // finalize app genesis appGenesis := &genutiltypes.AppGenesis{} + consensusParams := cmttypes.DefaultConsensusParams() + consensusParams.Block.MaxBytes = config.L2Config.BlockMaxBytes + consensusParams.Block.MaxGas = config.L2Config.BlockMaxGas appGenesis.Consensus = &genutiltypes.ConsensusGenesis{ Validators: nil, - Params: &cmttypes.ConsensusParams{ - Block: cmttypes.BlockParams{ - MaxBytes: config.L2Config.BlockMaxBytes, - MaxGas: config.L2Config.BlockMaxGas, - }, - }, + Params: consensusParams, } appGenesis.AppName = version.AppName appGenesis.AppVersion = version.Version