Constant polkadot_primitives::v1::MAX_CODE_SIZE [−][src]
pub const MAX_CODE_SIZE: u32 = 3 * 1024 * 1024; // 0x0030_0000u32
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