Skip to content

revive: Skip redundant eth_block_hash RPC call in block subscription#11475

Open
pgherveou wants to merge 2 commits intomasterfrom
pg/skip-redundant-eth-block-hash-rpc
Open

revive: Skip redundant eth_block_hash RPC call in block subscription#11475
pgherveou wants to merge 2 commits intomasterfrom
pg/skip-redundant-eth-block-hash-rpc

Conversation

@pgherveou
Copy link
Contributor

No description provided.

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.
@pgherveou pgherveou added the T7-smart_contracts This PR/Issue is related to smart contracts. label Mar 24, 2026
@pgherveou pgherveou added this pull request to the merge queue Mar 24, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 24, 2026
EgrPrty pushed a commit that referenced this pull request Mar 25, 2026
@pgherveou pgherveou added this pull request to the merge queue Mar 25, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T7-smart_contracts This PR/Issue is related to smart contracts.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants