Skip to main content

MAX_COMMUNITY_RELAYS

Constant MAX_COMMUNITY_RELAYS 

Source
pub const MAX_COMMUNITY_RELAYS: usize = 5;
Expand description

Protocol cap on a Community’s relay set (§ transport). More relays are needless and amplify resource + metadata-exposure cost; 5 gives redundancy without centralisation. Enforced by truncate-on-read at every Community/CommunityInvite construction boundary, so a hostile or legacy bundle degrades to ≤5 distinct relays rather than being honored or rejected.