Expand description
Reconstructs the CPI call tree from a lexed event stream.
The builder is tolerant: mismatched or missing success/failure lines never panic; nodes simply close on a best-effort basis and the resulting tree is still well-formed.
Structs§
- Call
Node - A node in the CPI call tree.
Enums§
- Node
Status - Outcome of a single program invocation.
Constants§
- MAX_
DEPTH - 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
invokelines) 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).
Functions§
- build
- Build a call tree from a lexed event stream.