From c8147b3df5d75b5f354b167819387bf2bb2b7d98 Mon Sep 17 00:00:00 2001 From: Joe Bowman Date: Thu, 6 Feb 2025 12:29:28 +0000 Subject: [PATCH] v1.7.6-testnet --- app/upgrades/types.go | 2 +- app/upgrades/v1_7.go | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/upgrades/types.go b/app/upgrades/types.go index 055787d82..c9b8ff9f8 100644 --- a/app/upgrades/types.go +++ b/app/upgrades/types.go @@ -12,7 +12,7 @@ import ( // upgrade name consts: vMMmmppUpgradeName (M=Major, m=minor, p=patch). const ( ProductionChainID = "quicksilver-2" - RhyeChainID = "rhye-2" + RhyeChainID = "rhye-3" DevnetChainID = "magic-2" TestChainID = "testchain1" diff --git a/app/upgrades/v1_7.go b/app/upgrades/v1_7.go index 40fcb53e7..7cc6cb4a1 100644 --- a/app/upgrades/v1_7.go +++ b/app/upgrades/v1_7.go @@ -191,6 +191,12 @@ func V010706UpgradeHandler( } } + if isTestnet(ctx) { + // remove zones where clients have expired, so we can redo them. + appKeepers.InterchainstakingKeeper.RemoveZoneAndAssociatedRecords(ctx, "osmo-test-5") + appKeepers.InterchainstakingKeeper.RemoveZoneAndAssociatedRecords(ctx, "provider-1") + } + // garbage collect old records appKeepers.InterchainstakingKeeper.IterateUnbondingRecords(ctx, func(index int64, record icstypes.UnbondingRecord) (stop bool) { if record.CompletionTime.Equal(time.Time{}) || record.CompletionTime.Before(ctx.BlockTime().Add(-time.Hour*24)) { // old records