Skip to content

Commit

Permalink
bring back 9cac35d
Browse files Browse the repository at this point in the history
fixes #732
  • Loading branch information
fiatjaf committed Aug 20, 2023
1 parent 2f84cd9 commit 37c4375
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 01.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,12 @@ Kinds specify how clients should interpret the meaning of each event and the oth
And also a convention for kind ranges that allow for easier experimentation and flexibility of relay implementation:

- for kind `n` such that `1000 <= n < 10000`, events are **regular**, which means they're all expected to be stored by relays.
- for kind `n` such that `10000 <= n < 20000`, events are **replaceable**, which means that, for each combination of `pubkey` and `kind`, only the latest event is expected to be stored by relays, older versions are expected to be discarded.
- for kind `n` such that `10000 <= n < 20000 || k == 0 || k == 3`, events are **replaceable**, which means that, for each combination of `pubkey` and `kind`, only the latest event is expected to be stored by relays, older versions are expected to be discarded.
- for kind `n` such that `20000 <= n < 30000`, events are **ephemeral**, which means they are not expected to be stored by relays.
- for kind `n` such that `30000 <= n < 40000`, events are **parameterized replaceable**, which means that, for each combination of `pubkey`, `kind` and the `d` tag, only the latest event is expected to be stored by relays, older versions are expected to be discarded.

In case of replaceable events with the same timestamp, the event with the lowest id (first in lexical order) should be retained, and the other discarded.

These are just conventions and relay implementations may differ.

## Communication between clients and relays
Expand Down

0 comments on commit 37c4375

Please sign in to comment.