Skip to content

Commit 9aae8ec

Browse files
committed
fix unittest
1 parent 3685b24 commit 9aae8ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

coordinator/internal/logic/provertask/batch_prover_task.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,9 @@ func (bp *BatchProverTask) getBatchTaskDetail(dbBatch *orm.Batch, chunkProofs []
311311
if !bp.validiumMode() {
312312
dbBatchCodecVersion := encoding.CodecVersion(dbBatch.CodecVersion)
313313
switch dbBatchCodecVersion {
314+
case 0:
315+
log.Warn("the codec version is 0, if it is not under integration test we have encountered an error here")
316+
return taskDetail, nil
314317
case encoding.CodecV3, encoding.CodecV4, encoding.CodecV6, encoding.CodecV7, encoding.CodecV8, encoding.CodecV9:
315318
default:
316319
return nil, fmt.Errorf("Unsupported codec version <%d>", dbBatchCodecVersion)

0 commit comments

Comments
 (0)