Skip to content

Commit

Permalink
downgrade error to log (upgrade works only on mainnet)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek committed Oct 4, 2024
1 parent b595d5c commit 3926e93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/upgrades/v21/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ func CreateUpgradeHandler(
ctx.Logger().Info("allocating rewards of Neutron and Stride unaccounted denoms")
err = AllocateNeutronAndStrideUnaccountedDenoms(ctx, keepers.ProviderKeeper, keepers.BankKeeper, keepers.AccountKeeper)
if err != nil {
return vm, errorsmod.Wrapf(err, "could not allocate rewards of Neutron and Stride unaccounted denoms")
// migration can only work on cosmoshub-4
// all testchains except for mainnet export fork will fail this
ctx.Logger().Error("Error allocating rewards of Neutron and Stride unaccounted denoms:", "message", err.Error())
}

err = InitializeConstitutionCollection(ctx, *keepers.GovKeeper)
Expand Down

0 comments on commit 3926e93

Please sign in to comment.