Enable Para Registration on Kusama (#3014)

* enable registration on kusama

* Update runtime/westend/src/lib.rs

Co-authored-by: Gavin Wood <gavin@parity.io>
This commit is contained in:
Shawn Tabrizi
2021-05-12 07:32:25 -04:00
committed by GitHub
parent 41a93127a9
commit 32c21b6a6f
2 changed files with 5 additions and 9 deletions
+2 -3
View File
@@ -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; pub struct BaseFilter;
impl Filter<Call> for BaseFilter { impl Filter<Call> for BaseFilter {
fn filter(c: &Call) -> bool { fn filter(c: &Call) -> bool {
!matches!(c, !matches!(c,
Call::Registrar(..) | Call::Registrar(paras_registrar::Call::swap(..))
Call::Slots(..)
) )
} }
} }
+3 -6
View File
@@ -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; pub struct BaseFilter;
impl Filter<Call> for BaseFilter { impl Filter<Call> for BaseFilter {
fn filter(c: &Call) -> bool { fn filter(_: &Call) -> bool {
!matches!(c, true
Call::Registrar(..) |
Call::Slots(..)
)
} }
} }