Skip to content

Commit

Permalink
add fixme
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Jul 1, 2024
1 parent 187d5c6 commit e24ce85
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions common/types/message/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ type ChunkTaskDetail struct {

// BatchTaskDetail is a type containing BatchTask detail.
type BatchTaskDetail struct {
ChunkInfos []*ChunkInfo `json:"chunk_infos"`
ChunkProofs []*ChunkProof `json:"chunk_proofs"`
ParentStateRoot common.Hash `json:"parent_state_root"`
ParentBatchHash common.Hash `json:"parent_batch_hash"`
BatchHeader *codecv3.DABatch `json:"batch_header"`
ChunkInfos []*ChunkInfo `json:"chunk_infos"`
ChunkProofs []*ChunkProof `json:"chunk_proofs"`
ParentStateRoot common.Hash `json:"parent_state_root"`
ParentBatchHash common.Hash `json:"parent_batch_hash"`
// FIXME: this structure does not support json marshal/unmarshal well.
BatchHeader *codecv3.DABatch `json:"batch_header"`
}

// BundleTaskDetail consists of all the information required to describe the task to generate a proof for a bundle of batches.
Expand Down
1 change: 1 addition & 0 deletions coordinator/internal/logic/provertask/batch_prover_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ func (bp *BatchProverTask) formatProverTask(ctx context.Context, task *orm.Prove
if err != nil {
return nil, fmt.Errorf("failed to decode batch header, taskID:%s err:%w", task.TaskID, err)
}
// FIXME: this structure does not support json marshal/unmarshal well.
taskDetail.BatchHeader = batchHeader
}

Expand Down

0 comments on commit e24ce85

Please sign in to comment.