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() }