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

add option for blockHash per EIP-1898 #326

Merged
merged 3 commits into from
Jan 9, 2023
Merged

Conversation

macfarla
Copy link
Contributor

Signed-off-by: Sally MacFarlane macfarla.github@gmail.com

Related - change status of EIP-1898 from stagnant to draft ethereum/EIPs#5980
Geth and Besu have both implemented support for this.

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
@Termina1
Copy link

Hi, its already used in production a lot, now it's very confusing to build any proxy/loadbalancing solution for RPC protocol. Let's merge it!

@macfarla
Copy link
Contributor Author

Hi, its already used in production a lot, now it's very confusing to build any proxy/loadbalancing solution for RPC protocol. Let's merge it!

sounds good @Termina1 - how do we progress this PR?

@protolambda
Copy link
Contributor

I support this change! eth_getProof to get hashes / roots should definitely support blockhash param. Geth implements this already too: https://github.com/ethereum/go-ethereum/blob/2189773093b2fe6d161b6477589f964470ff5bce/internal/ethapi/api.go#L658 and I think Nethermind has very flexible block/tag/number/object arguments for most RPCs too.

Copy link
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.

I added a few tests to this PR for eth_getProof and eth_getBalance just to sanity check the change. speccheck is happy and the changes look good to me. Geth does already support the block hash in this position for all the methods addressed (I verified manually).

Thanks for the contribution!

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.

4 participants