-
Notifications
You must be signed in to change notification settings - Fork 20.5k
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_getFilterChanges of eth_newBlockFilter returns empty log #829
Comments
I have a fix prepared but am not certain that the output I'm getting is what is expected. First I ran:
Then
Output is
After my fix, output is instead
This doesn't quite match the examples you provided, so can you supply a minimum test case (using curl commands) and expected result? |
your test case is fine. though |
When you call:
multiple times, you should definitely get |
btw. sometimes the blockfilter |
The specification states the following functionality:
This is exceedingly confusing, can we clean it up to make more sense? @obscuren Logs are stored as |
its actually clearly described imho, but the fact that the log object is
I will try to write it a bit more clear. |
I wrote up a proposal of how i think it should better work: Please have a look. Especially at the example. The described return value of block filters will be actual useful for developers, while the current ones are only limited useful. |
Actually this issue is solved when the newBlockFilter proposal is implemented. https://github.com/ethereum/wiki/wiki/newBlockFilter-Improvement-Proposal#new-proposal |
Fixed through #864 |
When i create a filter with
eth_newBlockFilter
:And a new block arrives i get:
The RPC specs state: "For filters created with
eth_newBlockFilter
log objects are[null]
."This means when you
"latest"
it should return[null]
when a new block was mined, otherwise[]
."pending"
it should return[null]
when a new pending transaction comes in, otherwise[]
.The text was updated successfully, but these errors were encountered: