Skip to content

Commit 6cc6a45

Browse files
committed
feat: temporarily disable codec_version check
1 parent 465c36e commit 6cc6a45

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

rollup/internal/controller/blob_uploader/blob_uploader.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func (b *BlobUploader) constructBlobCodec(dbBatch *orm.Batch) (*kzg4844.Blob, er
136136
return nil, fmt.Errorf("failed to get chunks in range: %v", err)
137137
}
138138

139-
// disable this check temporarily because the codec_version field for chunk was added later.
139+
// temporarily disable this check because the codec_version field for chunk was added later.
140140
// check codec version
141141
// for _, dbChunk := range dbChunks {
142142
// if dbBatch.CodecVersion != dbChunk.CodecVersion {
@@ -158,9 +158,10 @@ func (b *BlobUploader) constructBlobCodec(dbBatch *orm.Batch) (*kzg4844.Blob, er
158158
var encodingBatch *encoding.Batch
159159
codecVersion := encoding.CodecVersion(dbBatch.CodecVersion)
160160
switch codecVersion {
161-
case encoding.CodecV0:
162-
return nil, fmt.Errorf("codec version 0 doesn't support blob, batch index: %d", dbBatch.Index)
163-
case encoding.CodecV1, encoding.CodecV2, encoding.CodecV3, encoding.CodecV4, encoding.CodecV5, encoding.CodecV6:
161+
// temporarily disable this check because the codec_version field for chunk was added later.
162+
// case encoding.CodecV0:
163+
// return nil, fmt.Errorf("codec version 0 doesn't support blob, batch index: %d", dbBatch.Index)
164+
case encoding.CodecV0, encoding.CodecV1, encoding.CodecV2, encoding.CodecV3, encoding.CodecV4, encoding.CodecV5, encoding.CodecV6:
164165
encodingBatch = &encoding.Batch{
165166
Index: dbBatch.Index,
166167
TotalL1MessagePoppedBefore: dbChunks[0].TotalL1MessagesPoppedBefore,

0 commit comments

Comments
 (0)