OffchainLabs / go-ethereum

GNU Lesser General Public License v3.0
58 stars 93 forks source link

Fix requested block ahead of current block check #312

Closed PlasmaPower closed 5 months ago

PlasmaPower commented 5 months ago

Header could be nil here, so we should check err first. Right now this results in a vague "method handler crashed" error message from the RPC if you eth_call against a header that doesn't exist, instead of the much better "header not found".