Skip to content

Commit 8fc6ac0

Browse files
jcortejosoalecps
authored andcommitted
Increase MaxFrameLen to 16 MB
EigenDA current limit for Holesky (their documentation is currently outdated but the limit seems to be set to 16 MB based on the updated tests from [this PR](Layr-Labs/eigenda-proxy#100)).
1 parent 7db939f commit 8fc6ac0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

op-node/rollup/derive/frame.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88
"io"
99
)
1010

11-
// Frames cannot be larger than 1 MB.
1211
// Data transactions that carry frames are generally not larger than 128 KB due to L1 network conditions,
1312
// but we leave space to grow larger anyway (gas limit allows for more data).
14-
const MaxFrameLen = 1_000_000
13+
// For AltDA, frames size can be larger. Setting to 16 MB as current blob limit for EigenDA.
14+
const MaxFrameLen = 16_000_000
1515

1616
// Data Format
1717
//
@@ -85,7 +85,7 @@ func (f *Frame) UnmarshalBinary(r ByteReader) error {
8585
return fmt.Errorf("reading frame_data_length: %w", eofAsUnexpectedMissing(err))
8686
}
8787

88-
// Cap frame length to MaxFrameLen (currently 1MB)
88+
// Cap frame length to MaxFrameLen
8989
if frameLength > MaxFrameLen {
9090
return fmt.Errorf("frame_data_length is too large: %d", frameLength)
9191
}

0 commit comments

Comments
 (0)