Skip to content

Commit f722290

Browse files
committed
change from event count to start and end height
1 parent d8d1709 commit f722290

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

block/internal/syncing/da_retriever.go

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,18 @@ func (r *DARetriever) processBlobs(ctx context.Context, blobs [][]byte, daHeight
214214
}
215215

216216
if len(events) > 0 {
217-
r.logger.Info().Int("count", len(events)).Uint64("da_height", daHeight).Msg("processed blocks from DA")
217+
startHeight := events[0].Header.Height()
218+
endHeight := events[0].Header.Height()
219+
for _, event := range events {
220+
h := event.Header.Height()
221+
if h < startHeight {
222+
startHeight = h
223+
}
224+
if h > endHeight {
225+
endHeight = h
226+
}
227+
}
228+
r.logger.Info().Uint64("da_height", daHeight).Uint64("start_height", startHeight).Uint64("end_height", endHeight).Msg("processed blocks from DA")
218229
}
219230

220231
return events

0 commit comments

Comments
 (0)