Skip to content
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

Error message inaccurate when querying future block. #3483

Closed
danfinlay opened this issue Dec 22, 2016 · 2 comments
Closed

Error message inaccurate when querying future block. #3483

danfinlay opened this issue Dec 22, 2016 · 2 comments

Comments

@danfinlay
Copy link

System information

Geth version: 1.5.5
OS & Version: Linux (Infura)
Commit hash : Not Sure

Expected behaviour

When querying items like eth_getBalance or eth_getTransactionCount with a block number in the future, I would expect either the latest state, or an error.

Actual behaviour

the returned value seems mal-formed:
{"jsonrpc":"2.0","id":1482348034196178,"result":"\u003cnil\u003e"}

Steps to reproduce the behaviour

curl 'http://127.0.0.1:8545' -H 'Origin: http://localhost:7357' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Referer: http://localhost:7357/development/test.html' -H 'Connection: keep-alive' --data-binary '{"id":14834196178,"jsonrpc":"2.0","params":["0xf414ca28e61abc7ad7d9b09a2c10de6573cc41ee","0x990799"],"method":"eth_getBalance"}' —compressed

Backtrace

I'm not sure what this means, I was using a remote node (Infura), I don't have console output for this command.

Other Notes

Parity also seems to be behaving oddly for this edge case, might be a nice opportunity to coordinate a consistent behavior for it.

Originally discovered through MetaMask.

@shbli
Copy link

shbli commented Dec 24, 2017

Able to reproduce it here, looking into it ...

@shbli shbli mentioned this issue Dec 26, 2017
@shbli shbli mentioned this issue Dec 26, 2017
shbli pushed a commit to shbli/go-ethereum that referenced this issue Dec 27, 2017
@shbli shbli mentioned this issue Dec 27, 2017
holiman pushed a commit to holiman/go-ethereum that referenced this issue Dec 20, 2018
@stale
Copy link

stale bot commented Dec 26, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot closed this as completed Feb 7, 2019
fjl pushed a commit to holiman/go-ethereum that referenced this issue May 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants