referrerpolicy=no-referrer-when-downgrade
pub type PendingValidationCode<T: Config> = StorageValue<_GeneratedPrefixForStoragePendingValidationCode<T>, Vec<u8>, ValueQuery>;
Expand description

In case of a scheduled upgrade, this storage field contains the validation code to be applied.

As soon as the relay chain gives us the go-ahead signal, we will overwrite the [:code][sp_core::storage::well_known_keys::CODE] which will result the next block process with the new validation code. This concludes the upgrade process.

Storage type is [StorageValue] with value type Vec < u8 >.

Aliased Type§

struct PendingValidationCode<T: Config>(/* private fields */);