Skip to content

fix(provider): fail transaction_hashes_by_range on incomplete static file reads - #27332

Open
0xShadowX wants to merge 1 commit into
paradigmxyz:mainfrom
0xShadowX:fix/tx-hashes-range-complete
Open

0xShadowX wants to merge 1 commit into
paradigmxyz:mainfrom
0xShadowX:fix/tx-hashes-range-complete

Conversation

@0xShadowX

Copy link
Copy Markdown

The parallel hash workers in StaticFileProvider::transaction_hashes_by_range discarded the result of fetch_range_with_predicate, so a read error or a static file that did not cover the requested range silently produced fewer hashes than requested. The transaction lookup stage does not verify the count and indexed such a range as complete, leaving the missing hashes without a TransactionHashNumbers entry.

Errors are now forwarded through the channel, and a result that is shorter than the requested range is reported as a missing static file transaction so the caller can retry instead of committing a partial index.

…file reads

The parallel hash workers discarded the result of fetch_range_with_predicate,
so a read error or a static file that did not cover the requested range
silently produced fewer hashes, and the transaction lookup stage indexed the
range as complete. Errors are now forwarded through the channel and a result
that is shorter than the requested range is reported as a missing static file
transaction.
@0xShadowX
0xShadowX force-pushed the fix/tx-hashes-range-complete branch from 56dc23b to 49c0eb6 Compare September 20, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant