Skip to main content

MAX_REPORT_LEVELS

Constant MAX_REPORT_LEVELS 

Source
pub const MAX_REPORT_LEVELS: usize = 16;
Expand description

Cap on the number of levels a DATA header may order a report for (docs/PROTOCOL.md §6.2, key 10).

A report order is a remote-controlled list, so it needs a cap for the same reason MAX_LIST_ITEMS exists; 16 is more levels than the level space defines below the application floor, so it constrains nothing a sender legitimately wants.