Constant cumulus_primitives_core::relay_chain::v2::MAX_CODE_SIZE
source · pub const MAX_CODE_SIZE: u32 = 3 * 1024 * 1024; // 3_145_728u32
Expand description
Maximum compressed code size we support right now. At the moment we have runtime upgrade on chain, which restricts scalability severely. If we want to have bigger values, we should fix that first.
Used for:
- initial genesis for the Parachains configuration
- checking updates to this stored runtime configuration do not exceed this limit
- when detecting a code decompression bomb in the client