From d8cc854404d49ed5d2ffb20c2d7faadb5029c316 Mon Sep 17 00:00:00 2001 From: Bruno Calza Date: Tue, 28 Nov 2023 15:46:00 -0300 Subject: [PATCH] adds new message to filter 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 a0b5593f..a0d6dda5 100644 --- a/pkg/eventprocessor/eventfeed/impl/eventfeed.go +++ b/pkg/eventprocessor/eventfeed/impl/eventfeed.go @@ -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 {