0xPolygonZero / erigon

Ethereum implementation on the efficiency frontier
GNU Lesser General Public License v3.0
0 stars 4 forks source link

bug: block replay from witness results in a different root hash #6

Open cffls opened 4 months ago

cffls commented 4 months ago

Original issue from: https://github.com/0xPolygonZero/zk_evm/issues/295. It is better to track this issue in erigon directly.

tested using the feat/zero branch of erigon on the sepolia testnet.

successful rpc call:

curl $RPC_URL \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"debug_traceBlockByNumber","params":["0x4c4b3f", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}'

failed rpc call:

curl $RPC_URL \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"debug_traceBlockByNumber","params":["0x4c4b3f", {"tracer": "zeroTracer"}],"id":1,"jsonrpc":"2.0"}'

error:

{"block_witness":null,"error":{"code":-32000,"message":"final root: 356dcc4eeda2a07cb4c76ada19d4d1f14463e0463ef7b5b87710611150b2b22b, expected: f31367edbdcafeeb723d5b749ce1999a07a6da6411065f66b5e3e295358f2b23"}}