pub fn cap_relays(relays: Vec<String>) -> Vec<String>Expand description
Dedupe (order-preserving) + truncate a relay set to MAX_COMMUNITY_RELAYS. Dedup first so the
cap means “up to 5 DISTINCT relays” — a bundle padding one relay 5× can’t waste the budget.