Skip to content

Commit

Permalink
fix: only migrate bundles on mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
mbreithecker committed Feb 18, 2025
1 parent 88678aa commit 5cd9022
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x/bundles/migration/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ func init() {
func MigrateBundlesModule(sdkCtx sdk.Context, bundlesKeeper bundleskeeper.Keeper, upgradeHeight int64) {
logger = sdkCtx.Logger().With("upgrade", "bundles-migration")

if sdkCtx.ChainID() != "kyve-1" {
return
}

if sdkCtx.BlockHeight()-upgradeHeight < WaitingBlockPeriod {
logger.Info("sdkCtx.BlockHeight()-upgradeHeight < WaitingBlockPeriod > return")
return
Expand Down

0 comments on commit 5cd9022

Please sign in to comment.