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

Improve sender ratchets deletion schedule #142

Open
mulmarta opened this issue Apr 10, 2024 · 0 comments
Open

Improve sender ratchets deletion schedule #142

mulmarta opened this issue Apr 10, 2024 · 0 comments

Comments

@mulmarta
Copy link
Contributor

Currently we have a constant const MAX_RATCHET_BACK_HISTORY: u32 = 1024 which is used for two things: we keep X = 1024 past ratchets for a sender and we throw an error if we get a message more than Y = 1024 ratchets in the future.

We need something more flexible:

  • allow applications to configure Y with the option to make Y "infinite" meaning that we always accept a message (we still keep X past ratchets from the most recent message)
  • allow applications to configure X. Consider the option to let the StorageProvider deal with ratchet deletion by adding a function prune_ratchets(generation) on PriorEpoch that deletes ratchets older than generation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant