mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 05:44:44 +00:00
vc: increase default gas limit (#6897)
Increases default gas limit to 36M.
This commit is contained in:
@@ -40,7 +40,7 @@ Options:
|
|||||||
The gas limit to be used in all builder proposals for all validators
|
The gas limit to be used in all builder proposals for all validators
|
||||||
managed by this validator client. Note this will not necessarily be
|
managed by this validator client. Note this will not necessarily be
|
||||||
used if the gas limit set here moves too far from the previous block's
|
used if the gas limit set here moves too far from the previous block's
|
||||||
gas limit. [default: 30000000]
|
gas limit. [default: 36000000]
|
||||||
--genesis-state-url <URL>
|
--genesis-state-url <URL>
|
||||||
A URL of a beacon-API compatible server from which to download the
|
A URL of a beacon-API compatible server from which to download the
|
||||||
genesis state. Checkpoint sync server URLs can generally be used with
|
genesis state. Checkpoint sync server URLs can generally be used with
|
||||||
|
|||||||
@@ -497,7 +497,7 @@ fn no_doppelganger_protection_flag() {
|
|||||||
fn no_gas_limit_flag() {
|
fn no_gas_limit_flag() {
|
||||||
CommandLineTest::new()
|
CommandLineTest::new()
|
||||||
.run()
|
.run()
|
||||||
.with_config(|config| assert!(config.validator_store.gas_limit == Some(30_000_000)));
|
.with_config(|config| assert!(config.validator_store.gas_limit == Some(36_000_000)));
|
||||||
}
|
}
|
||||||
#[test]
|
#[test]
|
||||||
fn gas_limit_flag() {
|
fn gas_limit_flag() {
|
||||||
|
|||||||
@@ -387,7 +387,7 @@ pub struct ValidatorClient {
|
|||||||
#[clap(
|
#[clap(
|
||||||
long,
|
long,
|
||||||
value_name = "INTEGER",
|
value_name = "INTEGER",
|
||||||
default_value_t = 30_000_000,
|
default_value_t = 36_000_000,
|
||||||
requires = "builder_proposals",
|
requires = "builder_proposals",
|
||||||
help = "The gas limit to be used in all builder proposals for all validators managed \
|
help = "The gas limit to be used in all builder proposals for all validators managed \
|
||||||
by this validator client. Note this will not necessarily be used if the gas limit \
|
by this validator client. Note this will not necessarily be used if the gas limit \
|
||||||
|
|||||||
@@ -74,8 +74,8 @@ const SLASHING_PROTECTION_HISTORY_EPOCHS: u64 = 512;
|
|||||||
|
|
||||||
/// Currently used as the default gas limit in execution clients.
|
/// Currently used as the default gas limit in execution clients.
|
||||||
///
|
///
|
||||||
/// https://github.com/ethereum/builder-specs/issues/17
|
/// https://ethresear.ch/t/on-increasing-the-block-gas-limit-technical-considerations-path-forward/21225.
|
||||||
pub const DEFAULT_GAS_LIMIT: u64 = 30_000_000;
|
pub const DEFAULT_GAS_LIMIT: u64 = 36_000_000;
|
||||||
|
|
||||||
pub struct ValidatorStore<T, E: EthSpec> {
|
pub struct ValidatorStore<T, E: EthSpec> {
|
||||||
validators: Arc<RwLock<InitializedValidators>>,
|
validators: Arc<RwLock<InitializedValidators>>,
|
||||||
|
|||||||
Reference in New Issue
Block a user