Skip to content

Commit

Permalink
Merge branch 'feat-rollup-relayer-codecv4' into feat-coordinator-add-…
Browse files Browse the repository at this point in the history
…blob-bytes-in-batch-proving-task
  • Loading branch information
colinlyguo authored Aug 20, 2024
2 parents bb4d3eb + c7a8bd7 commit 50747ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rollup/internal/controller/watcher/batch_proposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (p *BatchProposer) updateDBBatchInfo(batch *encoding.Batch, codecVersion en
compatibilityBreachOccurred = true

if len(batch.Chunks) == 1 {
log.Warn("Disable encode: cannot truncate batch with only 1 chunk for compatibility", "start block number", batch.Chunks[0].Blocks[0].Header.Number.Uint64(),
log.Warn("Disable compression: cannot truncate batch with only 1 chunk for compatibility", "start block number", batch.Chunks[0].Blocks[0].Header.Number.Uint64(),
"end block number", batch.Chunks[0].Blocks[len(batch.Chunks[0].Blocks)-1].Header.Number.Uint64())
enableCompress = false
break
Expand Down
2 changes: 1 addition & 1 deletion rollup/internal/controller/watcher/chunk_proposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (p *ChunkProposer) updateDBChunkInfo(chunk *encoding.Chunk, codecVersion en
compatibilityBreachOccurred = true

if len(chunk.Blocks) == 1 {
log.Warn("Disable encode: cannot truncate chunk with only 1 block for compatibility", "block number", chunk.Blocks[0].Header.Number)
log.Warn("Disable compression: cannot truncate chunk with only 1 block for compatibility", "block number", chunk.Blocks[0].Header.Number)
enableCompress = false
}

Expand Down

0 comments on commit 50747ab

Please sign in to comment.