@@ -40,12 +40,13 @@ type AltDAInputFetcher interface {
4040// batch submitter transactions.
4141// This is not a stage in the pipeline, but a wrapper for another stage in the pipeline
4242type DataSourceFactory struct {
43- log log.Logger
44- dsCfg DataSourceConfig
45- fetcher L1Fetcher
46- blobsFetcher L1BlobsFetcher
47- altDAFetcher AltDAInputFetcher
48- ecotoneTime * uint64
43+ log log.Logger
44+ dsCfg DataSourceConfig
45+ fetcher L1Fetcher
46+ blobsFetcher L1BlobsFetcher
47+ altDAFetcher AltDAInputFetcher
48+ altDAMaxInputSize uint64
49+ ecotoneTime * uint64
4950}
5051
5152func NewDataSourceFactory (log log.Logger , cfg * rollup.Config , fetcher L1Fetcher , blobsFetcher L1BlobsFetcher , altDAFetcher AltDAInputFetcher ) * DataSourceFactory {
@@ -55,12 +56,13 @@ func NewDataSourceFactory(log log.Logger, cfg *rollup.Config, fetcher L1Fetcher,
5556 altDAEnabled : cfg .AltDAEnabled (),
5657 }
5758 return & DataSourceFactory {
58- log : log ,
59- dsCfg : config ,
60- fetcher : fetcher ,
61- blobsFetcher : blobsFetcher ,
62- altDAFetcher : altDAFetcher ,
63- ecotoneTime : cfg .EcotoneTime ,
59+ log : log ,
60+ dsCfg : config ,
61+ fetcher : fetcher ,
62+ blobsFetcher : blobsFetcher ,
63+ altDAFetcher : altDAFetcher ,
64+ altDAMaxInputSize : cfg .AltDAConfig .MaxInputSizeOrDefault (),
65+ ecotoneTime : cfg .EcotoneTime ,
6466 }
6567}
6668
@@ -79,7 +81,7 @@ func (ds *DataSourceFactory) OpenData(ctx context.Context, ref eth.L1BlockRef, b
7981 }
8082 if ds .dsCfg .altDAEnabled {
8183 // altDA([calldata | blobdata](l1Ref)) -> data
82- return NewAltDADataSource (ds .log , src , ds .fetcher , ds .altDAFetcher , ref ), nil
84+ return NewAltDADataSource (ds .log , src , ds .fetcher , ds .altDAFetcher , ds . altDAMaxInputSize , ref ), nil
8385 }
8486 return src , nil
8587}
0 commit comments