Skip to content

Commit 32c9d03

Browse files
committed
warn about large iteration
1 parent ebf862c commit 32c9d03

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

module/state_synchronization/indexer/indexer.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ func (i *Indexer) onBlockIndexed() error {
158158
highestIndexedHeight := i.jobConsumer.LastProcessedIndex()
159159

160160
if lastProcessedHeight < highestIndexedHeight {
161+
if lastProcessedHeight+1000 < highestIndexedHeight {
162+
i.log.Warn().Msgf("notifying processed heights from %d to %d", lastProcessedHeight+1, highestIndexedHeight)
163+
}
161164
// we need loop here because it's possible for a height to be missed here,
162165
// we should guarantee all heights are processed
163166
for height := lastProcessedHeight + 1; height <= highestIndexedHeight; height++ {

0 commit comments

Comments
 (0)