Skip to content

Commit

Permalink
tighter limit
Browse files Browse the repository at this point in the history
The default block gas limit can fit 1523 txs
Each Tx adds an 8-byte of length prefix.
50K is enoguh to add 1523 times 8 bytes and still stay in an L2 message
  • Loading branch information
tsahee committed May 30, 2024
1 parent b82cae8 commit ed015e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion execution/gethexec/sequencer.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (c *SequencerConfig) Validate() error {
if c.expectedSurplusSoftThreshold < c.expectedSurplusHardThreshold {
return errors.New("expected-surplus-soft-threshold cannot be lower than expected-surplus-hard-threshold")
}
if c.MaxTxDataSize > arbostypes.MaxL2MessageSize-10000 {
if c.MaxTxDataSize > arbostypes.MaxL2MessageSize-50000 {
return errors.New("max-tx-data-size too large for MaxL2MessageSize")
}
return nil
Expand Down

0 comments on commit ed015e7

Please sign in to comment.