pub fn register<T: Config>(
para_id: ParaId,
genesis_head: Vec<u8>,
code_len: u32,
code_hash: H256,
)Expand description
Ask the relay chain to register head data and validation code for a reserved para id.
Only code_hash and code_len are sent, never the validation code. The caller uploads
the blob to the relay chain separately, which accepts it only if it hashes to
code_hash and is exactly code_len bytes long.
§Costs
Takes Config::RegistrationConsideration for the head data and a code of the relay
chain’s max_code_size, on top of the para id reservation: a para pays for the largest
code it could ever have on chain, not the one it registers with. It is returned if the
relay chain rejects the registration or if the caller later abandons it.
Ids below Config::FirstPublicParaId are refused, see Pallet::force_register.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::register.