From 6e43c28fb5806b34cf79c694a6a7c99e95a6d0c4 Mon Sep 17 00:00:00 2001 From: Bruno Calza Date: Wed, 22 Nov 2023 13:37:01 -0300 Subject: [PATCH] adds new message to check from filter logs error 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 bf47d0c1..a0b5593f 100644 --- a/pkg/eventprocessor/eventfeed/impl/eventfeed.go +++ b/pkg/eventprocessor/eventfeed/impl/eventfeed.go @@ -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