diff options
| author | Doug Hoyte <doug@hcsw.org> | 2023-05-19 00:54:44 -0400 |
|---|---|---|
| committer | fiatjaf_ <fiatjaf@gmail.com> | 2023-06-04 18:34:17 -0300 |
| commit | fe9ed69dc3aec54ae437ca09a6d61aa2ce175577 (patch) | |
| tree | e4b99f3b84429f8e370d9f8b551b562912900320 /16.md | |
| parent | cabbaadb69ecf28c2a91ced63359e1bd15b14ea9 (diff) | |
Specify replacement behaviour when replaceable events have the same timestamp
- This is so that relays can converge on a deterministic sets of events, no matter the order they were received
- Otherwise, clients or relays that sync their sets of events could continually retransmit events they think are missing on the other side, wasting bandwidth
Diffstat (limited to '16.md')
| -rw-r--r-- | 16.md | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -20,6 +20,8 @@ Upon a replaceable event with a newer timestamp than the currently known latest | |||
| 20 | effectively replacing what gets returned when querying for | 20 | effectively replacing what gets returned when querying for |
| 21 | `author:kind` tuples. | 21 | `author:kind` tuples. |
| 22 | 22 | ||
| 23 | If two events have the same timestamp, the event with the lowest id (first in lexical order) SHOULD be retained, and the other discarded. | ||
| 24 | |||
| 23 | Ephemeral Events | 25 | Ephemeral Events |
| 24 | ---------------- | 26 | ---------------- |
| 25 | An *ephemeral event* is defined as an event with a kind `20000 <= n < 30000`. | 27 | An *ephemeral event* is defined as an event with a kind `20000 <= n < 30000`. |