Skip to content

Fast node returns wrong state siliently #2331

@wtdcode

Description

@wtdcode

System information

Geth version: geth_linux version 1.3.9-5e74ea65-20240220
OS & Version: Linux

Command line:

             --syncmode full --datadir /work/data --cache 8000 --rpc.allow-unprotected-txs
             --history.transactions 0
             --ws --ws.addr 0.0.0.0 --ws.api net,web3,eth --ws.port 8556 --ws.origins *
             --http --http.addr 0.0.0.0
             --http.api net,web3,eth
             --http.port 8555
             --http.vhosts *
             --db.engine=pebble
             --verbosity 4
             --tries-verify-mode=none

Expected behaviour

Return missing trie root or some other error.

Actual behaviour

Return 0

Steps to reproduce the behaviour

curl -H 'Content-Type: application/json'  -X POST --data '{"jsonrpc":"2.0", "method": "eth_getStorageAt", "params": ["0x00020F14443e103A0B72F1f2DFDaac07DDAa6Df5", "0x0", "0x237f199"], "id": 1}' http://127.0.0.1:8555
{"jsonrpc":"2.0","id":1,"result":"0x0000000000000000000000000000000000000000000000000002704c6f721947"}

After 0x237f199 falls 128 blocks behind, executing the same command.

curl -H 'Content-Type: application/json'  -X POST --data '{"jsonrpc":"2.0", "method": "eth_getStorageAt", "params": ["0x00020F14443e103A0B72F1f2DFDaac07DDAa6Df5", "0x0", "0x237f199"], "id": 1}' http://127.0.0.1:8555
{"jsonrpc":"2.0","id":1,"result":"0x0000000000000000000000000000000000000000000000000000000000000000"}

The state silently changes. I would expect something like missing trie node

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions