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: rate limits and block timestamps #96

Merged
merged 1 commit into from
Jan 2, 2025
Merged

fix: rate limits and block timestamps #96

merged 1 commit into from
Jan 2, 2025

Conversation

0xean
Copy link
Contributor

@0xean 0xean commented Dec 4, 2024

This PR fixes two problems:

rate limits: This lazily solves our rate limiting issues when using infura to process the epoch. In the future we may want to introduce a retry mechanism with delay which would be a much more resilient solution.

start / end block bug: previously we could end up in a state where we never would find the ideal block and instead oscillate between blocks indefinitely. This resolves that issue. One note is that this is not a deterministic process and its possible to process the same epoch again and select a different end block that is still the correct timestamp.

@0xean 0xean requested a review from kaladinlight December 4, 2024 14:27
@0xean 0xean merged commit 8b63904 into main Jan 2, 2025
2 checks passed
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