revive: Skip redundant eth_block_hash RPC call in block subscription#11476
Merged
EgrPrty merged 2 commits intounstable2507from Mar 25, 2026
Merged
revive: Skip redundant eth_block_hash RPC call in block subscription#11476EgrPrty merged 2 commits intounstable2507from
EgrPrty merged 2 commits intounstable2507from
Conversation
insert_block_receipts already receives the ethereum block hash from the caller (via eth_block().hash), but extract_from_block was fetching it again via a separate state_call RPC. This redundant call occasionally stalls for 10-20s on public RPC nodes, causing the block cache to fall behind and the health check to report out-of-sync. Add extract_from_block_with_eth_hash that accepts a pre-fetched hash, and use it from insert_block_receipts. The original extract_from_block still fetches the hash for callers that don't have it.
85a0aa0 to
9195d1d
Compare
marian-radu
approved these changes
Mar 24, 2026
0xRVE
approved these changes
Mar 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
backport #11475