File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ const ArbosVersion_40 = uint64(40)
4040const ArbosVersion_41 = uint64 (41 )
4141const ArbosVersion_50 = uint64 (50 )
4242const ArbosVersion_51 = uint64 (51 )
43+ const ArbosVersion_52 = uint64 (52 )
4344const ArbosVersion_60 = uint64 (60 )
4445
4546const ArbosVersion_FixRedeemGas = ArbosVersion_11
@@ -50,6 +51,7 @@ const MaxArbosVersionSupported = ArbosVersion_51
5051const MaxDebugArbosVersionSupported = ArbosVersion_51
5152const ArbosVersion_Dia = ArbosVersion_50
5253const ArbosVersion_MultiConstraintFix = ArbosVersion_51
54+ const ArbosVersion_BatchSize = ArbosVersion_52
5355
5456const DefaultMaxUncompressedBatchSize = 16 * 1024 * 1024 // 16 MB
5557
@@ -91,8 +93,8 @@ func (c *ChainConfig) DebugMode() bool {
9193 return c .ArbitrumChainParams .AllowDebugPrecompiles
9294}
9395
94- func (c * ChainConfig ) MaxUncompressedBatchSize () uint64 {
95- if c .ArbitrumChainParams .MaxUncompressedBatchSize == 0 {
96+ func (c * ChainConfig ) MaxUncompressedBatchSize (arbosVersion uint64 ) uint64 {
97+ if arbosVersion < ArbosVersion_BatchSize || c .ArbitrumChainParams .MaxUncompressedBatchSize == 0 {
9698 return DefaultMaxUncompressedBatchSize
9799 }
98100 return c .ArbitrumChainParams .MaxUncompressedBatchSize
You can’t perform that action at this time.
0 commit comments