upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/16.md
diff options
context:
space:
mode:
authorSemisol <hi@semisol.dev>2022-05-26 21:22:51 +0300
committerSemisol <hi@semisol.dev>2022-05-26 21:23:05 +0300
commit1a1e3e74ec40c23e4e5ce0046dd547c847f9a595 (patch)
tree570f44ded6d1ca0497dc00c47933535d1874891c /16.md
parent62fde6c098efa4fcbf57eae4321b346c21fc6687 (diff)
nip16: add newlines
Diffstat (limited to '16.md')
-rw-r--r--16.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/16.md b/16.md
index dd62aba..e687b81 100644
--- a/16.md
+++ b/16.md
@@ -10,18 +10,18 @@ Relays may decide to allow replaceable and/or ephemeral events.
10 10
11Replaceable Events 11Replaceable Events
12------------------ 12------------------
13A *replaceable event* is defined as an event with a `replaceable` tag with value `1`. Relays SHOULD treat unknown types as if the event is not replaceable. 13A *replaceable event* is defined as an event with a `replaceable` tag with value `1`. Relays SHOULD treat unknown types as if the event is not replaceable.
14Upon a replaceable event with a newer timestamp than the currently known latest replaceable event with the same kind, the old event SHOULD be discarded and replaced with the newer event. 14Upon a replaceable event with a newer timestamp than the currently known latest replaceable event with the same kind, the old event SHOULD be discarded and replaced with the newer event.
15 15
16Ephemeral Events 16Ephemeral Events
17---------------- 17----------------
18An *ephemeral event* is defined as an event with an `ephemeral` tag with value `1`. Relays are RECOMMENDED to reject unknown types for future extensions. 18An *ephemeral event* is defined as an event with an `ephemeral` tag with value `1`. Relays are RECOMMENDED to reject unknown types for future extensions.
19Upon an ephemeral event being received, the relay SHOULD send it to all clients with a matching filter, and MUST NOT store it. 19Upon an ephemeral event being received, the relay SHOULD send it to all clients with a matching filter, and MUST NOT store it.
20 20
21Client Behavior 21Client Behavior
22--------------- 22---------------
23 23
24Clients SHOULD use the `supported_nips` field to learn if a relay supports generic tag queries. Clients SHOULD NOT send ephemeral events to relays that do not support this NIP; they will be persisted. Clients MAY send replaceable events to relays that may not support this NIP, and clients querying SHOULD be prepared for the relay to send multiple events and should use the latest one. 24Clients SHOULD use the `supported_nips` field to learn if a relay supports generic tag queries. Clients SHOULD NOT send ephemeral events to relays that do not support this NIP; they will be persisted. Clients MAY send replaceable events to relays that may not support this NIP, and clients querying SHOULD be prepared for the relay to send multiple events and should use the latest one.
25 25
26Clients are RECOMMENDED to ignore events without replaceability when requesting replaceable events. 26Clients are RECOMMENDED to ignore events without replaceability when requesting replaceable events.
27 27