Skip to content

Commit

Permalink
chore: renaming GovSquareSizeUpperBound
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav-11018 committed Jul 26, 2023
1 parent 63748db commit 42555b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/square_size.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
)

// GovSquareSizeUpperBound returns the maximum square size that can be used for a block
// GetGovernanceMaxSquareSize returns the maximum square size that can be used for a block
// using the governance parameter blob.GovMaxSquareSize.
func (app *App) GovSquareSizeUpperBound(ctx sdk.Context) int {
func (app *App) GetGovernanceMaxSquareSize(ctx sdk.Context) int {
// TODO: fix hack that forces the max square size for the first height to
// 64. This is due to our fork of the sdk not initializing state before
// BeginBlock of the first block. This is remedied in versions of the sdk
Expand All @@ -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.GetGovernanceMaxSquareSize(ctx))
// perform a secondary check on the max square size.
if gmax > appconsts.SquareSizeUpperBound(app.AppVersion()) {
gmax = appconsts.SquareSizeUpperBound(app.AppVersion())
Expand Down

0 comments on commit 42555b6

Please sign in to comment.