Skip to content

Commit 9505243

Browse files
authored
Re-enable Identity on Westend and Rococo (#1901)
Reverts #1476 The `lock_pallet` / `unlock_pallet` additions in #1814 will result in less downtime for users than using runtime upgrades.
1 parent e0620fd commit 9505243

File tree

2 files changed

+6
-28
lines changed

2 files changed

+6
-28
lines changed

polkadot/runtime/rococo/src/lib.rs

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ use frame_support::{
6767
genesis_builder_helper::{build_config, create_default_config},
6868
parameter_types,
6969
traits::{
70-
fungible::HoldConsideration, Contains, EitherOf, EitherOfDiverse, EverythingBut,
71-
InstanceFilter, KeyOwnerProofSystem, LinearStoragePrice, PrivilegeCmp, ProcessMessage,
72-
ProcessMessageError, StorageMapShim, WithdrawReasons,
70+
fungible::HoldConsideration, EitherOf, EitherOfDiverse, Everything, InstanceFilter,
71+
KeyOwnerProofSystem, LinearStoragePrice, PrivilegeCmp, ProcessMessage, ProcessMessageError,
72+
StorageMapShim, WithdrawReasons,
7373
},
7474
weights::{ConstantMultiplier, WeightMeter},
7575
PalletId,
@@ -156,24 +156,13 @@ pub fn native_version() -> NativeVersion {
156156
NativeVersion { runtime_version: VERSION, can_author_with: Default::default() }
157157
}
158158

159-
/// A type to identify calls to the Identity pallet. These will be filtered to prevent invocation,
160-
/// locking the state of the pallet and preventing further updates to identities and sub-identities.
161-
/// The locked state will be the genesis state of a new system chain and then removed from the Relay
162-
/// Chain.
163-
pub struct IdentityCalls;
164-
impl Contains<RuntimeCall> for IdentityCalls {
165-
fn contains(c: &RuntimeCall) -> bool {
166-
matches!(c, RuntimeCall::Identity(_))
167-
}
168-
}
169-
170159
parameter_types! {
171160
pub const Version: RuntimeVersion = VERSION;
172161
pub const SS58Prefix: u8 = 42;
173162
}
174163

175164
impl frame_system::Config for Runtime {
176-
type BaseCallFilter = EverythingBut<IdentityCalls>;
165+
type BaseCallFilter = Everything;
177166
type BlockWeights = BlockWeights;
178167
type BlockLength = BlockLength;
179168
type DbWeight = RocksDbWeight;

polkadot/runtime/westend/src/lib.rs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use frame_support::{
3131
genesis_builder_helper::{build_config, create_default_config},
3232
parameter_types,
3333
traits::{
34-
fungible::HoldConsideration, ConstU32, Contains, EitherOf, EitherOfDiverse, EverythingBut,
34+
fungible::HoldConsideration, ConstU32, EitherOf, EitherOfDiverse, Everything,
3535
InstanceFilter, KeyOwnerProofSystem, LinearStoragePrice, ProcessMessage,
3636
ProcessMessageError, WithdrawReasons,
3737
},
@@ -160,24 +160,13 @@ pub fn native_version() -> NativeVersion {
160160
NativeVersion { runtime_version: VERSION, can_author_with: Default::default() }
161161
}
162162

163-
/// A type to identify calls to the Identity pallet. These will be filtered to prevent invocation,
164-
/// locking the state of the pallet and preventing further updates to identities and sub-identities.
165-
/// The locked state will be the genesis state of a new system chain and then removed from the Relay
166-
/// Chain.
167-
pub struct IdentityCalls;
168-
impl Contains<RuntimeCall> for IdentityCalls {
169-
fn contains(c: &RuntimeCall) -> bool {
170-
matches!(c, RuntimeCall::Identity(_))
171-
}
172-
}
173-
174163
parameter_types! {
175164
pub const Version: RuntimeVersion = VERSION;
176165
pub const SS58Prefix: u8 = 42;
177166
}
178167

179168
impl frame_system::Config for Runtime {
180-
type BaseCallFilter = EverythingBut<IdentityCalls>;
169+
type BaseCallFilter = Everything;
181170
type BlockWeights = BlockWeights;
182171
type BlockLength = BlockLength;
183172
type RuntimeOrigin = RuntimeOrigin;

0 commit comments

Comments
 (0)