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

fix: guarentee proof availiability for channel upgrades #5638

Merged
merged 10 commits into from
Jan 23, 2024

Conversation

colin-axner
Copy link
Contributor

@colin-axner colin-axner commented Jan 17, 2024

Description

requires updated handling in hermes

closes: #3930

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.

@codecov-commenter
Copy link

codecov-commenter commented Jan 17, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (f4a618c) 81.18% compared to head (f28187c) 81.21%.
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5638      +/-   ##
==========================================
+ Coverage   81.18%   81.21%   +0.03%     
==========================================
  Files         199      199              
  Lines       15289    15294       +5     
==========================================
+ Hits        12412    12421       +9     
+ Misses       2408     2404       -4     
  Partials      469      469              
Files Coverage Δ
modules/core/04-channel/keeper/handshake.go 89.71% <100.00%> (+0.06%) ⬆️
modules/core/04-channel/keeper/upgrade.go 92.30% <100.00%> (+0.03%) ⬆️
modules/core/04-channel/types/channel.go 81.33% <ø> (+4.11%) ⬆️
modules/core/04-channel/types/msgs.go 94.84% <100.00%> (+0.04%) ⬆️
modules/core/keeper/msg_server.go 66.81% <100.00%> (ø)
...27-interchain-accounts/controller/keeper/keeper.go 92.68% <50.00%> (ø)
.../apps/27-interchain-accounts/host/keeper/keeper.go 90.00% <0.00%> (ø)

@colin-axner colin-axner added priority PRs that need prompt reviews channel-upgradability Channel upgradability feature backport-to-v8.1.x labels Jan 17, 2024
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.

Great work figuring out this edge case, @colin-axner. Just had a quick, first look.

proto/ibc/core/channel/v1/tx.proto Outdated Show resolved Hide resolved
@colin-axner colin-axner marked this pull request as ready for review January 22, 2024 09:55
@colin-axner colin-axner marked this pull request as draft January 22, 2024 10:15
@colin-axner colin-axner marked this pull request as ready for review January 23, 2024 11:02
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! LGTM

@crodriguezvega crodriguezvega merged commit f67d60b into main Jan 23, 2024
63 of 65 checks passed
@crodriguezvega crodriguezvega deleted the colin/3930-proof-guarentee branch January 23, 2024 18:44
mergify bot pushed a commit that referenced this pull request Jan 23, 2024
* fix: add counterparty upgrade sequence to MsgChannelUpgradeOpen and handle edge case of counterparty initiating upgrade in the same block

* docs: add sufficient documentation for accidental breakage in the opening handshake

* lint lint lint

* test: add additional test case

* fix: proto numbering

* change error message

---------

Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
(cherry picked from commit f67d60b)

# Conflicts:
#	docs/docs/01-ibc/06-channel-upgrades.md
crodriguezvega added a commit that referenced this pull request Jan 24, 2024
…) (#5697)

* fix: guarentee proof availiability for channel upgrades (#5638)

* fix: add counterparty upgrade sequence to MsgChannelUpgradeOpen and handle edge case of counterparty initiating upgrade in the same block

* docs: add sufficient documentation for accidental breakage in the opening handshake

* lint lint lint

* test: add additional test case

* fix: proto numbering

* change error message

---------

Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
(cherry picked from commit f67d60b)

# Conflicts:
#	docs/docs/01-ibc/06-channel-upgrades.md

* fix conflict

* remove docs

---------

Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

Guarentee valid channel upgrade open proofs
5 participants