Skip to content

Commit

Permalink
chore: rename to GovMaxSquareSize (#2150)
Browse files Browse the repository at this point in the history
Closes #2149

Draft PR until we align on the issue that this rename makes sense.
  • Loading branch information
rootulp authored Jul 26, 2023
1 parent 3fc2fed commit 47b6109
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/square_size.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func (app *App) GovSquareSizeUpperBound(ctx sdk.Context) int {
return int(appconsts.DefaultGovMaxSquareSize)
}

gmax := int(app.BlobKeeper.GovSquareSizeUpperBound(ctx))
gmax := int(app.BlobKeeper.GovMaxSquareSize(ctx))
// perform a secondary check on the max square size.
if gmax > appconsts.SquareSizeUpperBound(app.AppVersion()) {
gmax = appconsts.SquareSizeUpperBound(app.AppVersion())
Expand Down
6 changes: 3 additions & 3 deletions x/blob/keeper/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
func (k Keeper) GetParams(ctx sdk.Context) types.Params {
return types.NewParams(
k.GasPerBlobByte(ctx),
k.GovSquareSizeUpperBound(ctx),
k.GovMaxSquareSize(ctx),
)
}

Expand All @@ -24,8 +24,8 @@ func (k Keeper) GasPerBlobByte(ctx sdk.Context) (res uint32) {
return res
}

// GovSquareSizeUpperBound returns the GovMaxSquareSize param
func (k Keeper) GovSquareSizeUpperBound(ctx sdk.Context) (res uint64) {
// GovMaxSquareSize returns the GovMaxSquareSize param
func (k Keeper) GovMaxSquareSize(ctx sdk.Context) (res uint64) {
k.paramStore.Get(ctx, types.KeyGovMaxSquareSize, &res)
return res
}

0 comments on commit 47b6109

Please sign in to comment.