Non-conforming error response for missing block with eth_call (and possibly others)
System information
v2.28.0 Ethereum
Expected behaviour
For missing block
Geth
curl 'https://rpc.ankr.com/eth' -H 'Content-Type: application/json' -sd '{"jsonrpc":"2.0","id":0,"method":"eth_call","params":[{"data":"0xeca067ad","from":"0x0000000000000000000000000000000000000000","to":"0x8315177ab297ba92a06054ce80a67ed4dbd7ed3a"},"0xffffff"]}'
Response:
{"jsonrpc":"2.0","id":0,"error":{"code":-32000,"message":"header not found"}}
Actual behaviour
Erigon
curl 'https://rpc.ankr.com/eth' -H 'Content-Type: application/json' -sd '{"jsonrpc":"2.0","id":0,"method":"eth_call","params":[{"data":"0xeca067ad","from":"0x0000000000000000000000000000000000000000","to":"0x8315177ab297ba92a06054ce80a67ed4dbd7ed3a"},"0xffffff"]}'
Response:
{"jsonrpc":"2.0","id":0,"result":"0x"}
for caching this is an issue, because you wouldn't cache an error response, but you would cache a valid response is there any reason why Erigon doesn't conform with the Geth spec here?
This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.
Not stale, issue continues with 2.30.0
This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.
Not stale unless confirmed as fixed
This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.