Skip to content

Commit

Permalink
Modified gas limit.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanIliev545 committed Sep 20, 2023
1 parent 7ea04bf commit 37923e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go/config/enclave_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
}
2 changes: 1 addition & 1 deletion go/enclave/components/batch_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 37923e8

Please sign in to comment.