From af348c90d12df37e32133f2089f8e5fbc9146da7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Duchesneau?= Date: Sun, 10 Nov 2024 20:16:27 -0500 Subject: [PATCH] remove 'supposedly skipped' optimisation that causes panic when the endpoints lag --- block/fetcher/rpc.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/block/fetcher/rpc.go b/block/fetcher/rpc.go index ad927ac..ba9fa11 100644 --- a/block/fetcher/rpc.go +++ b/block/fetcher/rpc.go @@ -143,10 +143,10 @@ func (f *RPCFetcher) fetch(ctx context.Context, requestedSlot uint64, lastConfir } if rpcErr.Code == -32004 { - if currentSlot < lastConfirmBlockNum { - f.logger.Info("fetcher block was supposedly skipped", zap.Uint64("block_num", currentSlot)) - return nil, true, nil - } + //if currentSlot < lastConfirmBlockNum { + // f.logger.Info("fetcher block was supposedly skipped", zap.Uint64("block_num", currentSlot)) + // return nil, true, nil + //} f.logger.Warn("block not available. trying same block", zap.Uint64("block_num", currentSlot)) continue