core, params: EIP-8304 system contract plumbing - #35496
Draft
VanshSahay wants to merge 4 commits into
Draft
Conversation
Member
|
@zsfelfoldi Please take a look. |
Author
|
bumping this up @zsfelfoldi |
This was referenced Aug 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
EPF cohort-seven implementation of EIP-8304 (trustless log and transaction index)
this is the first PR of an incremental series
the system call runs unconditionally like EIP-4788 style where it is a silent no-op when no code exists at the index contract address, so non-dev chains are unaffected, no fork configuration is added yet
it has -
params: index contract address (provisional0x…8304, the spec'srlp([sender, 0])derivation is still TBD, analogous to EIP-4788's post-merge address update)core/genesis.go: contract pre-deployed in the dev genesis alloccore: level-0 table builder (interim: fixed-size entries, flat keccak root, spec-correct encodings and SSZ roots will be in followup PRs)core/state_processor.go:PostExecutionwrites table roots via a system callminer/worker.go: the miner builds the same tables so produced blocks match the chain processorcore/logindex_contract_test.go: golden test pinning the contract behavior (deployment exactness, set slot formulatable_size*1024 + (first_block/table_size)%1024, caller guard, get path with freshness boundaries and revert guards)Validation
go test ./core/+8µs/block (0 logs) to +230µs/block (1000 logs, ~54%) versus the no-contract baseline on Apple M4, the system call plus storage write is a fixed ~8µs
follow up PRs: variable-length entries (parameterized encodings), SSZ table roots, k-way table merges, file-backed storage, replay/reorg handling, proof-index database and a RPC endpoint