From ac9608fbaf8647e5f2b086eb68813040aa17b948 Mon Sep 17 00:00:00 2001 From: Javed Khan Date: Wed, 8 Oct 2025 12:02:12 -0700 Subject: [PATCH 1/2] fix(op-batcher): exempt generic da from max input size --- op-batcher/batcher/service.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/op-batcher/batcher/service.go b/op-batcher/batcher/service.go index 2f0ed8ae67e64..a89ba807c300a 100644 --- a/op-batcher/batcher/service.go +++ b/op-batcher/batcher/service.go @@ -40,6 +40,8 @@ type BatcherConfig struct { // UseAltDA is true if the rollup config has a DA challenge address so the batcher // will post inputs to the DA server and post commitments to blobs or calldata. UseAltDA bool + // GenericDA is true if the DA server generates commitments for the input + GenericDA bool // maximum number of concurrent blob put requests to the DA server MaxConcurrentDARequests uint64 @@ -284,7 +286,7 @@ func (bs *BatcherService) initChannelConfig(cfg *CLIConfig) error { return fmt.Errorf("cannot use data availability type blobs or auto with Alt-DA") } - if bs.UseAltDA && cc.MaxFrameSize > altda.MaxInputSize { + if bs.UseAltDA && !bs.GenericDA && cc.MaxFrameSize > altda.MaxInputSize { return fmt.Errorf("max frame size %d exceeds altDA max input size %d", cc.MaxFrameSize, altda.MaxInputSize) } @@ -428,6 +430,7 @@ func (bs *BatcherService) initAltDA(cfg *CLIConfig) error { } bs.AltDA = config.NewDAClient() bs.UseAltDA = config.Enabled + bs.GenericDA = config.GenericDA return nil } From 841715b18570d0304f943dda26895d6b378d462c Mon Sep 17 00:00:00 2001 From: Sebastian Stammler Date: Thu, 30 Oct 2025 17:25:55 +0100 Subject: [PATCH 2/2] Apply suggestion from @sebastianst --- op-batcher/batcher/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op-batcher/batcher/service.go b/op-batcher/batcher/service.go index a89ba807c300a..d12285e2a1862 100644 --- a/op-batcher/batcher/service.go +++ b/op-batcher/batcher/service.go @@ -286,7 +286,7 @@ func (bs *BatcherService) initChannelConfig(cfg *CLIConfig) error { return fmt.Errorf("cannot use data availability type blobs or auto with Alt-DA") } - if bs.UseAltDA && !bs.GenericDA && cc.MaxFrameSize > altda.MaxInputSize { + if bs.UseAltDA && !bs.GenericDA && cc.MaxFrameSize > altda.MaxInputSize { return fmt.Errorf("max frame size %d exceeds altDA max input size %d", cc.MaxFrameSize, altda.MaxInputSize) }