-
Notifications
You must be signed in to change notification settings - Fork 20.1k
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
No pending block in reply of eth_getBlockByNumber #20587
Comments
Related: #20460 |
The spec says "return null": https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getblockbyhash |
Considering that |
Ref for ACD ethereum/pm#148 (comment) |
I think if this is a pending block, we should know its number. Logic of stable open-ethereum-pool is based on this... |
Ok, decision was to revert this and re-publish the pending block number as before and fix the spec. |
This is back on the 2-week release schedule and a build is being cut today? or what |
System information
Geth version: 1.9.10-stable
OS & Version: Ubuntu 18.04.3 LTS
Commit hash : 58cf568
Actual behaviour
Reply of pending block in eth_getBlockByNumber is null (number:null) but must be blocknumber
Steps to reproduce the behaviour
curl --data '{"method":"eth_getBlockByNumber","params":["pending", false],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST http://localhost:8545
Backtrace
The text was updated successfully, but these errors were encountered: