-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
increasing default gas limit #14806
base: develop
Are you sure you want to change the base?
increasing default gas limit #14806
Conversation
@@ -247,6 +250,10 @@ func (psl *settingsLoader) processProposerSettings(loadedSettings, dbSettings *v | |||
|
|||
// process any builder overrides on defaults | |||
if newSettings.DefaultConfig != nil { | |||
if newSettings.DefaultConfig.Builder != nil && newSettings.DefaultConfig.Builder.Enabled && newSettings.DefaultConfig.Builder.GasLimit == 0 && gasLimitOnly == nil { |
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.
this is ugly but not sure where else to do this...
@@ -69,6 +69,9 @@ func WithGasLimit() SettingsLoaderOption { | |||
log.Warnf("Gas limit was intentionally set to 0, this will be replaced with the default gas limit of %d", params.BeaconConfig().DefaultBuilderGasLimit) | |||
} | |||
rgl := reviewGasLimit(validator.Uint64(gl)) | |||
if &rgl != nil { | |||
log.Infof("Using a global gas limit of %d if builder is enabled", rgl) |
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.
maybe need to lowercase , how does this sound?
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.
What do you mean "if builder is enabled"? Can we check if it is enabled?
@@ -247,6 +250,10 @@ func (psl *settingsLoader) processProposerSettings(loadedSettings, dbSettings *v | |||
|
|||
// process any builder overrides on defaults | |||
if newSettings.DefaultConfig != nil { | |||
if newSettings.DefaultConfig.Builder != nil && newSettings.DefaultConfig.Builder.Enabled && newSettings.DefaultConfig.Builder.GasLimit == 0 && gasLimitOnly == nil { |
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.
also need to add unit tests
@@ -263,7 +263,7 @@ var mainnetBeaconConfig = &BeaconChainConfig{ | |||
TerminalBlockHash: [32]byte{}, | |||
TerminalTotalDifficulty: "58750000000000000000000", // Estimated: Sept 15, 2022 | |||
EthBurnAddressHex: "0x0000000000000000000000000000000000000000", | |||
DefaultBuilderGasLimit: uint64(30000000), | |||
DefaultBuilderGasLimit: uint64(36000000), |
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.
is this number correct?
What type of PR is this?
What does this PR do? Why is it needed?
Which issues(s) does this PR fix?
Fixes #
Other notes for review
Acknowledgements