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

No stats could be obtained in case of Infura #214

Open
akolotov opened this issue May 1, 2019 · 0 comments
Open

No stats could be obtained in case of Infura #214

akolotov opened this issue May 1, 2019 · 0 comments

Comments

@akolotov
Copy link
Collaborator

akolotov commented May 1, 2019

The recent modification in INFURA API could produce the error like the following:

{"jsonrpc":"2.0","id":1,"error":{"code":-32005,"message":"query returned more than 1000 results"}}

if eth_getLogs requests deal with a wide block frame. It could cause an issue when no events could be received in order to display information on the Statistics page.

Similar issue appeared in the token bridge monitor recently: omni/bridge-monitor#24.

As possible solution it was suggested to use the binary search algorithm to narrow the block range for every request as so several requests will be performed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant