@@ -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