-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nns): Support upgrading root canister through install_code (#396)
# Why Previously, `install_code` proposal action is added without supporting upgrading root. This PR supports it. # Changes We support creating a proposal with action `install_code` while specifying NNS Root as the target canister, and the proposal execution code will call the correct `upgrade_root` endpoint correctly (unlike upgrading other canisters which calls root). Note that `install` or `reinstall` modes aren't supported. It might not be obvious why `reinstall` isn't supported - HardResetRootToVersion supports "resetting" root, but the reset is implemented as an `uninstall_code` followed by `install_code` (with `Install` mode). This behavior seems to exceed what can be reasonably thought of as the `install_code` proposal action. Therefore, `HardResetRootToVersion` will remain as an NnsFunction and will later be switched to `ProtocolCanisterManagement` topic.
- Loading branch information
1 parent
d732d9d
commit de29a1a
Showing
2 changed files
with
175 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters