From dd9645e403f805ab98b7acd404221098db5b42c9 Mon Sep 17 00:00:00 2001 From: andreespirela Date: Tue, 17 Sep 2024 12:26:06 -0400 Subject: [PATCH] chore: Increase max_code_byte_size --- crates/transaction-pool/src/validate/constants.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/transaction-pool/src/validate/constants.rs b/crates/transaction-pool/src/validate/constants.rs index 489677057aff..2c6dc570fa84 100644 --- a/crates/transaction-pool/src/validate/constants.rs +++ b/crates/transaction-pool/src/validate/constants.rs @@ -11,8 +11,10 @@ pub const TX_SLOT_BYTE_SIZE: usize = 32 * 1024; /// which defaults to 32 KiB, so 128 KiB. pub const DEFAULT_MAX_TX_INPUT_BYTES: usize = 4 * TX_SLOT_BYTE_SIZE; // 128KB +pub const DEFAULT_MULTIPLY_VAL_FOR_CODE_SIZE: usize = 2; + /// Maximum bytecode to permit for a contract. -pub const MAX_CODE_BYTE_SIZE: usize = 24576; +pub const MAX_CODE_BYTE_SIZE: usize = 24576 * DEFAULT_MULTIPLY_VAL_FOR_CODE_SIZE; /// Maximum initcode to permit in a creation transaction and create instructions. pub const MAX_INIT_CODE_BYTE_SIZE: usize = 2 * MAX_CODE_BYTE_SIZE;