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

fix: 🔒 Increase events queue size and make NewStorageRequests non-critical #388

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ffarall
Copy link
Contributor

@ffarall ffarall commented Feb 28, 2025

This PR:

  1. Increases the size of each event queue to 10,000.
  2. Increases the max number of spawned tasks per event queue to 20,000.
  3. Makes NewStorageRequest event not-critical.

1 and 2 are for making it so that if a user manages to spam with blockchain events (like NewStorageRequests or FileDeletionRequest, the limit is higher.
3 is so that even if a user manages to spam enough with NewStorageRequests to reach the limit, the policy will be to just ignore and drop those spamming NewStorageRequests.

@ffarall ffarall marked this pull request as ready for review February 28, 2025 23:07
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

Successfully merging this pull request may close these issues.

1 participant