Skip to content

fix: ensure receipt consistency check is done over block number#19723

Merged
joshieDo merged 3 commits intomainfrom
joshie/receipt-consistency
Nov 18, 2025
Merged

fix: ensure receipt consistency check is done over block number#19723
joshieDo merged 3 commits intomainfrom
joshie/receipt-consistency

Conversation

@joshieDo
Copy link
Collaborator

@joshieDo joshieDo commented Nov 13, 2025

With #19399, we might not write receipts on a static file during pipeline sync, even though we are incrementing the segment block number.

This lead to failing the second run of ExecutionStage::ensure_consistency, since the consistency check was being done over TxNumber instead of BlockNumber.

@joshieDo joshieDo self-assigned this Nov 13, 2025
@joshieDo joshieDo added the C-bug An unexpected or incorrect behavior label Nov 13, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Reth Tracker Nov 13, 2025
@joshieDo joshieDo changed the title fix: ensure receipt-consistency check is done over block number fix: ensure receipt consistency check is done over block number Nov 13, 2025
@joshieDo joshieDo added A-staged-sync Related to staged sync (pipelines and stages) A-static-files Related to static files labels Nov 13, 2025
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm

Comment on lines +212 to +215
// Get highest block number in static files for receipts
let static_file_block_num = static_file_provider
.get_highest_static_file_block(StaticFileSegment::Receipts)
.unwrap_or(0);
Copy link
Collaborator

Choose a reason for hiding this comment

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

this makes to me

@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Nov 13, 2025
@joshieDo joshieDo added this pull request to the merge queue Nov 18, 2025
Merged via the queue into main with commit 9501b4b Nov 18, 2025
42 checks passed
@joshieDo joshieDo deleted the joshie/receipt-consistency branch November 18, 2025 11:17
@github-project-automation github-project-automation bot moved this from In Progress to Done in Reth Tracker Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-staged-sync Related to staged sync (pipelines and stages) A-static-files Related to static files C-bug An unexpected or incorrect behavior

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants