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

verify upgrade timeout path #3342

Merged
merged 33 commits into from
Mar 28, 2023

Conversation

charleenfei
Copy link
Contributor

@charleenfei charleenfei commented Mar 24, 2023

Description

  • adds functionality to verify the timeout set by a chain initiating a channel upgrade

closes: #1610

Commit Message / Changelog Entry

NA

see the guidelines for commit messages. (view raw markdown for examples)


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • 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 and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/).
  • Added relevant godoc comments.
  • Provide a commit message to be used for the changelog entry in the PR description for review.
  • Re-reviewed Files changed in the Github PR explorer.
  • Review Codecov Report in the comment section below once CI passes.

@charleenfei charleenfei changed the base branch from 04-channel-upgrades to damian/1618-chan-upgrade-init March 24, 2023 13:12
@charleenfei charleenfei marked this pull request as ready for review March 27, 2023 13:29
@codecov-commenter
Copy link

Codecov Report

Merging #3342 (99fb3b3) into damian/1618-chan-upgrade-init (0c8dd33) will increase coverage by 0.02%.
The diff coverage is 76.92%.

Additional details and impacted files

Impacted file tree graph

@@                        Coverage Diff                        @@
##           damian/1618-chan-upgrade-init    #3342      +/-   ##
=================================================================
+ Coverage                          78.26%   78.28%   +0.02%     
=================================================================
  Files                                186      186              
  Lines                              12961    12987      +26     
=================================================================
+ Hits                               10144    10167      +23     
- Misses                              2384     2385       +1     
- Partials                             433      435       +2     
Impacted Files Coverage Δ
modules/core/03-connection/keeper/verify.go 78.98% <76.92%> (-0.24%) ⬇️

... and 1 file with indirect coverage changes

Copy link
Contributor

@chatton chatton left a comment

Choose a reason for hiding this comment

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

LGTM! thanks for taking this one 👍

Copy link
Member

@AdityaSripal AdityaSripal left a comment

Choose a reason for hiding this comment

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

Nice work!!

Copy link
Member

@damiannolan damiannolan left a comment

Choose a reason for hiding this comment

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

Awesome, nice work!

Copy link
Contributor

@crodriguezvega crodriguezvega left a comment

Choose a reason for hiding this comment

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

Just left a nit, otherwise looks good to me!

err = suite.chainB.GetSimApp().IBCKeeper.ConnectionKeeper.VerifyChannelUpgradeTimeout(
suite.chainB.GetContext(),
path.EndpointB.GetConnection(),
malleateHeight(proofHeight, 0),
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a nit: is the call to malleateHeight necessary is diff is 0?

Base automatically changed from damian/1618-chan-upgrade-init to 04-channel-upgrades March 28, 2023 11:20
@charleenfei charleenfei merged commit 5980f88 into 04-channel-upgrades Mar 28, 2023
@charleenfei charleenfei deleted the charly/verify-upgrade-timeout-path branch March 28, 2023 13:17
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.

6 participants