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

Allow verification of channels on TimeoutonClose and ChanCloseConfirm #4388

Conversation

DimitrisJim
Copy link
Contributor

@DimitrisJim DimitrisJim commented Aug 18, 2023

Description

closes: #4081

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

@DimitrisJim DimitrisJim changed the title wip, pending investigation on hardcoding values. Allow verification of channels on TimeoutonClose and ChanCloseConfirm Aug 18, 2023
@DimitrisJim DimitrisJim added the channel-upgradability Channel upgradability feature label Aug 18, 2023
@DimitrisJim DimitrisJim force-pushed the jim/4081-timeoutonclose-fails-verification-during-upgrade branch 2 times, most recently from d76910b to bbb4310 Compare August 30, 2023 01:26
@DimitrisJim DimitrisJim force-pushed the jim/4081-timeoutonclose-fails-verification-during-upgrade branch 3 times, most recently from 99495be to 528caac Compare September 7, 2023 07:25
@DimitrisJim DimitrisJim force-pushed the jim/4081-timeoutonclose-fails-verification-during-upgrade branch from 528caac to bd42f13 Compare November 21, 2023 19:08
@DimitrisJim DimitrisJim force-pushed the jim/4081-timeoutonclose-fails-verification-during-upgrade branch 2 times, most recently from 0e4fdb1 to adb49b9 Compare December 13, 2023 10:24
@DimitrisJim DimitrisJim marked this pull request as ready for review December 13, 2023 10:25
@DimitrisJim
Copy link
Contributor Author

in most tests the default value of 0 is used considering channel being tested is not performing an upgrade.

@codecov-commenter
Copy link

codecov-commenter commented Dec 13, 2023

Codecov Report

Merging #4388 (bed4c16) into 04-channel-upgrades (baa0318) will increase coverage by 0.01%.
The diff coverage is 96.77%.

Additional details and impacted files

Impacted file tree graph

@@                   Coverage Diff                   @@
##           04-channel-upgrades    #4388      +/-   ##
=======================================================
+ Coverage                80.39%   80.40%   +0.01%     
=======================================================
  Files                      197      197              
  Lines                    14985    14996      +11     
=======================================================
+ Hits                     12047    12058      +11     
  Misses                    2474     2474              
  Partials                   464      464              
Files Coverage Δ
modules/core/04-channel/keeper/handshake.go 89.64% <100.00%> (+0.13%) ⬆️
modules/core/04-channel/keeper/timeout.go 95.37% <100.00%> (+0.10%) ⬆️
modules/core/04-channel/types/msgs.go 92.27% <100.00%> (+0.03%) ⬆️
modules/core/keeper/msg_server.go 62.22% <50.00%> (ø)

@DimitrisJim DimitrisJim force-pushed the jim/4081-timeoutonclose-fails-verification-during-upgrade branch from adb49b9 to b839b23 Compare December 13, 2023 10:51
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.

Nice work! Left a few suggestions on the testing front

modules/core/04-channel/types/msgs_test.go Outdated Show resolved Hide resolved
modules/core/04-channel/types/msgs_test.go Show resolved Hide resolved
modules/core/04-channel/types/msgs_test.go Show resolved Hide resolved
@colin-axner colin-axner added the priority PRs that need prompt reviews label Dec 13, 2023
@DimitrisJim DimitrisJim force-pushed the jim/4081-timeoutonclose-fails-verification-during-upgrade branch from b839b23 to d8f1ee0 Compare December 13, 2023 16:03
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.

ACK latest changes, thanks!

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.

ACK, great work @DimitrisJim! Thanks ❤️

LGTM!!!

@DimitrisJim DimitrisJim enabled auto-merge (squash) December 14, 2023 08:27
@DimitrisJim DimitrisJim merged commit 72a3d09 into 04-channel-upgrades Dec 14, 2023
55 checks passed
@DimitrisJim DimitrisJim deleted the jim/4081-timeoutonclose-fails-verification-during-upgrade branch December 14, 2023 08:31
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
None yet
Development

Successfully merging this pull request may close these issues.

4 participants