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

ICS4: fix off by one error in non-crossing-hello case #5722

Merged
merged 7 commits into from
Jan 25, 2024

Conversation

AdityaSripal
Copy link
Member

Description

closes: #XXXX

Commit Message / Changelog Entry

type: commit message

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 the 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.

@colin-axner colin-axner added priority PRs that need prompt reviews channel-upgradability Channel upgradability feature audit Feedback from implementation audit labels Jan 25, 2024
Copy link
Contributor

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

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

Clean fix! Thank you for spending a lot of time finding this bug and resolving it!! 🙏

modules/core/04-channel/keeper/upgrade.go Show resolved Hide resolved
modules/core/04-channel/keeper/upgrade.go Outdated Show resolved Hide resolved
@colin-axner colin-axner added this to the 04-channel upgrades RC milestone Jan 25, 2024
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 one @AdityaSripal. LGTM! 🙏🏻

Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
@codecov-commenter
Copy link

codecov-commenter commented Jan 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (310a4bd) 81.49% compared to head (c710dda) 81.50%.
Report is 3 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5722      +/-   ##
==========================================
+ Coverage   81.49%   81.50%   +0.01%     
==========================================
  Files         199      199              
  Lines       15203    15218      +15     
==========================================
+ Hits        12389    12404      +15     
  Misses       2348     2348              
  Partials      466      466              
Files Coverage Δ
modules/core/04-channel/keeper/upgrade.go 92.47% <100.00%> (+0.17%) ⬆️

@AdityaSripal AdityaSripal merged commit bddbe49 into main Jan 25, 2024
62 of 63 checks passed
@AdityaSripal AdityaSripal deleted the aditya/sequence-off-by-one branch January 25, 2024 16:38
mergify bot pushed a commit that referenced this pull request Jan 25, 2024
* fix off by one error in non-crossing-hello case

* Update modules/core/04-channel/keeper/upgrade.go

Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>

* chore: formatting for linter ci

* Update modules/core/04-channel/keeper/upgrade.go

Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>

* lint

---------

Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
Co-authored-by: Damian Nolan <damiannolan@gmail.com>
(cherry picked from commit bddbe49)
damiannolan pushed a commit that referenced this pull request Jan 25, 2024
* fix off by one error in non-crossing-hello case

* Update modules/core/04-channel/keeper/upgrade.go

Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>

* chore: formatting for linter ci

* Update modules/core/04-channel/keeper/upgrade.go

Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>

* lint

---------

Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
Co-authored-by: Damian Nolan <damiannolan@gmail.com>
(cherry picked from commit bddbe49)

Co-authored-by: Aditya <adityasripal@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audit Feedback from implementation audit channel-upgradability Channel upgradability feature priority PRs that need prompt reviews
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants