Skip to content

PendingBlockNumber has different values across modules #27205

@georgercarder

Description

@georgercarder

System information

Geth version: geth version
CL client & version: e.g. lighthouse/nimbus/[email protected]
OS & Version: Windows/Linux/OSX
Commit hash : (if develop)

Expected behaviour

In ethclient toBlockNumArg(rpc.PendingBlockNumber) would return "pending"

Actual behaviour

Gives error err invalid argument 0: hex string without 0x prefix
this is because in rpc.PendingBlockNumber is -2 rpc.type.go:68
but in ethclient's internal function toBlockNumArg, "pending == -1" ethclient/ethclient.go:588

Steps to reproduce the behaviour

Backtrace

[backtrace]

When submitting logs: please submit them as text and not screenshots.

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