Skip to content

Commit

Permalink
chore: upgrade handler adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
Lockwarr committed Oct 15, 2024
1 parent d738f6a commit 8df91b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import (
"github.com/Nolus-Protocol/nolus-core/app/keepers"
appparams "github.com/Nolus-Protocol/nolus-core/app/params"
"github.com/Nolus-Protocol/nolus-core/app/upgrades"
v065 "github.com/Nolus-Protocol/nolus-core/app/upgrades/v065"
v066 "github.com/Nolus-Protocol/nolus-core/app/upgrades/v066"
"github.com/Nolus-Protocol/nolus-core/docs"

wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
Expand All @@ -67,7 +67,7 @@ const (
var (
DefaultNodeHome string

Upgrades = []upgrades.Upgrade{v065.Upgrade}
Upgrades = []upgrades.Upgrade{v066.Upgrade}
)

var (
Expand Down
4 changes: 2 additions & 2 deletions app/upgrades/v066/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ func CreateUpgradeHandler(

// Properly register consensus params. In the process, change block max bytes params:
defaultConsensusParams := tmtypes.DefaultConsensusParams().ToProto()
defaultConsensusParams.Block.MaxBytes = 5000000 // previously 10485760
defaultConsensusParams.Block.MaxGas = 300000000 // previously 120000000
defaultConsensusParams.Block.MaxBytes = 4000000 // previously 22020096
defaultConsensusParams.Block.MaxGas = 100000000 // previously 100000000
err = keepers.ConsensusParamsKeeper.ParamsStore.Set(ctx, defaultConsensusParams)
if err != nil {
return nil, err
Expand Down

0 comments on commit 8df91b6

Please sign in to comment.