Skip to content

Commit 5978b4a

Browse files
authored
Bump gas limit to 60M (#8331)
Bump gas limit to 60M as part of Fusaka mainnet release. Co-Authored-By: Jimmy Chen <[email protected]> Co-Authored-By: Jimmy Chen <[email protected]>
1 parent 1cee814 commit 5978b4a

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

beacon_node/execution_layer/src/test_utils/execution_block_generator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use super::DEFAULT_TERMINAL_BLOCK;
2929
const TEST_BLOB_BUNDLE: &[u8] = include_bytes!("fixtures/mainnet/test_blobs_bundle.ssz");
3030
const TEST_BLOB_BUNDLE_V2: &[u8] = include_bytes!("fixtures/mainnet/test_blobs_bundle_v2.ssz");
3131

32-
pub const DEFAULT_GAS_LIMIT: u64 = 45_000_000;
32+
pub const DEFAULT_GAS_LIMIT: u64 = 60_000_000;
3333
const GAS_USED: u64 = DEFAULT_GAS_LIMIT - 1;
3434

3535
#[derive(Clone, Debug, PartialEq)]

beacon_node/execution_layer/src/test_utils/mock_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ use warp::reply::{self, Reply};
4040
use warp::{Filter, Rejection};
4141

4242
pub const DEFAULT_FEE_RECIPIENT: Address = Address::repeat_byte(42);
43-
pub const DEFAULT_GAS_LIMIT: u64 = 45_000_000;
43+
pub const DEFAULT_GAS_LIMIT: u64 = 60_000_000;
4444
pub const DEFAULT_BUILDER_PRIVATE_KEY: &str =
4545
"607a11b45a7219cc61a3d9c5fd08c7eebd602a6a19a977f8d3771d5711a550f2";
4646

book/src/advanced_builders.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ relays, run one of the following services and configure lighthouse to use it wit
6060
## Validator Client Configuration
6161

6262
In the validator client you can configure gas limit and fee recipient on a per-validator basis. If no gas limit is
63-
configured, Lighthouse will use a default gas limit of 45,000,000, which is the current default value used in execution
63+
configured, Lighthouse will use a default gas limit of 60,000,000, which is the current default value used in execution
6464
engines. You can also enable or disable use of external builders on a per-validator basis rather than using
6565
`--builder-proposals`, `--builder-boost-factor` or `--prefer-builder-proposals`, which apply builder related preferences for all validators.
6666
In order to manage these configurations per-validator, you can either make updates to the `validator_definitions.yml` file
@@ -75,7 +75,7 @@ transaction within the block to the fee recipient, so a discrepancy in fee recip
7575
is something afoot.
7676

7777
> Note: The gas limit configured here is effectively a vote on block size, so the configuration should not be taken lightly.
78-
> 45,000,000 is currently seen as a value balancing block size with how expensive it is for
78+
> 60,000,000 is currently seen as a value balancing block size with how expensive it is for
7979
> the network to validate blocks. So if you don't feel comfortable making an informed "vote", using the default value is
8080
> encouraged. We will update the default value if the community reaches a rough consensus on a new value.
8181

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: 45000000]
43+
gas limit. [default: 60000000]
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
@@ -505,7 +505,7 @@ fn no_doppelganger_protection_flag() {
505505
fn no_gas_limit_flag() {
506506
CommandLineTest::new()
507507
.run()
508-
.with_config(|config| assert!(config.validator_store.gas_limit == Some(45_000_000)));
508+
.with_config(|config| assert!(config.validator_store.gas_limit == Some(60_000_000)));
509509
}
510510
#[test]
511511
fn gas_limit_flag() {

validator_client/lighthouse_validator_store/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const SLASHING_PROTECTION_HISTORY_EPOCHS: u64 = 512;
5656
/// Currently used as the default gas limit in execution clients.
5757
///
5858
/// https://ethpandaops.io/posts/gaslimit-scaling/.
59-
pub const DEFAULT_GAS_LIMIT: u64 = 45_000_000;
59+
pub const DEFAULT_GAS_LIMIT: u64 = 60_000_000;
6060

6161
pub struct LighthouseValidatorStore<T, E> {
6262
validators: Arc<RwLock<InitializedValidators>>,

validator_client/src/cli.rs

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

0 commit comments

Comments
 (0)