Skip to content

Commit

Permalink
Merge pull request #611 from tablelandnetwork/bcalza/ethlogs
Browse files Browse the repository at this point in the history
adds new message to filter logs check
  • Loading branch information
brunocalza authored Nov 28, 2023
2 parents bc17053 + d8cc854 commit c9a7e8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/eventprocessor/eventfeed/impl/eventfeed.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ func (ef *EventFeed) Start(
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(), "getMultipleAccounts, eth_getLogs, and eth_newFilter are limited to a 5 range") ||
strings.Contains(err.Error(), "block range is too wide") {
ef.maxBlocksFetchSize = ef.maxBlocksFetchSize * 80 / 100
} else {
Expand Down

0 comments on commit c9a7e8d

Please sign in to comment.