Skip to content

EthClient.BlockByHash stopped working on 1.11.2 #26816

@tclemos

Description

@tclemos

System information

Geth version: 1.11.2

Expected behaviour

return ethereum.NotFound error

Actual behaviour

panic with nil reference

Steps to reproduce the behaviour

call ethclient.BlockByHash with a block hash that doesn't exist in the blockchain

This is the PR that introduced the error: #26723

I've added a comment to the PR explaining the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions