Skip to content

Commit

Permalink
build: increased max block size to 10MB
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmic-vagabond committed Apr 2, 2024
1 parent 94090f1 commit 727922d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/setup_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ func setUpgradeHandler(app *ElysApp) {
func(ctx sdk.Context, plan upgradetypes.Plan, vm m.VersionMap) (m.VersionMap, error) {
app.Logger().Info("Running upgrade handler for " + version.Version)

// Set max block size to 10MB
app.Logger().Info("Setting max block size to 10MB")

consensusParams, err := app.ConsensusParamsKeeper.Get(ctx)
if err != nil {
return nil, err
}
consensusParams.Block.MaxBytes = int64(10485760)
app.ConsensusParamsKeeper.Set(ctx, consensusParams)

return app.mm.RunMigrations(ctx, app.configurator, vm)
},
)
Expand Down

0 comments on commit 727922d

Please sign in to comment.