Skip to content

Commit

Permalink
fixup! chore(cosmos): ensure max block size
Browse files Browse the repository at this point in the history
Co-authored-by: Jim Larson <32469398+JimLarson@users.noreply.github.com>
  • Loading branch information
mhofman and JimLarson authored Nov 2, 2023
1 parent 6f5524a commit 63fbbef
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions golang/cosmos/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -828,9 +828,7 @@ func NewAgoricApp(
func ensureBlockMaxBytes(app *GaiaApp, ctx sdk.Context) {
cp := app.BaseApp.GetConsensusParams(ctx)
if cp.Block.MaxBytes > gaiaappparams.MaxBlockMaxBytes {
bp := *cp.Block
bp.MaxBytes = gaiaappparams.MaxBlockMaxBytes
cp.Block = &bp
cp.Block.MaxBytes = gaiaappparams.MaxBlockMaxBytes
app.BaseApp.StoreConsensusParams(ctx, cp)
}
}
Expand Down

0 comments on commit 63fbbef

Please sign in to comment.