-
Notifications
You must be signed in to change notification settings - Fork 1
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
Runtime upgrade #87
Comments
Runtime upgradesOne of the defining features of Substrate-based chains are forkless upgrades, that is, the runtime (a compiled wasm binary) describing on-chain behaviour (pallet api, storage, etc.) is part of the state. Therefore, node operators/network maintainers can propose upgrades to the runtime which, if it is accepted in a governance voting process, overrides the on-chain runtime. The runtime code can be set via the
Root access can be gained via the Sudo pallet or via decentralized governance. Migrations and testingRuntime upgrades are much easier to perform when it only extends pallet functionality without modifying the underlying storage. However, if the storage is changed, because, for example:
It is important, however, to test these runtime upgrades via the
You can specify |
I'm closing this issue because for now it doesn't require code to be written, it's more like a reference manual TLDR for future use. |
Description
Two main areas are needed to be explored and tested properly:
Both are extremely important to understand well, because we are probably going to need many runtime upgrades initially on the nodes. As for weights, the speed of the chain depends on them, because transactions are included in blocks based on their pre-benchmarked weights. Thus, for optimal operation, the weights have to be benchmarked properly.
Solution
try-runtime
worksaddtry-runtime
testsThe text was updated successfully, but these errors were encountered: