Skip to main content

MAX_REASON_LEN

Constant MAX_REASON_LEN 

Source
pub const MAX_REASON_LEN: usize = 200;
Expand description

Maximum length of RiskSignal::reason, in bytes.

The reason is meant to be a single sentence, surfaced in tight gutter UI. Keeping the cap at 200 forces producers to be specific and prevents the review payload from ballooning when many signals fire.