Skip to content

eth_getblockbynumber should return null for pending blocks #19332

Closed
@gagarin55

Description

@gagarin55

Hi there,

please note that this is an issue tracker reserved for bug reports and feature requests.

For general questions please use the gitter channel or the Ethereum stack exchange at https://ethereum.stackexchange.com.

System information

Geth version: Geth/v1.8.22-omnibus-260f7fbd/linux-amd64/go1.11.1

Expected behaviour

According to documentation I expect that eth_getBlockByNumber returns number == null for pending
block

Actual behaviour

eth_getBlockByNumber('pending') returns not null in block.number field

Steps to reproduce the behaviour

curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["pending", true],"id":1}' https://mainnet.infura.io/

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