From 8f92e3f9d85ca316f10b9f485cf426db92012e7b Mon Sep 17 00:00:00 2001 From: jasl Date: Mon, 7 Feb 2022 05:03:37 +0800 Subject: [PATCH] Apply https://github.com/paritytech/substrate/pull/10662 to phala pallets --- pallets/phala/src/mining.rs | 1 + pallets/phala/src/mq.rs | 1 + pallets/phala/src/ott.rs | 1 + pallets/phala/src/puppets.rs | 4 +++- pallets/phala/src/registry.rs | 1 + pallets/phala/src/stakepool.rs | 1 + 6 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pallets/phala/src/mining.rs b/pallets/phala/src/mining.rs index 268f34da96..3b858c670a 100644 --- a/pallets/phala/src/mining.rs +++ b/pallets/phala/src/mining.rs @@ -200,6 +200,7 @@ pub mod pallet { #[pallet::pallet] #[pallet::generate_store(pub(super) trait Store)] #[pallet::storage_version(STORAGE_VERSION)] + #[pallet::without_storage_info] pub struct Pallet(_); /// Tokenomic parameters used by Gatekeepers to compute the V promote. diff --git a/pallets/phala/src/mq.rs b/pallets/phala/src/mq.rs index e2925fe867..c8931f8f18 100644 --- a/pallets/phala/src/mq.rs +++ b/pallets/phala/src/mq.rs @@ -27,6 +27,7 @@ pub mod pallet { #[pallet::pallet] #[pallet::generate_store(pub(super) trait Store)] #[pallet::storage_version(STORAGE_VERSION)] + #[pallet::without_storage_info] pub struct Pallet(_); /// The next expected sequence of a ingress message coming from a certain sender (origin) diff --git a/pallets/phala/src/ott.rs b/pallets/phala/src/ott.rs index 8172469940..372369863d 100644 --- a/pallets/phala/src/ott.rs +++ b/pallets/phala/src/ott.rs @@ -34,6 +34,7 @@ pub mod pallet { #[pallet::pallet] #[pallet::generate_store(pub(super) trait Store)] #[pallet::storage_version(STORAGE_VERSION)] + #[pallet::without_storage_info] pub struct Pallet(_); /// The accounts forbidden to transfer diff --git a/pallets/phala/src/puppets.rs b/pallets/phala/src/puppets.rs index f2a663a3b3..68fd51c6e8 100644 --- a/pallets/phala/src/puppets.rs +++ b/pallets/phala/src/puppets.rs @@ -8,6 +8,7 @@ pub mod parachain_info { #[pallet::pallet] #[pallet::generate_store(pub(super) trait Store)] + #[pallet::without_storage_info] pub struct Pallet(_); #[pallet::config] @@ -33,6 +34,7 @@ pub mod parachain_system { #[pallet::pallet] #[pallet::generate_store(pub(super) trait Store)] + #[pallet::without_storage_info] pub struct Pallet(_); #[pallet::config] @@ -49,4 +51,4 @@ pub mod parachain_system { relay_parent_number: u32, } } -} \ No newline at end of file +} diff --git a/pallets/phala/src/registry.rs b/pallets/phala/src/registry.rs index a80a8b0d49..3e71f44739 100644 --- a/pallets/phala/src/registry.rs +++ b/pallets/phala/src/registry.rs @@ -63,6 +63,7 @@ pub mod pallet { #[pallet::pallet] #[pallet::generate_store(pub(super) trait Store)] #[pallet::storage_version(STORAGE_VERSION)] + #[pallet::without_storage_info] pub struct Pallet(_); /// Gatekeeper pubkey list diff --git a/pallets/phala/src/stakepool.rs b/pallets/phala/src/stakepool.rs index cf7b90c589..99ff45af6b 100644 --- a/pallets/phala/src/stakepool.rs +++ b/pallets/phala/src/stakepool.rs @@ -94,6 +94,7 @@ pub mod pallet { #[pallet::pallet] #[pallet::generate_store(pub(super) trait Store)] #[pallet::storage_version(STORAGE_VERSION)] + #[pallet::without_storage_info] pub struct Pallet(_); /// Mapping from pool id to PoolInfo