From d4c3f2a2cca5df81f4896bceed338238900bf151 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 20 Aug 2024 16:46:31 -0400 Subject: [PATCH] change create_at limits to be relative to now --- 22.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/22.md b/22.md index 048b6b8..9fcf35c 100644 --- a/22.md +++ b/22.md @@ -20,7 +20,7 @@ Where `limit_properties` includes properties that are specifically designed to c - `accepted_event_kinds: [, , ...]`, Clients MUST filter publishing events by these types. - `blocked_event_kinds: [, , ...]`, Clients MUST remove these types from publishing actions.

-- `min_pow_difficulty: `: Clients MUST filter publishing events if they don't have at least this PoW bit difficulty. +- `min_pow_difficulty: `: Clients MUST filter publishing events to have PoW (number of bits equal to zero) >= this value

- `max_message_length: `, Clients MUST filter publishing events and crop/chunk `REQ` filters by this length. - `max_subscriptions: `, Clients MUST reduce the number of subscriptions to this amount. @@ -29,12 +29,12 @@ Where `limit_properties` includes properties that are specifically designed to c - `max_event_tags: `, Clients MUST filter publishing events by this `.tags` length. - `max_content_length: `, Clients MUST filter publishing events by this `.content` length.

-- `created_at_lower_limit: `, Clients MUST filter publishing events whose `.created_at` is smaller than this number -- `created_at_upper_limit: `, Clients MUST filter publishing events whose `.created_at` is bigger than this number +- `created_at_msecs_ago: `, Clients MUST filter publishing events whose `.created_at` is > than now - this number +- `created_at_msecs_ahead: `, Clients MUST filter publishing events whose `.created_at` is < than now + this number

- `filter_rate_limit: `: Clients MUST debounce filter changes after this amount in milliseconds. - `publishing_rate_limit: `: Clients MUST debounce publishing events by this amount in milliseconds.

-- `required_tags: [ [ , ], [ , ] ]`, Clients MUST filter publishing events that don't include all listed tag names and values. +- `required_tags: [ [ , ], [ , ] ]`, Clients MUST filter publishing events to contain all listed tag names and values. This payload SHOULD be cached in the Client's Relay connection object and updated as many times as the relay requests. Clients should use the information here to apply filters when sending events and `REQs` to the relay.