pub const MAX_DEPTH: usize = 64;Expand description
Maximum CPI nesting the tree will represent. Real Solana caps CPI depth at a
handful of levels; this generous bound prevents adversarial logs (tens of
thousands of unclosed invoke lines) from building a tree so deep that
serializing or traversing it overflows the stack. Invocations beyond it are
flattened (attached at the cap, not nested deeper).