Skip to content

Commit 97df245

Browse files
committed
remove double checks
1 parent 48567d1 commit 97df245

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

rollup/rollup_sync_service/rollup_sync_service.go

-4
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,6 @@ func (s *RollupSyncService) parseAndUpdateRollupEventLogs(logs []types.Log, endB
228228
return fmt.Errorf("failed to get local node info, batch index: %v, err: %w", batchIndex, err)
229229
}
230230

231-
if len(chunks) == 0 {
232-
return fmt.Errorf("invalid argument: length of chunks is 0, batch index: %v", event.BatchIndex.Uint64())
233-
}
234-
235231
endBlock, finalizedBatchMeta, err := validateBatch(event, parentBatchMeta, chunks, s.bc.Config(), s.stack)
236232
if err != nil {
237233
return fmt.Errorf("fatal: validateBatch failed: finalize event: %v, err: %w", event, err)

0 commit comments

Comments
 (0)