From ed015e752d7d24e59ec9e6f894fe1a26ffa19036 Mon Sep 17 00:00:00 2001 From: Tsahi Zidenberg Date: Thu, 30 May 2024 11:49:45 -0600 Subject: [PATCH] tighter limit 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 --- execution/gethexec/sequencer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/execution/gethexec/sequencer.go b/execution/gethexec/sequencer.go index 2f3c639d64..cf4356f1be 100644 --- a/execution/gethexec/sequencer.go +++ b/execution/gethexec/sequencer.go @@ -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