Skip to content

Commit

Permalink
Merge pull request #610 from tablelandnetwork/bcalza/filterlogs
Browse files Browse the repository at this point in the history
adds new message to check from filter logs error
  • Loading branch information
brunocalza committed Nov 22, 2023
2 parents bd7c3ab + 6e43c28 commit bc17053
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/eventprocessor/eventfeed/impl/eventfeed.go
Expand Up @@ -177,6 +177,7 @@ func (ef *EventFeed) Start(
strings.Contains(err.Error(), "Log response size exceeded") ||
strings.Contains(err.Error(), "is greater than the limit") ||
strings.Contains(err.Error(), "eth_getLogs and eth_newFilter are limited to a 10,000 blocks range") ||
strings.Contains(err.Error(), "eth_getLogs and eth_newFilter are limited to a 10000 blocks range") ||
strings.Contains(err.Error(), "range between to and from blocks is too large") ||
strings.Contains(err.Error(), "block range is too wide") {
ef.maxBlocksFetchSize = ef.maxBlocksFetchSize * 80 / 100
Expand Down

0 comments on commit bc17053

Please sign in to comment.