From 6427fe472e4651968abb8b8f816f771942b1ffc0 Mon Sep 17 00:00:00 2001 From: Stefan Iliev <46542846+StefanIliev545@users.noreply.github.com> Date: Fri, 2 Feb 2024 17:55:49 +0200 Subject: [PATCH] Upgrade batch size limit. (#1774) Co-authored-by: StefanIliev545 --- go/config/enclave_config.go | 2 +- go/node/docker_node.go | 2 +- integration/simulation/devnetwork/node.go | 2 +- integration/simulation/network/network_utils.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go/config/enclave_config.go b/go/config/enclave_config.go index 7471c3b391..920b77804e 100644 --- a/go/config/enclave_config.go +++ b/go/config/enclave_config.go @@ -93,7 +93,7 @@ func DefaultEnclaveConfig() *EnclaveConfig { SequencerID: gethcommon.BytesToAddress([]byte("")), ObscuroGenesis: "", DebugNamespaceEnabled: false, - MaxBatchSize: 1024 * 25, + MaxBatchSize: 1024 * 32, MaxRollupSize: 1024 * 64, GasPaymentAddress: gethcommon.HexToAddress("0xd6C9230053f45F873Cb66D8A02439380a37A4fbF"), BaseFee: new(big.Int).SetUint64(1), diff --git a/go/node/docker_node.go b/go/node/docker_node.go index 11e7dc0a19..525517711f 100644 --- a/go/node/docker_node.go +++ b/go/node/docker_node.go @@ -179,7 +179,7 @@ func (d *DockerNode) startEnclave() error { "-logPath", "sys_out", "-logLevel", fmt.Sprintf("%d", log.LvlInfo), fmt.Sprintf("-debugNamespaceEnabled=%t", d.cfg.debugNamespaceEnabled), - "-maxBatchSize=25600", + "-maxBatchSize=32768", "-maxRollupSize=65536", fmt.Sprintf("-logLevel=%d", d.cfg.logLevel), "-obscuroGenesis", "{}", diff --git a/integration/simulation/devnetwork/node.go b/integration/simulation/devnetwork/node.go index 60e70c2dca..066682ecf6 100644 --- a/integration/simulation/devnetwork/node.go +++ b/integration/simulation/devnetwork/node.go @@ -177,7 +177,7 @@ func (n *InMemNodeOperator) createEnclaveContainer() *enclavecontainer.EnclaveCo MessageBusAddress: n.l1Data.MessageBusAddr, SqliteDBPath: n.enclaveDBFilepath, DebugNamespaceEnabled: true, - MaxBatchSize: 1024 * 25, + MaxBatchSize: 1024 * 32, MaxRollupSize: 1024 * 64, BaseFee: defaultCfg.BaseFee, // todo @siliev:: fix test transaction builders so this can be different GasLimit: defaultCfg.GasLimit, diff --git a/integration/simulation/network/network_utils.go b/integration/simulation/network/network_utils.go index 4633975fea..dbcc4a9236 100644 --- a/integration/simulation/network/network_utils.go +++ b/integration/simulation/network/network_utils.go @@ -91,7 +91,7 @@ func createInMemObscuroNode( MinGasPrice: big.NewInt(1), MessageBusAddress: l1BusAddress, ManagementContractAddress: *mgtContractAddress, - MaxBatchSize: 1024 * 25, + MaxBatchSize: 1024 * 32, MaxRollupSize: 1024 * 64, BaseFee: big.NewInt(1), // todo @siliev:: fix test transaction builders so this can be different GasLimit: big.NewInt(1_000_000_000_000_000_000),