From 32c21b6a6f2242861ca6719f0c9ed780bd63f18d Mon Sep 17 00:00:00 2001 From: Shawn Tabrizi Date: Wed, 12 May 2021 07:32:25 -0400 Subject: [PATCH] Enable Para Registration on Kusama (#3014) * enable registration on kusama * Update runtime/westend/src/lib.rs Co-authored-by: Gavin Wood --- polkadot/runtime/kusama/src/lib.rs | 5 ++--- polkadot/runtime/westend/src/lib.rs | 9 +++------ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/polkadot/runtime/kusama/src/lib.rs b/polkadot/runtime/kusama/src/lib.rs index 5a7dca5479..d09bf3fe61 100644 --- a/polkadot/runtime/kusama/src/lib.rs +++ b/polkadot/runtime/kusama/src/lib.rs @@ -144,13 +144,12 @@ pub fn native_version() -> NativeVersion { } } -/// Avoid processing transactions from slots and parachain registrar except by root. +/// Don't allow swaps until parathread story is more mature. pub struct BaseFilter; impl Filter for BaseFilter { fn filter(c: &Call) -> bool { !matches!(c, - Call::Registrar(..) | - Call::Slots(..) + Call::Registrar(paras_registrar::Call::swap(..)) ) } } diff --git a/polkadot/runtime/westend/src/lib.rs b/polkadot/runtime/westend/src/lib.rs index 3f95fbb687..c06e59ebf2 100644 --- a/polkadot/runtime/westend/src/lib.rs +++ b/polkadot/runtime/westend/src/lib.rs @@ -143,14 +143,11 @@ pub fn native_version() -> NativeVersion { } } -/// Avoid processing transactions from slots and parachain registrar except by root. +/// Allow everything. pub struct BaseFilter; impl Filter for BaseFilter { - fn filter(c: &Call) -> bool { - !matches!(c, - Call::Registrar(..) | - Call::Slots(..) - ) + fn filter(_: &Call) -> bool { + true } }