From e67f3078bdd80d1b7b1df534a41d2975fc520955 Mon Sep 17 00:00:00 2001 From: nghuyenthevinh2000 Date: Sat, 23 Sep 2023 23:02:52 +0700 Subject: [PATCH] add another halt height for rebels --- app/forks.go | 4 ++++ app/upgrades/forks/forks.go | 2 +- types/fork/fork.go | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/forks.go b/app/forks.go index 6c5c3b3a6..af151ed7b 100644 --- a/app/forks.go +++ b/app/forks.go @@ -1,6 +1,8 @@ package app import ( + "fmt" + sdk "github.com/cosmos/cosmos-sdk/types" ) @@ -8,6 +10,8 @@ import ( func BeginBlockForks(ctx sdk.Context, app *TerraApp) { for _, fork := range Forks { if ctx.BlockHeight() == fork.UpgradeHeight { + ctx.Logger().Info(fmt.Sprintf("applying fork %s at height %d", fork.UpgradeName, fork.UpgradeHeight)) + fork.BeginForkLogic(ctx, app.AppKeepers, app.mm) return } diff --git a/app/upgrades/forks/forks.go b/app/upgrades/forks/forks.go index e0e992bb7..1bbcfc298 100644 --- a/app/upgrades/forks/forks.go +++ b/app/upgrades/forks/forks.go @@ -66,7 +66,7 @@ func runForkLogicVersionMapEnable(ctx sdk.Context, keppers *keepers.AppKeepers, } func forkLogicFixMinCommission(ctx sdk.Context, keepers *keepers.AppKeepers, mm *module.Manager) { - MinCommissionRate := sdk.NewDecWithPrec(5, 2) + MinCommissionRate := sdk.NewDecWithPrec(5, 2) // 5% space, exist := keepers.ParamsKeeper.GetSubspace(stakingtypes.StoreKey) if !exist { diff --git a/types/fork/fork.go b/types/fork/fork.go index 198e17a2c..1587a3d66 100644 --- a/types/fork/fork.go +++ b/types/fork/fork.go @@ -22,5 +22,5 @@ const ( VersionMapEnableHeight = int64(11_543_150) // Revert Min Commission slip during v2.2.0 upgrade FixMinCommissionHeight = int64(14_665_190) - FixMinCommissionHeightRebel = int64(16_275_000) + FixMinCommissionHeightRebel = int64(16_300_000) )