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
[BUG] getEventExpiration() accepts expiration timestamp 0 as valid and rejects valid year 2287+ timestamps #707
Publish an event with an expiration tag of 0, e.g. ["expiration", "0"].
Observe the relay treats it as a validing/ignoring it.
Publish an event with an expiration tag > 9999999999, e.g. ["expiration", "10000000000"].
Observe the expiration is silently drores.
Screenshots
N/A
System
OS: Linux
Platform: Docker
Version: 3.0.0
Logs
N/A — no error is logged; the timestamp ided.
Additional context
getEventExpiration() is at src/utils/evenis at src/utils/event.ts:256). Its result feeds addExpirationMetadata() in src/handlers/event-message-handler.ts, so discard-far-future cases affect real event expiry behavior.
Activity