Skip to content

Conversation

@paulhauner
Copy link
Member

Issue Addressed

NA

Proposed Changes

Users on Discord (and @protolambda) have experienced this error (or variants of it):

Failed to update eth1 cache: GetDepositLogsFailed("Eth1 node returned error: {\"code\":-32005,\"message\":\"query returned more than 10000 results\"}")

This PR allows users to reduce the span of blocks searched for deposit logs and therefore reduce the size of the return result. Hopefully experimentation with this flag can lead to finding a better default value.

Additional Info

NA

@paulhauner paulhauner added the ready-for-review The code is ready for review label Nov 18, 2020
@ajsutton
Copy link

FYI, in Teku we wound up dynamically reducing the number of blocks we request when we get that response (or a timeout) from the Eth1 node: https://github.com/ConsenSys/teku/pull/3182/files#diff-87d531867f3ccf522582e7cc8c12a3b48cb55f90fe6ab1fb6cfb2ac6ee54c28fR225

@paulhauner
Copy link
Member Author

Thanks @pawanjay176 for the review and thanks @ajsutton for the feedback. I'll merge this now and we can come back for a better (perhaps dynamic) solution.

bors r+

@paulhauner paulhauner added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Nov 18, 2020
bors bot pushed a commit that referenced this pull request Nov 18, 2020
## Issue Addressed

NA

## Proposed Changes

Users on Discord (and @protolambda) have experienced this error (or variants of it):

```
Failed to update eth1 cache: GetDepositLogsFailed("Eth1 node returned error: {\"code\":-32005,\"message\":\"query returned more than 10000 results\"}")
```

This PR allows users to reduce the span of blocks searched for deposit logs and therefore reduce the size of the return result. Hopefully experimentation with this flag can lead to finding a better default value.


## Additional Info

NA
@bors
Copy link

bors bot commented Nov 18, 2020

@bors bors bot changed the title Add new flag to set blocks per eth1 query [Merged by Bors] - Add new flag to set blocks per eth1 query Nov 18, 2020
@bors bors bot closed this Nov 18, 2020
@paulhauner
Copy link
Member Author

paulhauner commented Nov 21, 2020

I'm told that when syncing Pyrmont, --eth1-blocks-per-log-query 150 will work with Infura, whilst using 175 or above will result in this error:

Nov 18 10:27:51 rpi8 lighthouse[35680]: Nov 18 10:27:51.861 ERRO Failed to update eth1 cache             error: Failed to update eth1 cache: GetDepositLogsFailed("Eth1 node returned error: {"code":-32005,"message":"query returned more than 10000 results"}"), retry_millis: 7000, service: eth1_rpc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge This PR is ready to merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants