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
test: integration tests for NIP-22 created_at timestamp limits #505
The relay enforces createdAt.maxPositiveDelta (default 900s) and createdAt.maxNegativeDelta (default 0 = unlimited) from settings to reject events with implausible timestamps. There are no integration tests covering this enforcement.
What to test
Event with created_at exactly at the current time → accepted
Event with created_at 900 seconds in the future (at the limit) → accepted
Event with created_at 901 seconds in the future (over the limit) → rejected with invalid:
When maxNegativeDelta is configured, events older than the limit → rejected
Activity
Priyanshubhartistm commentedon Apr 18, 2026
@phoenix-server , @cameri could you please assign
cameri commentedon Apr 22, 2026
@Priyanshubhartistm thank you!