Skip to content

Commit 77dceae

Browse files
author
colinlyguo
committed
fix
1 parent d0cb8b9 commit 77dceae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

common/types/message/message.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ type BatchTaskDetail struct {
9999
BlobBytes []byte `json:"blob_bytes"`
100100
KzgProof Byte48 `json:"kzg_proof,omitempty"`
101101
KzgCommitment Byte48 `json:"kzg_commitment,omitempty"`
102-
ChallengeDigest common.Hash `json:"challenge_digest,omitempty"`
102+
ChallengeDigest *common.Hash `json:"challenge_digest,omitempty"`
103103
}
104104

105105
// BundleTaskDetail consists of all the information required to describe the task to generate a proof for a bundle of batches.

coordinator/internal/logic/provertask/batch_prover_task.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ func (bp *BatchProverTask) getBatchTaskDetail(dbBatch *orm.Batch, chunkInfos []*
296296
// FIXME: Challenge = ChallengeDigest % BLS_MODULUS, get the original ChallengeDigest.
297297
// Simply omit the field now to skip sanity check in prover side
298298
// Resume it later (or FIXME has worked or the prover side has relax its checking)
299-
// taskDetail.ChallengeDigest = common.BytesToHash(dbBatch.BlobDataProof[0:32])
300-
taskDetail.ChallengeDigest = common.BytesToHash(dbBatch.BlobDataProof[0:32])
299+
// taskDetail.ChallengeDigest = new(common.Hash)
300+
// *taskDetail.ChallengeDigest = common.BytesToHash(dbBatch.BlobDataProof[0:32])
301301
return taskDetail, nil
302302
}

0 commit comments

Comments
 (0)