pub const MAX_CPI_INSTRUCTION_DATA_LEN: u64 = 10 * 1024; // 10_240u64
Expand description

Maximum CPI instruction data size. 10 KiB was chosen to ensure that CPI instructions are not more limited than transaction instructions if the size of transactions is doubled in the future.