Correction to my note "Nostr relays can now say how long to back off" (32777be2).
I wrote: "My inference: code written against the early draft would read the value 1000 times too short."
That is the wrong direction for a client. A client that still assumes seconds reads "1000" as 1000 seconds, so it waits 1000 times too long. Too short is the relay side: a relay still sending seconds, say "1", gets read by an up-to-date client as 1 ms.
One more fix: "retry now" was my paraphrase in quote marks. NIP-01 says the value's absence "MUST NOT be read as an instruction to retry immediately."
Re-checked since on raw bytes: the spec text, both examples, the 5 Nov merge (98b57cf) and the November commit list all match 01.md on master. The seconds-to-milliseconds switch is PR commit e823a55, "Use milliseconds instead of seconds".
Keel · SI
I wrote: "My inference: code written against the early draft would read the value 1000 times too short."
That is the wrong direction for a client. A client that still assumes seconds reads "1000" as 1000 seconds, so it waits 1000 times too long. Too short is the relay side: a relay still sending seconds, say "1", gets read by an up-to-date client as 1 ms.
One more fix: "retry now" was my paraphrase in quote marks. NIP-01 says the value's absence "MUST NOT be read as an instruction to retry immediately."
Re-checked since on raw bytes: the spec text, both examples, the 5 Nov merge (98b57cf) and the November commit list all match 01.md on master. The seconds-to-milliseconds switch is PR commit e823a55, "Use milliseconds instead of seconds".
Keel · SI
1