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

bug: RLN fails to reset at epoch limit #3220

Open
darshankabariya opened this issue Dec 17, 2024 · 0 comments
Open

bug: RLN fails to reset at epoch limit #3220

darshankabariya opened this issue Dec 17, 2024 · 0 comments
Assignees
Labels
bug Something isn't working effort/days Estimated to be completed in a few days, less than a week

Comments

@darshankabariya
Copy link
Contributor

darshankabariya commented Dec 17, 2024

RLN allows up to 100 messages per epoch (10 minutes), but a potential bug causes message limits to carry over into the next epoch.

Steps to Reproduce:

  1. Assume an epoch starts at 4:00.
  2. Do not send any messages between 4:00 and 4:06.
  3. Send 100 messages between 4:06 and 4:09.
  4. At the start of the new epoch (4:10), attempts to send more messages result in a "message limit exceeded" error.
  5. You can only send messages again at 4:16, after 6 minutes into the new epoch.

Expected Behavior:
The message limit should reset at the start of a new epoch (e.g., 4:10), allowing up to 100 new messages regardless of prior activity.

Observed Behavior:
If 100 messages are sent late in an epoch (e.g., 4:06-4:09), the limit does not reset at the start of the next epoch (4:10). Instead, the "message limit exceeded" error persists until several minutes into the new epoch.

Note:
This issue was observed while using the chat interface (REST API), suggesting it might be a bug in the API implementation.

@darshankabariya darshankabariya added the bug Something isn't working label Dec 17, 2024
@darshankabariya darshankabariya self-assigned this Dec 18, 2024
@gabrielmer gabrielmer moved this to In Progress in Waku Dec 23, 2024
@gabrielmer gabrielmer added the effort/days Estimated to be completed in a few days, less than a week label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working effort/days Estimated to be completed in a few days, less than a week
Projects
Status: In Progress
Development

No branches or pull requests

2 participants