From 09a79c031b940958aadfb4ed73651e7b3a5ae787 Mon Sep 17 00:00:00 2001 From: Bruno Calza Date: Mon, 26 Feb 2024 16:45:16 -0300 Subject: [PATCH] adds new eth logs check Signed-off-by: Bruno Calza --- pkg/eventprocessor/eventfeed/impl/eventfeed.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/eventprocessor/eventfeed/impl/eventfeed.go b/pkg/eventprocessor/eventfeed/impl/eventfeed.go index 7a7a9821..bd2694a1 100644 --- a/pkg/eventprocessor/eventfeed/impl/eventfeed.go +++ b/pkg/eventprocessor/eventfeed/impl/eventfeed.go @@ -181,6 +181,7 @@ func (ef *EventFeed) Start( 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(), "eth_getLogs is limited to a 5 range") || + strings.Contains(err.Error(), "eth_getLogs is limited to a 10,000 range") || strings.Contains(err.Error(), "block range is too wide") { ef.maxBlocksFetchSize = ef.maxBlocksFetchSize * 80 / 100 } else {