diff --git a/app/app.go b/app/app.go index 0b876196..6cd7ff5a 100644 --- a/app/app.go +++ b/app/app.go @@ -648,7 +648,6 @@ func (app OnomyApp) GetBaseApp() *baseapp.BaseApp { return app.BaseApp } func (app *OnomyApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock { for _, fork := range Forks { if ctx.BlockHeight() == fork.UpgradeHeight { - ctx.Logger().Info("running fork name %s", fork.UpgradeName) fork.BeginForkLogic(ctx) } } diff --git a/app/upgrades/v1.1.5-fix/upgrade.go b/app/upgrades/v1.1.5-fix/upgrade.go index b0fc2969..94f7b17a 100644 --- a/app/upgrades/v1.1.5-fix/upgrade.go +++ b/app/upgrades/v1.1.5-fix/upgrade.go @@ -31,30 +31,20 @@ func CreateFork( if len(consumerChainIDS) == 0 { break } - valsetUpdateID := pk.GetValidatorSetUpdateId(ctx) - - fmt.Println("consumer chain", consumerChainIDS, valsetUpdateID) - // Add to indexes for _, consumerChainID := range consumerChainIDS { ubdOpIds := pk.GetAllUnbondingOpIndexes(ctx, consumerChainID) for _, ubdIds := range ubdOpIds { - fmt.Println("old", ubdIds) - newIds := []uint64{} for _, ubdId := range ubdIds.UnbondingOpIds { - fmt.Println("should", ubdId, id) if ubdId == id { - ctx.Logger().Info(fmt.Sprintf("filter out id %d", ubdId)) continue } newIds = append(newIds, ubdId) } - fmt.Println("new", newIds) - // filter out invalid ID pk.SetUnbondingOpIndex(ctx, consumerChainID, ubdIds.VscId, newIds) } @@ -64,17 +54,13 @@ func CreateFork( _, found := pk.GetUnbondingOp(ctx, id) if found { pk.DeleteUnbondingOp(ctx, id) - ctx.Logger().Info(fmt.Sprintf("delete id %d", id)) } } // clear invalid mature ubd entries ids := []uint64{} for _, id := range pk.GetMaturedUnbondingOps(ctx) { - fmt.Println("should true", slices.Contains(targetIds, id)) - if slices.Contains(targetIds, id) { - ctx.Logger().Info(fmt.Sprintf("filter matured id %d", id)) continue } @@ -94,7 +80,6 @@ func CreateFork( // update mature ubd ids store := ctx.KVStore(providerStoreKey) store.Set(ibcprovidertypes.MaturedUnbondingOpsKey(), bz) - ctx.Logger().Info(fmt.Sprint("updated matured ids")) } return upgrades.Fork{ UpgradeName: Name,