Requesting an eth_call by RPC should return an error.
Actual behaviour
Any eth_call to a future block returns 0x. This can be problematic during reorgs, rewinds, and when used behind a load balancer, as clients may expect the node to be synced to that future block.
Steps to reproduce the behaviour
On an Erigon Ethereum Mainnet node, run the curl command:
System information
Erigon version:
v2.60.10
Chain/Network: Ethereum
Expected behaviour
Requesting an
eth_call
by RPC should return an error.Actual behaviour
Any
eth_call
to a future block returns0x
. This can be problematic during reorgs, rewinds, and when used behind a load balancer, as clients may expect the node to be synced to that future block.Steps to reproduce the behaviour
On an Erigon Ethereum Mainnet node, run the curl command:
Result on Besu:
Result on Geth:
Backtrace
n/a