-
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
eth_getLogs run very slowly and return null #25453
Comments
I'm guessing your query is timing out. We have this long-standing issue due to standard Go libraries that when a request times out you get an empty response instead of an error message. |
Duplicate of #21430 |
Thank you for your reply. Is there any way to improve the performance of this method? |
As a user I don't think there's a lot you can do to improve the performance. Some optimization ideas are being discussed in #25336 that should possibly yield higher speeds. |
Thanks all the same. |
closed as duplicate |
System information
Geth version:
OS & Version: Linux
Commit hash : (if
develop
)Expected behaviour
API return fast and include some data.
Actual behaviour
curl: (52) Empty reply from server
Steps to reproduce the behaviour
curl http://127.0.0.1:8003 -X POST -H "Content-Type: application/json" --data '{"method":"eth_getLogs","params":[{"fromBlock":"0xcf7732","toBlock":"0xe0dc52","address":"0xde1fcfb0851916ca5101820a69b13a4e276bd81f","topics":["0x9416a153a346f93d95f94b064ae3f148b6460473c6e82b3f9fc2521b873fcd6c","0x02b616af23339f1e031e76333e2d5b1c3067beb78578c961911872cc2127ef8b"]}],"id":1,"jsonrpc":"2.0"}'
Backtrace
When submitting logs: please submit them as text and not screenshots.
The text was updated successfully, but these errors were encountered: