diff options
| author | fiatjaf <fiatjaf@gmail.com> | 2023-08-19 23:03:19 -0300 |
|---|---|---|
| committer | fiatjaf <fiatjaf@gmail.com> | 2023-08-19 23:03:23 -0300 |
| commit | 37c4375e297166df8350c8a7d119d33c0757228b (patch) | |
| tree | db464cb331e525cbdec18abf12cb897330544f53 | |
| parent | 2f84cd97e38c0a824cc27ea2ac976545e9e3f09e (diff) | |
bring back 9cac35db9b1d41c8eb7413269308a76687489b30
fixes https://github.com/nostr-protocol/nips/issues/732
| -rw-r--r-- | 01.md | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -80,10 +80,12 @@ Kinds specify how clients should interpret the meaning of each event and the oth | |||
| 80 | And also a convention for kind ranges that allow for easier experimentation and flexibility of relay implementation: | 80 | And also a convention for kind ranges that allow for easier experimentation and flexibility of relay implementation: |
| 81 | 81 | ||
| 82 | - for kind `n` such that `1000 <= n < 10000`, events are **regular**, which means they're all expected to be stored by relays. | 82 | - for kind `n` such that `1000 <= n < 10000`, events are **regular**, which means they're all expected to be stored by relays. |
| 83 | - 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. | 83 | - 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. |
| 84 | - for kind `n` such that `20000 <= n < 30000`, events are **ephemeral**, which means they are not expected to be stored by relays. | 84 | - for kind `n` such that `20000 <= n < 30000`, events are **ephemeral**, which means they are not expected to be stored by relays. |
| 85 | - 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. | 85 | - 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. |
| 86 | 86 | ||
| 87 | 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. | ||
| 88 | |||
| 87 | These are just conventions and relay implementations may differ. | 89 | These are just conventions and relay implementations may differ. |
| 88 | 90 | ||
| 89 | ## Communication between clients and relays | 91 | ## Communication between clients and relays |