referrerpolicy=no-referrer-when-downgrade
pub fn schedule_code_upgrade<T: Config>(para: Id, new_code: ValidationCode)
Expand description

Schedule a parachain upgrade.

This will kick off a check of new_code by all validators. After the majority of the validators have reported on the validity of the code, the code will either be enacted or the upgrade will be rejected. If the code will be enacted, the current code of the parachain will be overwritten directly. This means that any PoV will be checked by this new code. The parachain itself will not be informed explicitly that the validation code has changed.

Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked.

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::schedule_code_upgrade.