-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removes unused gaslimit flag #1680
Conversation
WalkthroughThe overall change across the codebase involves the removal of the Changes
TipsChat with CodeRabbit Bot (
|
@coderabbitai pause |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 4
Configuration used: CodeRabbit UI
Files selected for processing (10)
- go/config/enclave_config.go (3 hunks)
- go/enclave/components/batch_executor.go (1 hunks)
- go/enclave/components/interfaces.go (1 hunks)
- go/enclave/components/rollup_compression.go (1 hunks)
- go/enclave/container/cli.go (3 hunks)
- go/enclave/enclave.go (1 hunks)
- go/enclave/nodetype/sequencer.go (1 hunks)
- go/enclave/nodetype/validator.go (1 hunks)
- integration/simulation/devnetwork/node.go (1 hunks)
- integration/simulation/network/network_utils.go (1 hunks)
Additional comments: 12
go/config/enclave_config.go (2)
- 6-11: > 💡 NOTE
Codebase verification is a beta feature.
The removal of the
GasLimit
field from theEnclaveConfig
struct and associated changes have been confirmed. However, the import of "github.com/ethereum/go-ethereum/params" is still present in other parts of the codebase, indicating that it is still required and should not be removed.
- 66-71: > Note: This review was outside the patches, so it was mapped to the patch with the greatest overlap. Original lines [66-98]
The summary provided earlier mentions the removal of the
GasLimit
field from theEnclaveConfig
struct, but the hunks do not show this change. Please verify if the summary is accurate or if the hunks provided are incomplete.go/enclave/components/batch_executor.go (1)
- 298-310: The removal of the
gasLimit
parameter from theCreateGenesisState
method aligns with the PR objective to remove the unusedgaslimit
flag from the codebase.go/enclave/components/interfaces.go (1)
- 76-79: The change in the
CreateGenesisState
method signature is consistent with the PR objective of removing the unusedgaslimit
flag. Ensure that all implementations and calls to this interface method have been updated accordingly.go/enclave/container/cli.go (3)
40-43: The removal of the
GasLimit
field from theEnclaveConfigToml
struct aligns with the PR objective to remove the unusedgaslimit
flag from the codebase.73-75: The addition of
maxRollupSize
andbaseFee
flags and the renaming ofcoinbaseAddress
flag fromgasLimit
are not mentioned in the PR objective or the summary. Please verify if these changes are intended and if they should be documented in the PR summary.109-111: The assignment of values to
cfg.MaxRollupSize
,cfg.BaseFee
, andcfg.GasPaymentAddress
is not mentioned in the PR objective or the summary. Please verify if these changes are intended and if they should be documented in the PR summary.go/enclave/enclave.go (1)
- 222-226: The changes in the
nodetype.SequencerSettings
struct initialization within theNewEnclave
function do not appear to be related to the PR objective of removing an unusedgaslimit
flag. Please verify that these changes are intended and relevant to the PR's goal.go/enclave/nodetype/sequencer.go (1)
- 138-143: The update to the
createGenesisBatch
method call is consistent with the PR objective to remove thegaslimit
flag from the codebase.go/enclave/nodetype/validator.go (1)
- 135-139: The changes to the
handleGenesis
function correctly reflect the PR's objective to remove thegasLimit
parameter, which is consistent with the broader goal of eliminating the unusedgasLimit
flag from the codebase.integration/simulation/devnetwork/node.go (1)
- 180-185: The removal of the
GasLimit
parameter from thecreateEnclaveContainer
method aligns with the PR objective and the summary provided. This change is consistent and appears to be correctly implemented in the hunk.integration/simulation/network/network_utils.go (1)
- 94-97: The summary does not mention the addition of
MaxBatchSize
,MaxRollupSize
, andBaseFee
fields to theEnclaveConfig
struct. These additions should be documented as they represent a change in the configuration and potential behavior of the enclave.
@otherview , status of this PR? |
Closed in pref of #1682 |
Why this change is needed
Flag is not used
What changes were made as part of this PR
Please provide a high level list of the changes made
PR checks pre-merging
Please indicate below by ticking the checkbox that you have read and performed the required
PR checks