Skip to content

Commit b63a137

Browse files
committed
fix: mainnet codec version special handle
1 parent 7eb5212 commit b63a137

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

rollup/internal/controller/blob_uploader/blob_uploader.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,14 @@ func (b *BlobUploader) constructBlobCodec(dbBatch *orm.Batch) (*kzg4844.Blob, er
159159
codecVersion := encoding.CodecVersion(dbBatch.CodecVersion)
160160

161161
// temporarily add this check because the codec_version field for chunk was added later.
162-
if codecVersion == encoding.CodecV0 && dbBatch.Index < 73224 {
162+
/*
163+
firstV0BatchIndex: sepolia 69684 mainnet 171172
164+
firstV1BatchIndex: sepolia 73224 mainnet 274315
165+
*/
166+
if codecVersion == encoding.CodecV0 && dbBatch.Index < 274315 {
163167
codecVersion = encoding.CodecV1
164168
}
165-
if codecVersion == encoding.CodecV0 && dbBatch.Index >= 73224 { // for sepolia
169+
if codecVersion == encoding.CodecV0 && dbBatch.Index >= 274315 { // for sepolia
166170
codecVersion = encoding.CodecV2
167171
}
168172

0 commit comments

Comments
 (0)