upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/20.md
diff options
context:
space:
mode:
authorWilliam Casarin <jb55@jb55.com>2022-11-10 11:57:13 -0800
committerWilliam Casarin <jb55@jb55.com>2022-11-10 11:57:52 -0800
commita0b0a021a86b3433f8ce331e85091b6d8c90b4ef (patch)
tree5018f639c1d0a2f32f113083369d44a24eccdf87 /20.md
parent15514283f3a5c51e21e596ff413da2ccc4a70b6e (diff)
NIP-20: add "invalid" message suggestion
Diffstat (limited to '20.md')
-rw-r--r--20.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/20.md b/20.md
index 1f06fa9..447b10a 100644
--- a/20.md
+++ b/20.md
@@ -21,6 +21,8 @@ The `message` SHOULD provide additional information as to why the command succee
21 21
22The `message` SHOULD start with `blocked:` if the pubkey or network address has been blocked, banned or is not on a whitelist. 22The `message` SHOULD start with `blocked:` if the pubkey or network address has been blocked, banned or is not on a whitelist.
23 23
24The `message` SHOULD start with `invalid:` if the event doesn't meet some specific criteria (created_at is too far off, etc)
25
24The `message` SHOULD start with `rate-limited:` if the event was rejected due to rate limiting techniques. 26The `message` SHOULD start with `rate-limited:` if the event was rejected due to rate limiting techniques.
25 27
26Ephemeral events are not acknowledged with OK responses, unless there is a failure. 28Ephemeral events are not acknowledged with OK responses, unless there is a failure.
@@ -55,6 +57,10 @@ Event rejected, rate limited
55 57
56 ["OK", "b1a649ebe8...", false, "rate-limited: slow down there chief"] 58 ["OK", "b1a649ebe8...", false, "rate-limited: slow down there chief"]
57 59
60Event rejected, `created_at` too far off
61
62 ["OK", "b1a649ebe8...", false, "invalid: event creation date is too far off from the current time. Is your system clock in sync?"]
63
58 64
59 65
60Future Extensions 66Future Extensions