Skip to content

Commit 973e1bf

Browse files
authored
Merge pull request #889 from comdex-official/v14upgrade
TxSizeCostPerByte to be increased via prop
2 parents 7e0ad1e + 54180fc commit 973e1bf

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

app/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1545,7 +1545,7 @@ func (a *App) ModuleAccountsPermissions() map[string][]string {
15451545
func (a *App) registerUpgradeHandlers() {
15461546
a.UpgradeKeeper.SetUpgradeHandler(
15471547
tv14.UpgradeName,
1548-
tv14.CreateUpgradeHandlerV14(a.mm, a.configurator, a.AuctionKeeperSkip, a.LendKeeper, a.WasmKeeper, *a.StakingKeeper, a.MintKeeper, a.SlashingKeeper, a.BandoracleKeeper, a.AccountKeeper),
1548+
tv14.CreateUpgradeHandlerV14(a.mm, a.configurator, a.AuctionKeeperSkip, a.LendKeeper, a.WasmKeeper, *a.StakingKeeper, a.MintKeeper, a.SlashingKeeper, a.BandoracleKeeper),
15491549
)
15501550
// When a planned update height is reached, the old binary will panic
15511551
// writing on disk the height and name of the update that triggered it

app/upgrades/testnet/v14/upgrade_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,4 @@ func postUpgradeChecks(s *UpgradeTestSuite) {
5656
wp := s.App.WasmKeeper.GetParams(s.Ctx)
5757
s.Require().Equal(wp.CodeUploadAccess, wasmtypes.AllowNobody)
5858

59-
// ensure auth params are updated
60-
ap := s.App.AccountKeeper.GetParams(s.Ctx)
61-
s.Require().Equal(ap.TxSizeCostPerByte, uint64(20))
6259
}

app/upgrades/testnet/v14/upgrades.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
lendkeeper "github.com/comdex-official/comdex/x/lend/keeper"
99
sdk "github.com/cosmos/cosmos-sdk/types"
1010
"github.com/cosmos/cosmos-sdk/types/module"
11-
authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper"
1211
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
1312
mintkeeper "github.com/cosmos/cosmos-sdk/x/mint/keeper"
1413
slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper"
@@ -29,7 +28,6 @@ func CreateUpgradeHandlerV14(
2928
MintKeeper mintkeeper.Keeper,
3029
SlashingKeeper slashingkeeper.Keeper,
3130
bandoracleKeeper bandoraclemodulekeeper.Keeper,
32-
accountKeeper authkeeper.AccountKeeper,
3331

3432
) upgradetypes.UpgradeHandler {
3533
return func(ctx sdk.Context, _ upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
@@ -77,14 +75,6 @@ func CreateUpgradeHandlerV14(
7775
logger.Info(fmt.Sprintf("updated bandData to %v", bandData))
7876
}
7977

80-
// update tx size cost per byte
81-
authParams := accountKeeper.GetParams(ctx)
82-
authParams.TxSizeCostPerByte = authParams.TxSizeCostPerByte * 2
83-
if err = accountKeeper.SetParams(ctx, authParams); err != nil {
84-
return nil, err
85-
}
86-
logger.Info(fmt.Sprintf("updated auth params to %v", accountKeeper.GetParams(ctx)))
87-
8878
//TODO: uncomment this before mainnet upgrade
8979
//UpdateLendParams(ctx, lendKeeper)
9080
return vm, err

0 commit comments

Comments
 (0)