From 388272316ebb7cdcfbfe6dd4336504061ce0675e Mon Sep 17 00:00:00 2001 From: Valentin Rodygin Date: Wed, 3 Jul 2024 12:39:41 +0200 Subject: [PATCH] Commented out MaxInputSize checks --- op-batcher/batcher/service.go | 6 +++--- op-node/rollup/derive/plasma_data_source.go | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/op-batcher/batcher/service.go b/op-batcher/batcher/service.go index 1c35c1c4ea25..c19e6ad5341e 100644 --- a/op-batcher/batcher/service.go +++ b/op-batcher/batcher/service.go @@ -215,9 +215,9 @@ func (bs *BatcherService) initChannelConfig(cfg *CLIConfig) error { return fmt.Errorf("unknown data availability type: %v", cfg.DataAvailabilityType) } - if bs.UsePlasma && cc.MaxFrameSize > plasma.MaxInputSize { - return fmt.Errorf("max frame size %d exceeds plasma max input size %d", cc.MaxFrameSize, plasma.MaxInputSize) - } + // if bs.UsePlasma && cc.MaxFrameSize > plasma.MaxInputSize { + // return fmt.Errorf("max frame size %d exceeds plasma max input size %d", cc.MaxFrameSize, plasma.MaxInputSize) + // } cc.InitCompressorConfig(cfg.ApproxComprRatio, cfg.Compressor, cfg.CompressionAlgo) diff --git a/op-node/rollup/derive/plasma_data_source.go b/op-node/rollup/derive/plasma_data_source.go index 19beb145999b..4c5fc7d553bd 100644 --- a/op-node/rollup/derive/plasma_data_source.go +++ b/op-node/rollup/derive/plasma_data_source.go @@ -92,11 +92,11 @@ func (s *PlasmaDataSource) Next(ctx context.Context) (eth.Data, error) { return nil, NewTemporaryError(fmt.Errorf("failed to fetch input data with comm %s from da service: %w", s.comm, err)) } // inputs are limited to a max size to ensure they can be challenged in the DA contract. - if s.comm.CommitmentType() == plasma.Keccak256CommitmentType && len(data) > plasma.MaxInputSize { - s.log.Warn("input data exceeds max size", "size", len(data), "max", plasma.MaxInputSize) - s.comm = nil - return s.Next(ctx) - } + // if s.comm.CommitmentType() == plasma.Keccak256CommitmentType && len(data) > plasma.MaxInputSize { + // s.log.Warn("input data exceeds max size", "size", len(data), "max", plasma.MaxInputSize) + // s.comm = nil + // return s.Next(ctx) + // } // reset the commitment so we can fetch the next one from the source at the next iteration. s.comm = nil return data, nil