You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs(adr): ADR 005/022 per-IP rate-limit rows claim relay unwrapping the code does not do #2504
The code has no unwrapping. rate_limit::peer_ip returns None when the connection has only a relay path. RateLimiter::try_admit_one then skips layer 2 ("Skipped for relay-only connections"). The probe and DHT handlers share this limiter. The relay does not expose the client address to the node.
Both ADRs' "Why three layers, not one" paragraphs also say the per-IP layer makes NodeId rotation cost money. That holds only for direct-path connections.
Fix
Change both rows to say what the code does: the key is the direct-path source IP (/64 for IPv6), and a relay-only connection is not charged on this layer. Each "Why three layers" paragraph should state the same limit. ASD-STE100, present tense.
Activity