From e9062fcd694a48da02ee8d92c0479751535f3db1 Mon Sep 17 00:00:00 2001 From: Joe Abbey Date: Fri, 27 May 2022 14:49:43 -0400 Subject: [PATCH] fix: Only apply v8 fork logic on osmosis-1 (#1610) --- app/upgrades/v8/forks.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/upgrades/v8/forks.go b/app/upgrades/v8/forks.go index 3ecb72526b8..025ef17e77f 100644 --- a/app/upgrades/v8/forks.go +++ b/app/upgrades/v8/forks.go @@ -9,6 +9,12 @@ import ( // RunForkLogic executes height-gated on-chain fork logic for the Osmosis v8 // upgrade. func RunForkLogic(ctx sdk.Context, appKeepers *keepers.AppKeepers) { + // Only proceed with v8 for mainnet, testnets need not adjust their pool incentives or unbonding. + // https://github.com/osmosis-labs/osmosis/issues/1609 + if ctx.ChainID() != "osmosis-1" { + return + } + for i := 0; i < 100; i++ { ctx.Logger().Info("I am upgrading to v8") }