Skip to main content

MAX_WIRE_LIST_DEPTH

Constant MAX_WIRE_LIST_DEPTH 

Source
pub const MAX_WIRE_LIST_DEPTH: usize = 62; // 62usize
Expand description

Deepest list and struct nesting a script’s result may have: the guest writes a placeholder past it, so a struct holding itself ends, and the host decoder refuses it. A client reader counts every expression, so the (:id N :value V) envelope and the atom inside the innermost list take two of its levels (nomiscript::MAX_READ_DEPTH).