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: avoid retaining uncled blocks in cache #432

Merged
merged 1 commit into from
Nov 28, 2023
Merged

Conversation

Theodus
Copy link
Member

@Theodus Theodus commented Nov 27, 2023

I have no evidence that this has caused issues. But it seems like a potentially nasty bug on chains that produce blocks more frequently than we poll for chain heads, since we may miss uncles. Seems like a good precaution anyway. The performance impact should be minimal because we deduplicate RPC requests on cache miss.

@Theodus Theodus requested a review from LNSD November 27, 2023 22:07
@Theodus Theodus force-pushed the theodus/block-cache branch from a9a5389 to 6e47430 Compare November 27, 2023 22:08
@Theodus Theodus changed the title fix: avoid retaining uncled blocks fix: avoid retaining uncled blocks in cache Nov 27, 2023
Copy link
Contributor

@LNSD LNSD left a comment

Choose a reason for hiding this comment

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

LGTM! ✅

@Theodus Theodus merged commit 26f175d into main Nov 28, 2023
1 check passed
@Theodus Theodus deleted the theodus/block-cache branch November 28, 2023 12:18
@Theodus Theodus mentioned this pull request Nov 28, 2023
Theodus added a commit that referenced this pull request Dec 18, 2023
I have no evidence that this has caused issues. But it seems like a
potentially nasty bug on chains that produce blocks more frequently than
we poll for chain heads, since we may miss uncles. Seems like a good
precaution anyway. The performance impact should be minimal because we
deduplicate RPC requests on cache miss.
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