Skip to content

Commit

Permalink
remove check for block below threshold in historical sync (#1983)
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolie-ssv authored Jan 16, 2025
1 parent c57d7f5 commit 6b27b3a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions eth/eventsyncer/event_syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,6 @@ func (es *EventSyncer) SyncHistory(ctx context.Context, fromBlock uint64) (lastP
return 0, fmt.Errorf("event replay: lastProcessedBlock (%d) is lower than fromBlock (%d)", lastProcessedBlock, fromBlock)
}

// Check if the block is too old.
b := new(big.Int).SetUint64(lastProcessedBlock)
if err := es.blockBelowThreshold(ctx, b); err != nil {
return 0, err
}

es.logger.Info("finished syncing historical events",
zap.Uint64("from_block", fromBlock),
zap.Uint64("last_processed_block", lastProcessedBlock))
Expand Down

0 comments on commit 6b27b3a

Please sign in to comment.