-
Notifications
You must be signed in to change notification settings - Fork 20.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eth_getblockbynumber should return null for pending blocks #19332
Labels
Comments
My thoughts:
|
Fixing this is trivial, just add go-ethereum/internal/ethapi/api.go Line 628 in 2ca89ea
|
@holiman I think we should return null for the pending block. Parity also returns null for the pending block. See this issue (openethereum/parity-ethereum#8703). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
returnsnumber == null
for pendingblock
Actual behaviour
eth_getBlockByNumber('pending')
returns not null in block.number fieldSteps to reproduce the behaviour
The text was updated successfully, but these errors were encountered: