subspace_runtime_primitives

Constant MAX_CALL_RECURSION_DEPTH

Source
pub const MAX_CALL_RECURSION_DEPTH: u32 = 10;
Expand description

The maximum recursion depth we allow when parsing calls. This is a safety measure to avoid stack overflows.

Deeper nested calls can result in an error, or, if it is secure, the call is skipped. (Some code does unlimited heap-based recursion via nested_utility_call_iter().)