-
Notifications
You must be signed in to change notification settings - Fork 252
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
pallet-domains storage migration for "Private EVM" #3360
Conversation
29655a9
to
a425f09
Compare
ee8c646
to
eb4e295
Compare
a425f09
to
8fa2e15
Compare
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.
This PR is up to date, but the diff will be a bit confusing until #3350 merges, and we merge those changes into the taurus-runtime-upgrades
a1a70ee
to
eb2daee
Compare
f70a549
to
c0aa066
Compare
I had a conversation with @dariolina today here is what I have proposed. Having these migrations specific to taurus defeats the whole purpose of having versioned migrations. We only want the spec_versions to be different from taurus and mainnet for both Consensus and Domains. So whenever we want to upgrade taurus, we can create a temporary branch that just updates the spec_versions. The rest of the versions such as StorageVersions, Api versions would be part of the This will ensure we always write necessary migrations and compatibility code in cc: @NingLin-P @teor2345 |
Yes, I agree. It also makes it harder for anyone who happens to be running another network like ours (not that there’s anyone yet, but there might be in future).
Sounds good.
Would you like this version bump as a separate PR? It seems simpler.
Yes, I agree, I’ve updated the TODOs on this PR. |
eb2daee
to
dbb4a8f
Compare
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.
LGTM
These changes are already in. But would prefer if you take a moment to check current storage versions of taurus and bump them if required accordingly |
pallet-domains is on version 2 in the |
TODO
main
main
branchHow to review this PR
This PR is part of a series of PRs which add "private EVM" functionality to subspace. It upgrades the existing storage formats for this feature.
The Taurus EVM and AutoId domains need this upgrade. Mainnet doesn't need an upgrade at this time, because it doesn't have any EVM or AutoId domains deployed. But doing the upgrade on mainnet is harmless, because it won't find any EVM/AutoId domains, and therefore won't change anything.
What it does
This PR upgrades the domain registry storage into a new format which stores the EVM type and initial contract creation allow list. (Or the AutoId domain config, which is currently empty.)
Code contributor checklist: