Exercise 04
Objectives: runtime update
Needs: Exercise 03
Content: In this exercise, we're going to meet a crucial mechanism: updating runtime for a live chain.
Start chain without banishment pallet (e.g. from main branch). Then perform runtime update according to 3 scenarios (for each you will have to restart the chain from the scratch). The target runtime is the one introducing banishment.
Use our tool
cliainto update runtime, but make sure that thespec_versionof your new runtime is the same as the one onmain. You shouldn't observe any updates (in particular, you shouldn't be able to interact with the new pallet). Nevertheless, you should check that indeed,setCodeextrinsic has been placed in some finalized block.Use our tool
cliain, but this time with bumpingspec_version. Assert that the new pallet is available and works correctly.Update runtime using UI page for submitting extrinsics. Again, assert that the new pallet is available and works correctly.
References:
Last updated
Was this helpful?