Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: store sync spec #36

Merged
merged 5 commits into from
Oct 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
changes
  • Loading branch information
SionoiS committed Sep 9, 2024
commit 97a7867d720bb42ed59735d5f860e7c51a80b2bc
13 changes: 7 additions & 6 deletions standards/core/store-sync.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,17 @@ Various protocols and features that help with message consistency are described
This feature allow a node to fill the gap in messages for the period it was last offline.
At startup, a node use the Store protocol to query a random node for
the time interval since it was last online.
Messages returned my the query are then added to the node local archive storage.
SionoiS marked this conversation as resolved.
Show resolved Hide resolved
It is RECOMMENDED” to limit the time interval to a maximum of 6 hours.
SionoiS marked this conversation as resolved.
Show resolved Hide resolved

### Waku Sync

Nodes that stay online can still miss messages.
Waku Sync is used to find those messages by periodically syncing with random nodes.
It is RECOMMENDED to trigger a sync every 5 minutes for the time range of the last hour.
After both hash set are reconciled, the Store protocol is used to reciprocally query the other node with the hash differences found.

TODO link to spec
[Waku Sync](TODO link to spec) is the protocol used to find those messages by periodically syncing with random nodes.
SionoiS marked this conversation as resolved.
Show resolved Hide resolved
It is RECOMMENDED to trigger a sync every 5 minutes for a time range of the last hour.
SionoiS marked this conversation as resolved.
Show resolved Hide resolved
After both message hash sets are reconciled,
the Store protocol is used to reciprocally query the other node with the message hash differences found.
Messages returned my the query are then added to the node local Waku sync and archive storage.
SionoiS marked this conversation as resolved.
Show resolved Hide resolved

## Copyright

Expand All @@ -48,4 +49,4 @@ Copyright and related rights waived via [CC0](https://creativecommons.org/public

## References

TODO
- [Waku Sync](TODO link to spec)
Loading