mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-24 05:31:09 +00:00
Relax Origin Checks in Registrar, Add Lock to Registration (#2808)
* Relax Origin Checks in Registrar * fix tests * Update runtime/common/src/paras_registrar.rs * introduce para locks * apply a lock after upgrade * add test * add lock when creating crowdloan
This commit is contained in:
@@ -47,6 +47,14 @@ pub trait Registrar {
|
||||
Self::is_parathread(id) || Self::is_parachain(id)
|
||||
}
|
||||
|
||||
/// Apply a lock to the para registration so that it cannot be modified by
|
||||
/// the manager directly. Instead the para must use its sovereign governance
|
||||
/// or the governance of the relay chain.
|
||||
fn apply_lock(id: ParaId);
|
||||
|
||||
/// Remove any lock on the para registration.
|
||||
fn remove_lock(id: ParaId);
|
||||
|
||||
/// Register a Para ID under control of `who`. Registration may be be
|
||||
/// delayed by session rotation.
|
||||
fn register(
|
||||
|
||||
Reference in New Issue
Block a user