Skip to content

Commit be22866

Browse files
author
colinlyguo
committed
fix a comment
1 parent cf85225 commit be22866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rollup/internal/controller/relayer/l2_relayer_sanity.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ func (r *Layer2Relayer) validateDatabaseConsistency(batchesToValidate []*dbBatch
175175
return fmt.Errorf("failed to get previous chunk %d for continuity check: %w", firstChunk.Index-1, err)
176176
}
177177

178-
// Validate codec version consistency across all batches
179178
firstBatchCodecVersion := batchesToValidate[0].Batch.CodecVersion
180179
for i, batch := range batchesToValidate {
180+
// Validate codec version consistency
181181
if batch.Batch.CodecVersion != firstBatchCodecVersion {
182182
return fmt.Errorf("batch %d has different codec version %d, expected %d", batch.Batch.Index, batch.Batch.CodecVersion, firstBatchCodecVersion)
183183
}

0 commit comments

Comments
 (0)