Skip to content

Commit

Permalink
fix to use default params for the rest params
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Oct 7, 2024
1 parent d068a1a commit 163992d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions contrib/launchtools/steps/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 163992d

Please sign in to comment.