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

Authority cancelling upgrade can lead to accidental resets of the upgrade sequence #5340

Closed
3 tasks
colin-axner opened this issue Dec 7, 2023 · 2 comments
Closed
3 tasks
Assignees
Labels
channel-upgradability Channel upgradability feature type: bug Something isn't working as expected

Comments

@colin-axner
Copy link
Contributor

colin-axner commented Dec 7, 2023

Summary

If the authority cancels the upgrade, they are not required to specify an error receipt which is proved, yet we use that error receipt when updating the upgrade sequence. The authority might do a valid cancellation and accidentally reset their upgrade sequence to 0.

Maybe ChanUpgradeCancel should return the upgrade sequence to update to:

  • channel.UpgradeSequence if authority cancels without proof
  • errorreceipt.UpgradeSequence if error receipt is proved

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged/assigned
@colin-axner colin-axner added type: bug Something isn't working as expected channel-upgradability Channel upgradability feature labels Dec 7, 2023
@colin-axner colin-axner added this to the 04-channel upgrades beta milestone Dec 7, 2023
@colin-axner
Copy link
Contributor Author

colin-axner commented Dec 7, 2023

update docs written in #5274 when fixing this issue to specify what the upgrade sequence will be set to

@crodriguezvega crodriguezvega moved this to Todo in ibc-go Dec 7, 2023
@charleenfei charleenfei self-assigned this Dec 8, 2023
@charleenfei
Copy link
Contributor

nice catch @colin-axner!

@charleenfei charleenfei moved this from Todo to In review in ibc-go Dec 11, 2023
@charleenfei charleenfei moved this from In review to Done in ibc-go Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
channel-upgradability Channel upgradability feature type: bug Something isn't working as expected
Projects
Archived in project
Development

No branches or pull requests

2 participants