From 576cef45920a8f7e6e05d9c2b72b0f77549e2cb1 Mon Sep 17 00:00:00 2001 From: Hernando Castano Date: Fri, 7 Jan 2022 16:40:25 -0800 Subject: [PATCH] Add `state_version` field https://github.com/paritytech/substrate/pull/9732 --- runtime/src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 1321d1c..d798ec6 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -192,6 +192,13 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, + // Since Canvas is a "live" chain (on Rococo anyways), we need to set this to `0` until a + // migration path to `state_version = 1` is ready. + // + // See the following PRs for more details: + // - https://github.com/paritytech/substrate/pull/9732 + // - https://github.com/paritytech/substrate/pull/10073 + state_version: 0, }; /// This determines the average expected block time that we are targeting.