Skip to main content

MAX_DEPTH

Constant MAX_DEPTH 

Source
pub const MAX_DEPTH: usize = 32;
Expand description

Nesting depth limit for objects and arrays. xrpld uses 10 (STVar); this one leaves headroom but is still finite: the parser is recursive, and network input with thousands of nesting levels would otherwise overflow the stack.