Skip to content

Commit 5cf8cda

Browse files
author
colinlyguo
committed
add logs
1 parent bcc6b0f commit 5cf8cda

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

coordinator/internal/logic/provertask/chunk_prover_task.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ func (cp *ChunkProverTask) formatProverTask(ctx context.Context, task *orm.Prove
206206
BlockHashes: blockHashes,
207207
PrevMsgQueueHash: common.HexToHash(chunk.PrevL1MessageQueueHash),
208208
}
209-
blockHashesBytes, err := json.Marshal(taskDetail)
209+
taskDetailBytes, err := json.Marshal(taskDetail)
210210
if err != nil {
211211
return nil, fmt.Errorf("failed to marshal block hashes hash:%s, err:%w", task.TaskID, err)
212212
}
@@ -215,10 +215,13 @@ func (cp *ChunkProverTask) formatProverTask(ctx context.Context, task *orm.Prove
215215
UUID: task.UUID.String(),
216216
TaskID: task.TaskID,
217217
TaskType: int(message.ProofTypeChunk),
218-
TaskData: string(blockHashesBytes),
218+
TaskData: string(taskDetailBytes),
219219
HardForkName: hardForkName,
220220
}
221221

222+
log.Info("format prover task", "task_id", task.TaskID, "task_type", message.ProofTypeChunk.String(), "hard_fork_name", hardForkName)
223+
log.Info("TaskData", "task_id", task.TaskID, "task_data", proverTaskSchema.TaskData, "taskDetail", taskDetail)
224+
222225
return proverTaskSchema, nil
223226
}
224227

0 commit comments

Comments
 (0)