Skip to content

eth: add eth_config API definitions for EIP-7910#678

Open
shemnon wants to merge 8 commits intoethereum:mainfrom
shemnon:eip-7910-eth_config
Open

eth: add eth_config API definitions for EIP-7910#678
shemnon wants to merge 8 commits intoethereum:mainfrom
shemnon:eip-7910-eth_config

Conversation

@shemnon
Copy link
Copy Markdown
Contributor

@shemnon shemnon commented Jul 25, 2025

Implements the eth_config JSON-RPC method as specified in EIP-7910 to provide comprehensive fork configuration details including current, next, and last fork configurations with their respective hashes and fork IDs.

Changes:

  • Add eth_config method definition in src/eth/client.yaml
  • Add ConfigurationResponse, ConfigObject, and BlobSchedule schemas
  • Add bytes4 base type for CRC-32 hashes and fork IDs
  • Add test cases for different scenarios

shemnon added 2 commits July 25, 2025 16:38
Implements the eth_config JSON-RPC method as specified in EIP-7910 to provide
comprehensive fork configuration details including current, next, and last
fork configurations with their respective hashes and fork IDs.

Changes:
- Add eth_config method definition in src/eth/client.yaml
- Add ConfigurationResponse, ConfigObject, and BlobSchedule schemas
- Add bytes4 base type for CRC-32 hashes and fork IDs
- Add test cases for different scenarios
Signed-off-by: Danno Ferrin <danno@numisight.com>
Comment thread src/schemas/client.yaml Outdated
Comment thread src/schemas/client.yaml Outdated
shemnon and others added 5 commits July 27, 2025 20:41
Co-authored-by: Mercy Boma Naps Nkari <96525594+bomanaps@users.noreply.github.com>
Co-authored-by: Mercy Boma Naps Nkari <96525594+bomanaps@users.noreply.github.com>
- Remove configHash fields from ConfigurationResponse
- Move forkId fields into ConfigObject
- Invert precompiles map: name->address mapping with alphabetical sorting
- Update test cases to match EIP specification format

Signed-off-by: Danno Ferrin <danno@numisight.com>
…cution-apis into eip-7910-eth_config

Signed-off-by: Danno Ferrin <danno@numisight.com>
…scheduled.

Signed-off-by: Danno Ferrin <danno@numisight.com>
Copy link
Copy Markdown
Collaborator

@kclowes kclowes left a comment

Choose a reason for hiding this comment

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

lgtm!

Copy link
Copy Markdown
Member

@lightclient lightclient left a comment

Choose a reason for hiding this comment

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

Generally LGTM. How were the tests generated? Would be good if we have that in rpctestgen before merging.

@shemnon
Copy link
Copy Markdown
Contributor Author

shemnon commented Aug 20, 2025

Tests were generated from the reference implementation and cross-compared with fork definitions.

@fjl fjl added the triage label Oct 24, 2025
@fjl fjl changed the title Add eth_config API definitions for EIP-7910 eth: add eth_config API definitions for EIP-7910 Oct 27, 2025
@fjl
Copy link
Copy Markdown
Contributor

fjl commented Oct 27, 2025

We have to create these tests with rpctestgen before merging this.

@MysticRyuujin
Copy link
Copy Markdown
Contributor

@shemnon - any chance you'd be willing to update this PR, resolve conflicts, and generate tests via rpctestgen (now in this repo)?

@shemnon
Copy link
Copy Markdown
Contributor Author

shemnon commented May 7, 2026

It was up to date 8 months ago when I was working on it and still doing eth dev work. I don't have the time and am quite frustrated that this was presented as a blocking issue last year for the EIP and then was ignored when I jumped through the core-dev hoop.

@bomanaps
Copy link
Copy Markdown
Contributor

bomanaps commented May 7, 2026

It was up to date 8 months ago when I was working on it and still doing eth dev work. I don't have the time and am quite frustrated that this was presented as a blocking issue last year for the EIP and then was ignored when I jumped through the core-dev hoop.

We’re really sorry about how this process played out. At the moment, our main blocker is getting the test .io files properly generated by rpctestgen. If you’d be willing to help us with that, it would unblock things significantly. Otherwise, we’re still waiting on a maintainer to help run/review it, which has also been quite difficult.

If you’re okay with it, I can also open a new PR and regenerate the .io files properly there. The main thing we need before we can really push for merge is having the generated files correct. From our side, I think things are otherwise in a good place unless core devs still have other reservations, which I doubt they do.

@shemnon
Copy link
Copy Markdown
Contributor Author

shemnon commented May 7, 2026

I have zero time I can commit to Ethereum core development at the moment. Do what needs to be done.

@bomanaps bomanaps mentioned this pull request May 7, 2026
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.

6 participants