Skip to content
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

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft

increasing default gas limit #14806

wants to merge 1 commit into from

Conversation

james-prysm
Copy link
Contributor

What type of PR is this?

Uncomment one line below and remove others.

Bug fix
Feature
Documentation
Other

What does this PR do? Why is it needed?

Which issues(s) does this PR fix?

Fixes #

Other notes for review

Acknowledgements

@@ -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 {
Copy link
Contributor Author

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)
Copy link
Contributor Author

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?

Copy link
Member

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 {
Copy link
Contributor Author

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),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this number correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants