revm_specification/constants.rs
1/// EVM interpreter stack limit
2pub const STACK_LIMIT: usize = 1024;
3
4/// EIP-170: Contract code size limit
5///
6/// By default the limit is `0x6000` (~25kb)
7pub const MAX_CODE_SIZE: usize = 0x6000;
8
9/// EIP-3860: Limit and meter initcode
10///
11/// Limit of maximum initcode size is `2 * MAX_CODE_SIZE`.
12pub const MAX_INITCODE_SIZE: usize = 2 * MAX_CODE_SIZE;
13
14/// EVM call stack limit
15pub const CALL_STACK_LIMIT: u64 = 1024;