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:
authorLeo Wandersleb <leo@leowandersleb.de>2023-03-26 12:10:29 -0300
committerfiatjaf_ <fiatjaf@gmail.com>2023-03-26 13:52:08 -0300
commitdced433f9c6f7151121f28f3824b2ee11e446ca8 (patch)
tree41a9b10198cee1719d14dd491b920548c632fa09 /16.md
parent39e3c1b926bf1bf504eb8b2176a6403f9a6b2ab9 (diff)
events cannot really be replaced
clarifying what it means to "replace an event"
Diffstat (limited to '16.md')
-rw-r--r--16.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/16.md b/16.md
index 80a6b3d..4d9481d 100644
--- a/16.md
+++ b/16.md
@@ -16,7 +16,9 @@ Upon a regular event being received, the relay SHOULD send it to all clients wit
16Replaceable Events 16Replaceable Events
17------------------ 17------------------
18A *replaceable event* is defined as an event with a kind `10000 <= n < 20000`. 18A *replaceable event* is defined as an event with a kind `10000 <= n < 20000`.
19Upon a replaceable event with a newer timestamp than the currently known latest replaceable event with the same kind being received, and signed by the same key, the old event SHOULD be discarded and replaced with the newer event. 19Upon a replaceable event with a newer timestamp than the currently known latest replaceable event with the same kind and author being received, the old event SHOULD be discarded,
20effectively replacing what gets returned when querying for
21`author:kind` tuples.
20 22
21Ephemeral Events 23Ephemeral Events
22---------------- 24----------------