Unverified Commit 6437b7b1 authored by Shawn Tabrizi's avatar Shawn Tabrizi Committed by GitHub
Browse files

Enable Para Registration on Kusama (#3014)



* enable registration on kusama

* Update runtime/westend/src/lib.rs

Co-authored-by: default avatarGavin Wood <gavin@parity.io>
parent a458df1a
Pipeline #137854 passed with stages
in 29 minutes and 31 seconds
...@@ -144,13 +144,12 @@ pub fn native_version() -> NativeVersion { ...@@ -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(..)
) )
} }
} }
......
...@@ -143,14 +143,11 @@ pub fn native_version() -> NativeVersion { ...@@ -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(..)
)
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment