Skip to content

Commit

Permalink
tweak logs
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Oct 17, 2024
1 parent b68c340 commit 43b0aa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rollup/rollup_sync_service/rollup_sync_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -587,13 +587,13 @@ func decodeBlockRangesFromEncodedChunks(codecVersion encoding.CodecVersion, chun

daChunksRawTx, err := codec.DecodeDAChunksRawTx(chunks)
if err != nil {
return nil, fmt.Errorf("failed to decode DA chunks: %w", err)
return nil, fmt.Errorf("failed to decode DA chunks, version: %v, err: %w", codecVersion, err)
}

var chunkBlockRanges []*rawdb.ChunkBlockRange
for _, daChunkRawTx := range daChunksRawTx {
if len(daChunkRawTx.Blocks) == 0 {
return nil, fmt.Errorf("no blocks found in DA chunk")
return nil, fmt.Errorf("no blocks found in DA chunk, version: %v", codecVersion)
}

chunkBlockRanges = append(chunkBlockRanges, &rawdb.ChunkBlockRange{
Expand Down

0 comments on commit 43b0aa1

Please sign in to comment.