Skip to content

Commit

Permalink
Update default block gas limit to 36 million (#8976)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov authored Jan 10, 2025
1 parent cc94afc commit 55c6f70
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
## Unreleased Changes

### Breaking Changes
`--Xvalidators-builder-registration-default-gas-limit` is removed in favour of `--validators-builder-registration-default-gas-limit`

### Additions and Improvements
- Default the gas limit to 36 million for externally produced blocks
- Optimized blobs validation pipeline
- Remove delay when fetching blobs from the local EL on block arrival

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void shouldMaintainValidatorsInMutableClient() throws Exception {
api.assertLocalValidatorListing(validatorKeystores.getPublicKeys());

api.assertValidatorGasLimit(
validatorKeystores.getPublicKeys().get(1), UInt64.valueOf(30000000));
validatorKeystores.getPublicKeys().get(1), UInt64.valueOf(36_000_000));

// generate voluntary exit
api.generateVoluntaryExitAndCheckValidatorIndex(validatorKeystores.getPublicKeys().get(1), 1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,11 @@ public class ValidatorProposerOptions {
ValidatorConfig.DEFAULT_BUILDER_REGISTRATION_DEFAULT_ENABLED;

@Option(
names = {"--Xvalidators-builder-registration-default-gas-limit"},
names = {"--validators-builder-registration-default-gas-limit"},
paramLabel = "<uint64>",
showDefaultValue = Visibility.ALWAYS,
description = "Change the default gas limit used for the validators registration.",
arity = "1",
hidden = true,
converter = UInt64Converter.class)
private UInt64 builderRegistrationDefaultGasLimit =
ValidatorConfig.DEFAULT_BUILDER_REGISTRATION_GAS_LIMIT;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public void shouldReportDefaultGasLimitIfRegistrationDefaultGasLimitNotSpecified

@Test
public void shouldSetDefaultGasLimitIfRegistrationDefaultGasLimitIsSpecified() {
final String[] args = {"--Xvalidators-builder-registration-default-gas-limit", "1000"};
final String[] args = {"--validators-builder-registration-default-gas-limit", "1000"};
final TekuConfiguration config = getTekuConfigurationFromArguments(args);
assertThat(
config.validatorClient().getValidatorConfig().getBuilderRegistrationDefaultGasLimit())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public class ValidatorConfig {
public static final boolean DEFAULT_BUILDER_REGISTRATION_DEFAULT_ENABLED = false;
public static final boolean DEFAULT_VALIDATOR_BLINDED_BLOCKS_ENABLED = false;
public static final int DEFAULT_VALIDATOR_REGISTRATION_SENDING_BATCH_SIZE = 100;
public static final UInt64 DEFAULT_BUILDER_REGISTRATION_GAS_LIMIT = UInt64.valueOf(30_000_000);
public static final UInt64 DEFAULT_BUILDER_REGISTRATION_GAS_LIMIT = UInt64.valueOf(36_000_000);
public static final boolean DEFAULT_OBOL_DVT_SELECTIONS_ENDPOINT_ENABLED = false;
public static final boolean DEFAULT_ATTESTATIONS_V2_APIS_ENABLED = false;

Expand Down

0 comments on commit 55c6f70

Please sign in to comment.