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

add block timestamp cache to indexers #10

Merged
merged 1 commit into from
Jan 29, 2024
Merged

Conversation

haardikk21
Copy link
Contributor

Adds a block timestamp map to the indexer to cache timestamp values for block hashes

When we fetch events over 2000 blocks at a time for syncing the various contracts, this will help avoid making useless RPC calls by doing it once per block hash

Copy link
Collaborator

@avichalp avichalp left a comment

Choose a reason for hiding this comment

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

@haardikk21 looks good!

@haardikk21 haardikk21 merged commit 5febad4 into main Jan 29, 2024
3 of 4 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.

2 participants