mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 05:51:02 +00:00
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:
@@ -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 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 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(..)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user