Skip to content
Unverified Commit 9930d213 authored by Vedhavyas Singareddi's avatar Vedhavyas Singareddi Committed by GitHub
Browse files

Update `RuntimeVerison` type and use `system_version` to derive extrinsics...


Update `RuntimeVerison` type and use `system_version` to derive extrinsics root `StateVersion` instead of `V0` (#4257)

This PR 
- Renames `RuntimeVersion::state_version` to `system_version`
- Uses `Runtime::system_version` to derive extrinsics root
`StateVersion` instead of default `StateVersion::V0`

This PR should not be breaking any existing chains so long as they use
same `RuntimeVersion::state_version` for `Runtime::system_version`

Using `RuntimeVersion::system_version = 2` will make the extrinsics root
to use `StateVersion::V1` instead of `V0`

RFC for this change - https://github.com/polkadot-fellows/RFCs/pull/42

---------

Co-authored-by: default avatarBastian Köcher <[email protected]>
Co-authored-by: default avatarKoute <[email protected]>
Co-authored-by: default avatarNazar Mokrynskyi <[email protected]>
parent aec2b105
Pipeline #496391 waiting for manual action with stages
in 11 minutes and 5 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment