-
Notifications
You must be signed in to change notification settings - Fork 371
feat(governance): New proposal type: TakeCanisterSnapshot. #8228
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
Open
daniel-wong-dfinity-org
wants to merge
6
commits into
master
Choose a base branch
from
take-snapshot-proposal-daniel-wong
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat(governance): New proposal type: TakeCanisterSnapshot. #8228
daniel-wong-dfinity-org
wants to merge
6
commits into
master
from
take-snapshot-proposal-daniel-wong
+43
−2
Conversation
This file contains hidden or 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
1db0ec0 to
afa1f8d
Compare
Contributor
Author
daniel-wong-dfinity-org
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewer guide.
- Done.
- Only in the usual sense: now, there is a new NnsFunction: in order for clients to make sense of the payload, they need to make code changes. OTOH, Candid libraries will decode just fine, even without code changes.
- Existing data is fine. No new requirements.
- Requesting review of broader feature, but for this PR, all is ok, since this feature is disabled by flag.
… this commit does is introduces the (canister) API and storage types. Disabled via flag; hence, this can be merged into master.
…t into a TakeCanisterSnapshotRequest.
ef038fe to
29bd7e6
Compare
jasonz-dfinity
approved these changes
Jan 7, 2026
jasonz-dfinity
requested changes
Jan 7, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This most introduces the (canister) API and storage (Protocol Buffer) types. Disabled (in production) via a flag.
The other small thing this does is basic validation of the payload. The validation just consists of making sure that it can be decoded as a TakeCanisterSnapshotRequest. One can imagine that further checks being performed, but due to technical limitations (namely, changing functions to async), such checks are not so straightforward.
Nothing has been done yet on execution of such proposals, but since this is an NnsFunction, maybe there is nothing left to do.
Previous Work
In the previous PR, the Root canister was given a new method named
take_canister_snapshot, and that is where the (main) implementation of this new proposal type lives.Future Work
If there are Governance canister changes that are needed to execute this type of proposal, they'll be made in future changes. If not, I guess we can proceed directly to writing an integration test.
References
Addresses NNS1-4295.
👈 Previous PR | Next PR 👉