Skip to content

docs: the log index does not cover derived receipts - #358

Merged
svlachakis merged 1 commit into
mainfrom
docs/receiptless-logindex
Sep 7, 2026
Merged

docs: the log index does not cover derived receipts#358
svlachakis merged 1 commit into
mainfrom
docs/receiptless-logindex

Conversation

@svlachakis

@svlachakis svlachakis commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Documents how the log index and the receiptless archive variant interact, following a question from the team. Verified against the code rather than assumed:

  • RegeneratingReceiptFinder decorates the RPC read path only. LogIndexBuilder reads receipts through IReceiptStorage, so for a block whose receipt write was skipped it gets nothing and stops advancing at that height - it stalls rather than leaving a silent gap in the index.
  • The index therefore covers only heights that have stored receipts. Over derived ranges IndexedLogFinder falls back to the bloom-scan path, which re-executes every candidate block, bloom false positives included.

So Receipt.DeriveFromState and LogIndex.Enabled are not mutually exclusive by configuration, but the index is inert exactly where receipts are absent - worth stating so nobody enables both and expects fast eth_getLogs.

Follow-up to #356.

@svlachakis
svlachakis merged commit 404f611 into main Sep 7, 2026
1 check passed
@svlachakis
svlachakis deleted the docs/receiptless-logindex branch September 7, 2026 16:45
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