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: mismatch in expected state root computed #654

Closed
praetoriansentry opened this issue Jun 24, 2024 · 0 comments · Fixed by #1225
Closed

eth_getProof: mismatch in expected state root computed #654

praetoriansentry opened this issue Jun 24, 2024 · 0 comments · Fixed by #1225

Comments

@praetoriansentry
Copy link

System information

Erigon version: cdk-erigon version 2.43.0-dev-3107569d

OS & Version: Debian GNU/Linux 12 (bookworm)

Commit hash: 3107569d

Erigon Command (with flags/config): cdk-erigon --config /etc/erigon/config.yaml

Concensus Layer: N/A

Concensus Layer Command (with flags/config): N/A

Chain/Network: Sepolia Erigon Integration 5 (chain 8282)

Expected behaviour

cast storage --rpc-url http://erigon.local:8500 0xb566BE17B22404BD46F389030ec5592F8ffAde12 0x0000000000000000000000000000000000000000000000000000000000000000

returns 0x0000000000000000000000000000000000000000000000000000000000000001

Ideally I would be able to generate a storage proof with this call:

cast rpc --rpc-url http://erigon.local:8500 eth_getProof 0xb566BE17B22404BD46F389030ec5592F8ffAde12 '["0x0000000000000000000000000000000000000000000000000000000000000000"]' latest

Actual behaviour

This currently returns

(code: -32000, message: mismatch in expected state root computed 0xc8bc7e46bfebb0ece517dd5d253db7a7b09a0c5067c2704c8d96e1083b60cdc3 vs 0x14ebc27fa2bca4e46349de42693ea1f61576b032f6d42adcd3a6178ce1e0fc4c indicates bug in proof implementation, data: None)

Steps to reproduce the behaviour

Point erigon.local to the integration 5 network and then run:

cast rpc --rpc-url http://erigon.local:8500 eth_getProof 0xb566BE17B22404BD46F389030ec5592F8ffAde12 '["0x0000000000000000000000000000000000000000000000000000000000000000"]' latest

Backtrace

There's no backtrace. The full logs are extremely verbose for this call so I'm not including them But it ends with the same message that's returned via the RPC

[WARN] [06-24|19:02:50.167] Served                                   conn=24.61.53.2:45698 method=eth_getProof reqid=1 t=1.927780285s err="mismatch in expected state root computed 0xc8bc7e46bfebb0ece517dd5d253db7a7b09a0c5067c2704c8d96e1083b60cdc3 vs 0x14ebc27fa2bca4e46349de42693ea1f61576b032f6d42adcd3a6178ce1e0fc4c indicates bug in proof implementation"
@V-Staykov V-Staykov linked a pull request Sep 25, 2024 that will close this issue
@V-Staykov V-Staykov linked a pull request Sep 25, 2024 that will close this issue
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 a pull request may close this issue.

1 participant