From 487648ef3a1d549d31f9a9d04ccf1abf21e02517 Mon Sep 17 00:00:00 2001 From: Rootul P Date: Thu, 27 Jun 2024 10:01:53 -0600 Subject: [PATCH] chore: log v2 upgrade (#3628) Closes https://github.com/celestiaorg/celestia-app/issues/3627 ## Testing Confirmed the log shows up during an upgrade ``` 4:29PM INF upgrading from app version 1 to 2 4:29PM INF executed block height=2 module=state num_invalid_txs=0 num_valid_txs=0 4:29PM INF adding a new module: interchainaccounts 4:29PM INF created new capability module=ibc name=ports/icahost 4:29PM INF port binded module=x/ibc/port port=icahost 4:29PM INF claimed capability capability=2 module=icahost name=ports/icahost 4:29PM INF adding a new module: minfee 4:29PM INF adding a new module: packetfowardmiddleware 4:29PM INF adding a new module: signal ``` --- app/app.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/app.go b/app/app.go index 541b2cd6af..75cb19390b 100644 --- a/app/app.go +++ b/app/app.go @@ -455,8 +455,10 @@ func (app *App) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.Respo if currentVersion == v1 { // check that we are at the height before the upgrade if req.Height == app.upgradeHeightV2-1 { + app.BaseApp.Logger().Info(fmt.Sprintf("upgrading from app version %v to 2", currentVersion)) app.SetInitialAppVersionInConsensusParams(ctx, v2) app.SetAppVersion(ctx, v2) + // The blobstream module was disabled in v2 so the following line // removes the the params subspace for blobstream. if err := app.ParamsKeeper.DeleteSubspace(blobstreamtypes.ModuleName); err != nil {