Fixes formatting

This commit is contained in:
Vitor Pamplona 2023-11-08 13:30:17 -05:00
parent f93015b70b
commit b11fb1851b

5
29.md
View File

@ -16,8 +16,8 @@ Request:
```js ```js
[ [
    "HASH-REQ",     "HASH-REQ",
    <subscription ID string>,     "<subscription ID string>",
"<WINDOW-SIZE>"     "<WINDOW-SIZE>"
    <nostr filter>, <nostr filter2>, <nostr filter3>     <nostr filter>, <nostr filter2>, <nostr filter3>
] ]
``` ```
@ -40,6 +40,7 @@ Response:
    "<TRUNCATED_CREATED_AT>",     "<TRUNCATED_CREATED_AT>",
    "<SHA256(JSON.stringify([event1.id, event2.id, event3.id, ...])) in hex>"     "<SHA256(JSON.stringify([event1.id, event2.id, event3.id, ...])) in hex>"
] ]
```
The peer then compares the receiving hashes with those stored locally and, if different, creates a new filter to either refine the window size OR to download all events within the missing window. The peer then compares the receiving hashes with those stored locally and, if different, creates a new filter to either refine the window size OR to download all events within the missing window.