Skip to content

Commit

Permalink
Update rollup/internal/controller/watcher/batch_proposer.go
Browse files Browse the repository at this point in the history
Co-authored-by: Xi Lin <zimpha@gmail.com>
  • Loading branch information
colinlyguo and zimpha authored Aug 20, 2024
1 parent 50895d7 commit 461cd12
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 461cd12

Please sign in to comment.