From 37923e870493827a6fb95a50d07a4d68358016a8 Mon Sep 17 00:00:00 2001 From: StefanIliev545 Date: Thu, 21 Sep 2023 01:37:35 +0300 Subject: [PATCH] Modified gas limit. --- go/config/enclave_config.go | 2 +- go/enclave/components/batch_executor.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/go/config/enclave_config.go b/go/config/enclave_config.go index fbc0f6ffea..f53d59b399 100644 --- a/go/config/enclave_config.go +++ b/go/config/enclave_config.go @@ -97,6 +97,6 @@ func DefaultEnclaveConfig() *EnclaveConfig { MaxRollupSize: 1024 * 64, GasPaymentAddress: gethcommon.HexToAddress("0xa714Ae85AA66424766ba4Df364EECc43197051A6"), BaseFee: new(big.Int).SetUint64(1), - GasLimit: new(big.Int).SetUint64(params.MaxGasLimit), + GasLimit: new(big.Int).SetUint64(params.MaxGasLimit / 6), } } diff --git a/go/enclave/components/batch_executor.go b/go/enclave/components/batch_executor.go index d549eee85b..d28c91f178 100644 --- a/go/enclave/components/batch_executor.go +++ b/go/enclave/components/batch_executor.go @@ -270,7 +270,7 @@ func (executor *batchExecutor) CreateGenesisState( return nil, nil, err } - var limit uint64 = params.MaxGasLimit + var limit uint64 = params.MaxGasLimit / 6 if gasLimit != nil { limit = gasLimit.Uint64() }