Skip to main content

PROJECTION_NODE_BUDGET

Constant PROJECTION_NODE_BUDGET 

Source
pub const PROJECTION_NODE_BUDGET: usize = 100_000;
Expand description

Maximum number of nodes a single projection may materialise.

A shared DAG expands to a tree when projected: a 3 KB module with a diamond chain can demand gigabytes of JSON. This bound turns that expansion into a fail-closed error instead of memory exhaustion.