Skip to content

Commit

Permalink
Add CLI config validation of op-batcher to prevent 'auto' data type a…
Browse files Browse the repository at this point in the history
…nd Alt DA mode from being set at same time
  • Loading branch information
Kourin1996 committed Nov 29, 2024
1 parent 8e63572 commit 6cbfedf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion op-batcher/batcher/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func (bs *BatcherService) initChannelConfig(cfg *CLIConfig) error {
return fmt.Errorf("unknown data availability type: %v", cfg.DataAvailabilityType)
}

if bs.UseAltDA && cfg.DataAvailabilityType == flags.BlobsType {
if bs.UseAltDA && cfg.DataAvailabilityType != flags.CalldataType {
return fmt.Errorf("cannot use Blobs with Alt DA")
}
if bs.UseAltDA && cc.MaxFrameSize > altda.MaxInputSize {
Expand Down

0 comments on commit 6cbfedf

Please sign in to comment.