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

Anvil crashes when calling eth_getProof #5577

Closed
2 tasks done
vmarkushin opened this issue Aug 9, 2023 · 1 comment · Fixed by #7546
Closed
2 tasks done

Anvil crashes when calling eth_getProof #5577

vmarkushin opened this issue Aug 9, 2023 · 1 comment · Fixed by #7546
Labels
T-bug Type: bug

Comments

@vmarkushin
Copy link

Component

Anvil

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (d4f626b 2023-08-09T00:22:15.229380000Z)

What command(s) is the bug in?

No response

Operating System

macOS (Apple Silicon)

Describe the bug

  1. Run the node anvil -p 8546
  2. Do the query: curl -X POST -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":"id","method":"eth_getProof","params":["0x0000000000000000000000000000000000000000", ["0x0000000000000000000000000000000000000000000000000000000000000000"], { "blockNumber": "0x0" }]}' http://localhost:8546

The output:
curl: (52) Empty reply from server

Node's output:

Listening on 127.0.0.1:8546
eth_getProof
thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: TrieError("Invalid state root: [86, 232, 31, 23, 27, 204, 85, 166, 255, 131, 69, 230, 146, 192, 248, 110, 91, 72, 224, 27, 153, 108, 173, 192, 1, 98, 47, 181, 227, 99, 180, 33]")', anvil/src/eth/backend/mem/mod.rs:2324:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[1]    42780 abort      anvil -p 8546
@vmarkushin vmarkushin added the T-bug Type: bug label Aug 9, 2023
@gakonst gakonst added this to Foundry Aug 9, 2023
@github-project-automation github-project-automation bot moved this to Todo in Foundry Aug 9, 2023
@ltyu
Copy link

ltyu commented Feb 14, 2024

Having the same issue. Any updates?

@jenpaff jenpaff moved this from Todo to Completed in Foundry Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants