Skip to content

Commit 8e73552

Browse files
committed
dont block on empty events as this means we got the response but there
is nothing for us.
1 parent c2f8e71 commit 8e73552

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎block/internal/syncing/syncer.go‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,8 @@ func (s *Syncer) fetchDAUntilCaughtUp() error {
320320

321321
if len(events) == 0 {
322322
// This can happen if RetrieveFromDA returns no events and no error.
323-
// This is unexpected, but we should handle it to avoid busy-looping.
324-
s.logger.Warn().Uint64("da_height", daHeight).Msg("no events returned from DA, but no error either. Backing off.")
325-
return fmt.Errorf("no events returned from DA for height %d", daHeight)
323+
s.logger.Debug().Uint64("da_height", daHeight).Msg("no events returned from DA, but no error either. Backing off.")
324+
// return fmt.Errorf("no events returned from DA for height %d", daHeight)
326325
}
327326

328327
// Process DA events

0 commit comments

Comments
 (0)