Skip to content

Commit

Permalink
v1.7.6-testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-bowman committed Feb 6, 2025
1 parent a3329bc commit c8147b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/upgrades/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
6 changes: 6 additions & 0 deletions app/upgrades/v1_7.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8147b3

Please sign in to comment.