referrerpolicy=no-referrer-when-downgrade
pub fn register<T: Config>(
    id: Id,
    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 a Signed origin.
  • id: The para ID. Must be owned/managed by the origin signing account.
  • genesis_head: The genesis head data of the parachain/thread.
  • validation_code: The initial validation code of the parachain/thread.

§Deposits/Fees

The account with the originating signature must reserve a deposit.

The deposit is required to cover the costs associated with storing the genesis head data and the validation code. This accounts for the potential to store validation code of a size up to the max_code_size, as defined in the configuration pallet

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.