Skip to content

Commit

Permalink
chore: Increase max_code_byte_size
Browse files Browse the repository at this point in the history
  • Loading branch information
andreespirela committed Sep 17, 2024
1 parent 709c07c commit dd9645e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/transaction-pool/src/validate/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit dd9645e

Please sign in to comment.