Skip to content

Commit

Permalink
chore: log v2 upgrade (#3628)
Browse files Browse the repository at this point in the history
Closes #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
```
  • Loading branch information
rootulp authored Jun 27, 2024
1 parent 9f1dd88 commit 487648e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 487648e

Please sign in to comment.