Skip to main content

MAX_VALUE_DEPTH

Constant MAX_VALUE_DEPTH 

Source
pub const MAX_VALUE_DEPTH: usize = 128;
Expand description

The deepest a row’s value may nest, counted as the device’s storage counts it (isWithinReplicaValueDepth in client/ports/src/replica.js): the value is level 1 and each container adds a level for what it holds, so 127 nested containers are accepted and 128 refused. That is exactly what serde_json’s default recursion limit (128) parses, so the node can read every value the helper serves. See value_within_depth.