Function polkadot_runtime_common::paras_registrar::pallet::dispatchables::register
source · pub fn register<T: Config>(
id: ParaId,
genesis_head: HeadData,
validation_code: ValidationCode
)Expand description
Register head data and validation code for a reserved Para Id.
Arguments
origin: Must be called by aSignedorigin.id: The para ID. Must be owned/managed by theoriginsigning account.genesis_head: The genesis head data of the parachain/thread.validation_code: The initial validation code of the parachain/thread.
Deposits/Fees
The origin signed account must reserve a corresponding deposit for the registration. Anything already reserved previously for this para ID is accounted for.
Events
The Registered event is emitted in case of success.
Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::register.