Skip to content

Commit

Permalink
remove 'supposedly skipped' optimisation that causes panic when the e…
Browse files Browse the repository at this point in the history
…ndpoints lag
  • Loading branch information
sduchesneau committed Nov 11, 2024
1 parent 54b578c commit af348c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions block/fetcher/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af348c9

Please sign in to comment.