From a9ff45469b4a3d367e210d38793f4fd1fb23e955 Mon Sep 17 00:00:00 2001 From: Oliver Tale-Yazdi Date: Wed, 19 Apr 2023 19:45:35 +0200 Subject: [PATCH] Bump MAX_CODE_SIZE to 10MiB Signed-off-by: Oliver Tale-Yazdi --- primitives/src/v4/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/primitives/src/v4/mod.rs b/primitives/src/v4/mod.rs index 56fe856d1504..32d07512ccc6 100644 --- a/primitives/src/v4/mod.rs +++ b/primitives/src/v4/mod.rs @@ -345,7 +345,7 @@ pub const ASSIGNMENT_KEY_TYPE_ID: KeyTypeId = KeyTypeId(*b"asgn"); /// * checking updates to this stored runtime configuration do not exceed this limit /// * when detecting a code decompression bomb in the client // NOTE: This value is used in the runtime so be careful when changing it. -pub const MAX_CODE_SIZE: u32 = 3 * 1024 * 1024; +pub const MAX_CODE_SIZE: u32 = 10 * 1024 * 1024; /// Maximum head data size we support right now. ///