Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Error message inaccurate when querying future block. #3939

Closed
danfinlay opened this issue Dec 22, 2016 · 1 comment
Closed

Error message inaccurate when querying future block. #3939

danfinlay opened this issue Dec 22, 2016 · 1 comment
Labels
F3-annoyance 💩 The client behaves within expectations, however this “expected behaviour” itself is at issue. M6-rpcapi 📣 RPC API.

Comments

@danfinlay
Copy link

It seems that when querying something (like a balance or a transaction count) at a future-numbered block, geth throws an error with an inaccurate message:

This request is not supported because your node is running with state pruning. Run with --pruning=archive.

If someone queries for a future block, it should probably be either the latest block or throw a consistent error. Geth right now returns a mal-formed reply, so you both might want to take this opportunity to coordinate a consistent behavior.

@rphmeier rphmeier added F3-annoyance 💩 The client behaves within expectations, however this “expected behaviour” itself is at issue. M6-rpcapi 📣 RPC API. labels Dec 23, 2016
@rphmeier
Copy link
Contributor

This seems like a quick fix. Querying a block which isn't stored should definitely return some kind of error as opposed to returning another block entirely (latest or pending).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
F3-annoyance 💩 The client behaves within expectations, however this “expected behaviour” itself is at issue. M6-rpcapi 📣 RPC API.
Projects
None yet
Development

No branches or pull requests

2 participants