Skip to content

Commit 9bb768e

Browse files
author
colinlyguo
committed
fix
1 parent 9033471 commit 9bb768e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

coordinator/internal/logic/provertask/batch_prover_task.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -286,13 +286,8 @@ func (bp *BatchProverTask) getBatchTaskDetail(dbBatch *orm.Batch, chunkInfos []*
286286
return nil, fmt.Errorf("failed to decode batch header version %d: %w", dbBatch.CodecVersion, decodeErr)
287287
}
288288
taskDetail.BatchHeader = batchHeader
289-
taskDetail.BlobBytes = dbBatch.BlobBytes
290289

291-
if len(dbBatch.BlobDataProof) < 160 {
292-
return nil, fmt.Errorf("blob data proof length is less than 160 bytes = %d, taskID: %s: %s", len(dbBatch.BlobDataProof), dbBatch.Hash, common.Bytes2Hex(dbBatch.BlobDataProof))
293-
}
294-
295-
challengeDigest, kzgProof, kzgCommitment, err := codec.BlobDataProofFromBlobBytes(dbBatch.BlobBytes)
290+
challengeDigest, kzgCommitment, kzgProof, err := codec.BlobDataProofFromBlobBytes(dbBatch.BlobBytes)
296291
if err != nil {
297292
return nil, fmt.Errorf("failed to get challenge digest from blob bytes, taskID: %s, err: %w", dbBatch.Hash, err)
298293
}

0 commit comments

Comments
 (0)