pub const MAX_FRAME_LEN: usize = 1_000_000;Expand description
Maximum allowed size for a single frame in bytes.
While typical L1 transactions carrying frames are around 128 KB due to network conditions and gas limits, this larger limit provides headroom for future growth as L1 gas limits and network conditions improve.
The 1MB limit balances:
- Transmission efficiency: Larger frames reduce overhead
- Network compatibility: Must fit within reasonable L1 transaction sizes
- Memory constraints: Avoid excessive memory usage during processing