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

Devise a way to add a substorage when new module are deployed #514

Open
dynaxis opened this issue Sep 23, 2020 · 0 comments
Open

Devise a way to add a substorage when new module are deployed #514

dynaxis opened this issue Sep 23, 2020 · 0 comments

Comments

@dynaxis
Copy link
Member

dynaxis commented Sep 23, 2020

Currently just adding an empty substorage for ongoing use is considered a state change, resulting in a new root hash. It means that there must conceptually be a transaction to add a new empty substorage. When we upgrade applications, there might be cases where a new module with its own state is introduced. And this behavior introduces some hassles.

I'm not sure if this problem is solved if we can add an empty substorage without a transaction and the state changes only upon a change to the substorage. But it might be so.

We need to inspect this problem at least when we design the on-chain governance and upgrade scheme.

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