erigon icon indicating copy to clipboard operation
erigon copied to clipboard

Non-conforming error response for missing block with eth_call (and possibly others)

Open PeaStew opened this issue 3 years ago • 1 comments

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?

PeaStew avatar Oct 14 '22 16:10 PeaStew

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.

github-actions[bot] avatar Dec 01 '22 03:12 github-actions[bot]

Not stale, issue continues with 2.30.0

PeaStew avatar Dec 01 '22 03:12 PeaStew

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.

github-actions[bot] avatar Jan 12 '23 02:01 github-actions[bot]

Not stale unless confirmed as fixed

PeaStew avatar Jan 12 '23 07:01 PeaStew

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.

github-actions[bot] avatar Feb 22 '23 02:02 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Mar 01 '23 02:03 github-actions[bot]