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(rln-relay): chunk event fetching #1830

Merged
merged 1 commit into from
Jun 28, 2023
Merged

fix(rln-relay): chunk event fetching #1830

merged 1 commit into from
Jun 28, 2023

Conversation

rymnc
Copy link
Contributor

@rymnc rymnc commented Jun 28, 2023

Description

This PR introduces "chunking" of events that are being fetched from the rpc provider. This allows using resource restrained rpc providers,
abiding by their block request limits.

Changes

  • Checks if the latest block > BlockChunkSize (100), and chunks events till then
  • if not, it gets all the events in one request

Issue

closes #1773

@rymnc rymnc marked this pull request as ready for review June 28, 2023 09:01
@rymnc rymnc self-assigned this Jun 28, 2023
Copy link
Contributor

@SionoiS SionoiS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@rymnc rymnc merged commit e4d9ee1 into master Jun 28, 2023
13 checks passed
@rymnc rymnc deleted the chunk-event-fetching branch June 28, 2023 12:30
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.

fix(rln-relay): chunk event fetching
2 participants