-
Notifications
You must be signed in to change notification settings - Fork 20.4k
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 way to get "pending" via ethclient.FilterQuery #21175
Comments
Also needed for fromBlock. |
I like the idea to use negative numbers for special purposes! |
There are pending, latest, earliest. Why not just make them an interface? |
It seems 0 is |
I don't want to change the API, that's why I liked your idea to use negative numbers. |
Well, the PR is using negative number for "pending" and contains some Log serialisation changes as well. @fjl is it possible to speedup the review somehow? |
Fixes ethereum#21175 Co-authored-by: sammy007 <sammy007@users.noreply.github.com> Co-authored-by: Adam Schmideg <adamschmideg@users.noreply.github.com>
https://godoc.org/github.com/ethereum/go-ethereum#FilterQuery
Since there is only bigint option, I can't set it to "pending". My proposal is to make it an interface and allow anything, just throw if case it's not a bigint or a string. Or -1 maybe, then check and serialize as "pending".
The text was updated successfully, but these errors were encountered: