Skip to content

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

Open
svlachakis wants to merge 1 commit into
mainfrom
docs/receiptless-logindex
Open

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

Conversation

@svlachakis

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.

https://claude.ai/code/session_01HgBnLgVkLh1qRZV51SY5gQ

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