Skip to content

Commit

Permalink
tweak logs
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Oct 15, 2024
1 parent 6ac25e5 commit c1257a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coordinator/internal/logic/provertask/batch_prover_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,12 @@ func (bp *BatchProverTask) getBatchTaskDetail(dbBatch *orm.Batch, chunkInfos []*

codec, err := encoding.CodecFromVersion(encoding.CodecVersion(dbBatch.CodecVersion))
if err != nil {
return nil, fmt.Errorf("failed to get codec from version: %w", err)
return nil, fmt.Errorf("failed to get codec from version %d: %w", dbBatch.CodecVersion, err)
}

batchHeader, decodeErr := codec.NewDABatchFromBytes(dbBatch.BatchHeader)
if decodeErr != nil {
return nil, fmt.Errorf("failed to decode batch header (v3) for batch %d: %w", dbBatch.Index, decodeErr)
return nil, fmt.Errorf("failed to decode batch header version %d: %w", dbBatch.CodecVersion, decodeErr)
}
taskDetail.BatchHeader = batchHeader
taskDetail.BlobBytes = dbBatch.BlobBytes
Expand Down

0 comments on commit c1257a0

Please sign in to comment.