Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update IBC to v4.2.0 #599

Merged
merged 2 commits into from
Feb 15, 2023
Merged

Update IBC to v4.2.0 #599

merged 2 commits into from
Feb 15, 2023

Conversation

skyargos
Copy link
Contributor

@skyargos skyargos commented Feb 9, 2023

update cosmos-sdk to v0.45.10

Closes: #XXX
Related: #XXX

Description


For contributor use:

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
  • Reviewers assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]"

update cosmos-sdk to v0.45.10
@codecov
Copy link

codecov bot commented Feb 9, 2023

Codecov Report

Merging #599 (ffe9b61) into master (cc5449d) will increase coverage by 0.40%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #599      +/-   ##
==========================================
+ Coverage   42.47%   42.87%   +0.40%     
==========================================
  Files         127      127              
  Lines       11827    11715     -112     
==========================================
  Hits         5023     5023              
+ Misses       6324     6212     -112     
  Partials      480      480              
Impacted Files Coverage Δ
app/app.go 86.92% <ø> (ø)
app/upgrade_handler.go 21.05% <0.00%> (+17.99%) ⬆️

@skyargos skyargos marked this pull request as ready for review February 9, 2023 10:57
app.CrisisKeeper.InitGenesis(ctx, crisisGenesis)

// transfer module consensus version has been bumped to 2
fromVM[ibctransfer.ModuleName] = app.mm.Modules[ibctransfer.ModuleName].ConsensusVersion()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct? This will disable IBC transfer store upgrade

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emm, I have removed this

Copy link
Collaborator

@yoongbok-lee yoongbok-lee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except for one optimization

crisisGenesis.ConstantFee.Denom = app.StakingKeeper.BondDenom(ctx)
app.CrisisKeeper.InitGenesis(ctx, crisisGenesis)

// transfer module consensus version has been bumped to 2
ctx.Logger().Info("Start to run module migrations...")
newVersionMap, err := app.mm.RunMigrations(ctx, app.configurator, fromVM)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now we can just return this without anything else in the function body

@skyargos skyargos enabled auto-merge (squash) February 14, 2023 01:51
@skyargos skyargos enabled auto-merge (squash) February 14, 2023 01:52
crisisGenesis.ConstantFee.Denom = app.StakingKeeper.BondDenom(ctx)
app.CrisisKeeper.InitGenesis(ctx, crisisGenesis)

// transfer module consensus version has been bumped to 2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this line of comment means to show all modules that are going to do upgrading, we could provide a full list of them. Or it may be better to just remove the line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At present, only transfer is upgraded, and other modules are not upgraded for the time being.

@skyargos skyargos merged commit d088333 into master Feb 15, 2023
@skyargos skyargos deleted the upgrade-IBC branch February 15, 2023 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants