Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rpc/admin): compatible with geth's admin_nodeInfo #9448

Merged
merged 8 commits into from
Jul 16, 2024

Conversation

jsvisa
Copy link
Contributor

@jsvisa jsvisa commented Jul 11, 2024

In this PR, fixed two data inconsistent with geth's response of admin_nodeInfo:

  1. id should be the node's public key, wait for alloy to be released a new version, ref fix(admin): id in NodeInfo is string instead of B256 alloy-rs/alloy#1038
  2. Add the xxxBlock and yyyTime to protocols.eth.config, after this issue fixed, we can use reth to fetch the prestate to run trace tests and any other state-related testing, ref https://github.com/ethereum/go-ethereum/blob/2d9d42376436cd275c28056cffd0eb97cb8daed8/eth/tracers/internal/tracetest/makeTest.js#L30

It's not clever to extract the xxxBlocks in the admin module, should be implement in chainspec instead.

Signed-off-by: jsvisa <delweng@gmail.com>
Signed-off-by: jsvisa <delweng@gmail.com>
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

awesome, some suggestions

crates/ethereum-forks/src/hardforks/mod.rs Outdated Show resolved Hide resolved
crates/rpc/rpc/src/admin.rs Outdated Show resolved Hide resolved
Signed-off-by: jsvisa <delweng@gmail.com>
Signed-off-by: jsvisa <delweng@gmail.com>
crates/rpc/rpc/src/admin.rs Outdated Show resolved Hide resolved
Signed-off-by: jsvisa <delweng@gmail.com>
@Rjected Rjected requested a review from mattsse July 15, 2024 23:14
@mattsse mattsse added the A-rpc Related to the RPC implementation label Jul 16, 2024
@mattsse mattsse enabled auto-merge July 16, 2024 08:31
@mattsse mattsse added this pull request to the merge queue Jul 16, 2024
Merged via the queue into paradigmxyz:main with commit fb6ea8b Jul 16, 2024
32 checks passed
@jsvisa jsvisa deleted the admin-NodeInfo branch July 27, 2024 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rpc Related to the RPC implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants