events cannot really be replaced

clarifying what it means to "replace an event"
This commit is contained in:
Leo Wandersleb
2023-03-26 12:10:29 -03:00
committed by fiatjaf_
parent 39e3c1b926
commit dced433f9c
2 changed files with 7 additions and 3 deletions

6
33.md
View File

@@ -14,8 +14,10 @@ The value of a tag is defined as the first parameter of a tag after the tag name
A *parameterized replaceable event* is defined as an event with a kind `30000 <= n < 40000`.
Upon a parameterized replaceable event with a newer timestamp than the currently known latest
replaceable event with the same kind and first `d` tag value being received, the old event
SHOULD be discarded and replaced with the newer event.
replaceable event with the same kind, author and first `d` tag value being received, the old event
SHOULD be discarded, effectively replacing what gets returned when querying for
`author:kind:d-tag` tuples.
A missing or a `d` tag with no value should be interpreted equivalent to a `d` tag with the
value as an empty string. Events from the same author with any of the following `tags`
replace each other: