Skip to content

Commit 90440f0

Browse files
committed
handle edge case
1 parent 48107c9 commit 90440f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rollup/internal/controller/blob_uploader/blob_uploader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func (b *BlobUploader) GetFirstUnuploadedBatchByPlatform(ctx context.Context, st
220220
// to check if the parent batch uploaded
221221
// if no, there is a batch revert happened, we need to fallback to upload previous batch
222222
// skip the check if the parent batch is genesis batch
223-
if batchIndex <= 1 {
223+
if batchIndex <= 1 || batchIndex == startBatch {
224224
break
225225
}
226226
fields := map[string]interface{}{

0 commit comments

Comments
 (0)