Skip to content

Commit 34a6c3a

Browse files
authored
vc: increase default gas limit (#6897)
Increases default gas limit to 36M.
1 parent 63a10ea commit 34a6c3a

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

book/src/help_vc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Options:
4040
The gas limit to be used in all builder proposals for all validators
4141
managed by this validator client. Note this will not necessarily be
4242
used if the gas limit set here moves too far from the previous block's
43-
gas limit. [default: 30000000]
43+
gas limit. [default: 36000000]
4444
--genesis-state-url <URL>
4545
A URL of a beacon-API compatible server from which to download the
4646
genesis state. Checkpoint sync server URLs can generally be used with

lighthouse/tests/validator_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ fn no_doppelganger_protection_flag() {
497497
fn no_gas_limit_flag() {
498498
CommandLineTest::new()
499499
.run()
500-
.with_config(|config| assert!(config.validator_store.gas_limit == Some(30_000_000)));
500+
.with_config(|config| assert!(config.validator_store.gas_limit == Some(36_000_000)));
501501
}
502502
#[test]
503503
fn gas_limit_flag() {

validator_client/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ pub struct ValidatorClient {
387387
#[clap(
388388
long,
389389
value_name = "INTEGER",
390-
default_value_t = 30_000_000,
390+
default_value_t = 36_000_000,
391391
requires = "builder_proposals",
392392
help = "The gas limit to be used in all builder proposals for all validators managed \
393393
by this validator client. Note this will not necessarily be used if the gas limit \

validator_client/validator_store/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ const SLASHING_PROTECTION_HISTORY_EPOCHS: u64 = 512;
7474

7575
/// Currently used as the default gas limit in execution clients.
7676
///
77-
/// https://github.com/ethereum/builder-specs/issues/17
78-
pub const DEFAULT_GAS_LIMIT: u64 = 30_000_000;
77+
/// https://ethresear.ch/t/on-increasing-the-block-gas-limit-technical-considerations-path-forward/21225.
78+
pub const DEFAULT_GAS_LIMIT: u64 = 36_000_000;
7979

8080
pub struct ValidatorStore<T, E: EthSpec> {
8181
validators: Arc<RwLock<InitializedValidators>>,

0 commit comments

Comments
 (0)