diff options
| author | Arjen Stens <18398758+ArjenStens@users.noreply.github.com> | 2024-06-23 02:40:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-23 09:40:57 +0900 |
| commit | 4aa18e329a8858ed46727b970c28652c5a0f7b43 (patch) | |
| tree | f47f16813d3d59d61c12b5efbdaa46ee293a6c56 | |
| parent | 946d8de0adbcbaa727786610069fb03db43d1dea (diff) | |
Clarify which kinds have lifetime of 'regular' (#1315)
* Clarify which kinds have lifetime of 'regular'
* Missed space
* Document kind 41 as replaceable
* Revert "Document kind 41 as replaceable"
This reverts commit eead2f5a749cfee6de131944e0e73350759e28b4.
| -rw-r--r-- | 01.md | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -92,7 +92,7 @@ Kinds specify how clients should interpret the meaning of each event and the oth | |||
| 92 | 92 | ||
| 93 | And also a convention for kind ranges that allow for easier experimentation and flexibility of relay implementation: | 93 | And also a convention for kind ranges that allow for easier experimentation and flexibility of relay implementation: |
| 94 | 94 | ||
| 95 | - for kind `n` such that `1000 <= n < 10000`, events are **regular**, which means they're all expected to be stored by relays. | 95 | - for kind `n` such that `1000 <= n < 10000 || 4 <= n < 45 || n == 1 || n == 2`, events are **regular**, which means they're all expected to be stored by relays. |
| 96 | - for kind `n` such that `10000 <= n < 20000 || n == 0 || n == 3`, events are **replaceable**, which means that, for each combination of `pubkey` and `kind`, only the latest event MUST be stored by relays, older versions MAY be discarded. | 96 | - for kind `n` such that `10000 <= n < 20000 || n == 0 || n == 3`, events are **replaceable**, which means that, for each combination of `pubkey` and `kind`, only the latest event MUST be stored by relays, older versions MAY be discarded. |
| 97 | - for kind `n` such that `20000 <= n < 30000`, events are **ephemeral**, which means they are not expected to be stored by relays. | 97 | - for kind `n` such that `20000 <= n < 30000`, events are **ephemeral**, which means they are not expected to be stored by relays. |
| 98 | - 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's first value, only the latest event MUST be stored by relays, older versions MAY be discarded. | 98 | - 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's first value, only the latest event MUST be stored by relays, older versions MAY be discarded. |