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

Make gateway upgrade process faster in case of breaking node upgrade #404

Open
lumtis opened this issue Oct 17, 2024 · 0 comments
Open

Make gateway upgrade process faster in case of breaking node upgrade #404

lumtis opened this issue Oct 17, 2024 · 0 comments

Comments

@lumtis
Copy link
Member

lumtis commented Oct 17, 2024

When the blockchain node upgrade and require a contract upgrade because of breaking interface the following problem can happen:

  • The upgrade is scheduled for a height
  • Once height is reached, every gateways need be upgraded. The upgrade is a sensitive action using a setup with maximum number of signers. The upgrade can be a lengthy process but would have to happen as soon as upgrade height is reached.

Proposed solution

Upgrade is sensitive because contract can be replaced by a malicious one, not because of the upgrade itself. The process could be made more flexible to prepare for the upgrade.

  • A new role is introduced: UPGRADE_EXECUTOR, requires less signatures than upgrade admin
  • Upgrade admin propose new implementation contract to be schedule
  • The upgrade executor can execute the upgrade to this implementation at any time
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

No branches or pull requests

1 participant