difftreelog
feat use state_version = 1
in: master
10 files changed
Cargo.lockdiffbeforeafterboth--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5892,6 +5892,7 @@
"pallet-preimage",
"pallet-refungible",
"pallet-session",
+ "pallet-state-trie-migration",
"pallet-structure",
"pallet-sudo",
"pallet-template-transaction-payment",
@@ -9395,6 +9396,7 @@
"pallet-preimage",
"pallet-refungible",
"pallet-session",
+ "pallet-state-trie-migration",
"pallet-structure",
"pallet-sudo",
"pallet-template-transaction-payment",
@@ -13812,6 +13814,7 @@
"pallet-preimage",
"pallet-refungible",
"pallet-session",
+ "pallet-state-trie-migration",
"pallet-structure",
"pallet-sudo",
"pallet-template-transaction-payment",
Cargo.tomldiffbeforeafterboth--- a/Cargo.toml
+++ b/Cargo.toml
@@ -107,6 +107,7 @@
pallet-balances = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
pallet-preimage = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
pallet-session = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
+pallet-state-trie-migration = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
pallet-sudo = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
pallet-timestamp = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
pallet-transaction-payment = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
runtime/common/config/substrate.rsdiffbeforeafterboth31use sp_arithmetic::traits::One;31use sp_arithmetic::traits::One;32use frame_system::{32use frame_system::{33 limits::{BlockLength, BlockWeights},33 limits::{BlockLength, BlockWeights},34 EnsureRoot,34 EnsureRoot, EnsureNever,35};35};36use pallet_transaction_payment::{Multiplier, ConstFeeMultiplier};36use pallet_transaction_payment::{Multiplier, ConstFeeMultiplier};37use crate::{37use crate::{115 type MaxConsumers = ConstU32<16>;115 type MaxConsumers = ConstU32<16>;116}116}117118parameter_types! {119 pub const MigrationMaxKeyLen: u32 = 512;120}121122impl pallet_state_trie_migration::Config for Runtime {123 type WeightInfo = pallet_state_trie_migration::weights::SubstrateWeight<Self>;124 type RuntimeEvent = RuntimeEvent;125 type Currency = Balances;126 type SignedDepositPerItem = ();127 type SignedDepositBase = ();128 type ControlOrigin = EnsureRoot<AccountId>;129 // Only root can perform this migration130 type SignedFilter = EnsureNever<AccountId>;131 type MaxKeyLen = MigrationMaxKeyLen;132}117133118parameter_types! {134parameter_types! {119 pub const MinimumPeriod: u64 = SLOT_DURATION / 2;135 pub const MinimumPeriod: u64 = SLOT_DURATION / 2;runtime/common/construct_runtime.rsdiffbeforeafterboth--- a/runtime/common/construct_runtime.rs
+++ b/runtime/common/construct_runtime.rs
@@ -25,6 +25,7 @@
UncheckedExtrinsic = UncheckedExtrinsic
{
System: frame_system = 0,
+ StateTrieMigration: pallet_state_trie_migration = 1,
ParachainSystem: cumulus_pallet_parachain_system = 20,
ParachainInfo: parachain_info = 21,
runtime/opal/Cargo.tomldiffbeforeafterboth--- a/runtime/opal/Cargo.toml
+++ b/runtime/opal/Cargo.toml
@@ -73,6 +73,7 @@
"pallet-authorship/std",
"pallet-preimage/std",
"pallet-session/std",
+ "pallet-state-trie-migration/std",
"sp-consensus-aura/std",
'app-promotion-rpc/std',
'evm-coder/std',
@@ -225,6 +226,7 @@
pallet-balances = { features = ["insecure_zero_ed"], workspace = true }
pallet-preimage = { workspace = true }
pallet-session = { workspace = true }
+pallet-state-trie-migration = { workspace = true }
pallet-sudo = { workspace = true }
pallet-timestamp = { workspace = true }
pallet-transaction-payment = { workspace = true }
runtime/opal/src/lib.rsdiffbeforeafterboth--- a/runtime/opal/src/lib.rs
+++ b/runtime/opal/src/lib.rs
@@ -56,7 +56,7 @@
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 3,
- state_version: 0,
+ state_version: 1,
};
parameter_types! {
runtime/quartz/Cargo.tomldiffbeforeafterboth--- a/runtime/quartz/Cargo.toml
+++ b/runtime/quartz/Cargo.toml
@@ -75,6 +75,7 @@
"pallet-identity/std",
"pallet-preimage/std",
"pallet-session/std",
+ "pallet-state-trie-migration/std",
"sp-consensus-aura/std",
'app-promotion-rpc/std',
'evm-coder/std',
@@ -217,6 +218,7 @@
pallet-balances = { features = ["insecure_zero_ed"], workspace = true }
pallet-preimage = { workspace = true }
pallet-session = { workspace = true }
+pallet-state-trie-migration = { workspace = true }
pallet-sudo = { workspace = true }
pallet-timestamp = { workspace = true }
pallet-transaction-payment = { workspace = true }
runtime/quartz/src/lib.rsdiffbeforeafterboth--- a/runtime/quartz/src/lib.rs
+++ b/runtime/quartz/src/lib.rs
@@ -59,7 +59,7 @@
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 3,
- state_version: 0,
+ state_version: 1,
};
parameter_types! {
runtime/unique/Cargo.tomldiffbeforeafterboth--- a/runtime/unique/Cargo.toml
+++ b/runtime/unique/Cargo.toml
@@ -72,6 +72,7 @@
"pallet-identity/std",
"pallet-preimage/std",
"pallet-session/std",
+ "pallet-state-trie-migration/std",
"sp-consensus-aura/std",
'app-promotion-rpc/std',
'evm-coder/std',
@@ -216,6 +217,7 @@
pallet-balances = { features = ["insecure_zero_ed"], workspace = true }
pallet-preimage = { workspace = true }
pallet-session = { workspace = true }
+pallet-state-trie-migration = { workspace = true }
pallet-sudo = { workspace = true }
pallet-timestamp = { workspace = true }
pallet-transaction-payment = { workspace = true }
runtime/unique/src/lib.rsdiffbeforeafterboth--- a/runtime/unique/src/lib.rs
+++ b/runtime/unique/src/lib.rs
@@ -56,7 +56,7 @@
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 3,
- state_version: 0,
+ state_version: 1,
};
parameter_types! {