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

eth_getProof output is off-spec for 1186 #5478

Open
prestwich opened this issue May 19, 2023 · 2 comments
Open

eth_getProof output is off-spec for 1186 #5478

prestwich opened this issue May 19, 2023 · 2 comments
Labels
mainnet RPC snack Smaller coding task - less than a day for an experienced dev

Comments

@prestwich
Copy link

prestwich commented May 19, 2023

This issue arises out of a change made for hive test compatibility due to off-spec behavior in geth. Please see more detailed write-up of geth's behavior here

Acceptance Criteria

eth_getProof should return storage keys as Quantity according to 1186 spec, with Quantity as defined in 1474. It should never have a leading zero in a returned storage proof key

Steps to Reproduce (Bug)

$ curl localhost:8545 \     
    -X POST \                
    -H "Content-Type: application/json" \
    -d '{"method":"eth_getProof", "params":["0x4976fb03c32e5b8cfe2b6ccb31c09ba78ebaba41",["0x05"], "latest"],"id":44,"jsonrpc":"2.0"}' \
    | jq

Expected behavior:
According to 1186 storage keys in eth_getProof responses should be Quantity encoded (0x prefixed no-leading-zeroes hex strings) as defined in 1474. These should never have leading 0 nibbles

Actual behavior:
Nethermind returns a leading 0 e.g. 0x05 due to changes made in #4564 as a result of #4504.

Frequency:
roughly 1 in 16 (whenever a leading nibble is 0)

@non-fungible-nelson
Copy link
Contributor

Thanks for this report - will get this cleaned up!

@non-fungible-nelson non-fungible-nelson added mainnet RPC TeamGroot GH issues worked on by Groot Team labels May 24, 2023
@siladu siladu added the snack Smaller coding task - less than a day for an experienced dev label May 25, 2023
@prestwich
Copy link
Author

Thanks for the response! We've had some back and forth in the geth thread that may be relevant for you 👍

@gfukushima gfukushima removed their assignment Jun 26, 2023
@jflo jflo removed the TeamGroot GH issues worked on by Groot Team label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mainnet RPC snack Smaller coding task - less than a day for an experienced dev
Projects
None yet
Development

No branches or pull requests

5 participants