mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-31 13:17:09 +00:00
default vc to block v3 endpoint and deprecate block-v3 flag (#5292)
* default vc to block v3 endpoint and deprecate block-v3 flag * kick off ci * Merge branch 'unstable' of https://github.com/sigp/lighthouse into default-vc-to-block-v3-endpoint * fix formatting in cli docs * Merge branch 'unstable' of https://github.com/sigp/lighthouse into default-vc-to-block-v3-endpoint * Resolve merge conflicts * resolve conflicts * merge * merge * revert * retry * fix * Merge branch 'unstable' into default-vc-to-block-v3-endpoint * Merge branch 'unstable' of https://github.com/sigp/lighthouse into default-vc-to-block-v3-endpoint * fix issues w/ fallback sim
This commit is contained in:
@@ -79,8 +79,6 @@ pub struct Config {
|
||||
pub validator_registration_batch_size: usize,
|
||||
/// Enable slashing protection even while using web3signer keys.
|
||||
pub enable_web3signer_slashing_protection: bool,
|
||||
/// Enables block production via the block v3 endpoint. This configuration option can be removed post deneb.
|
||||
pub produce_block_v3: bool,
|
||||
/// Specifies the boost factor, a percentage multiplier to apply to the builder's payload value.
|
||||
pub builder_boost_factor: Option<u64>,
|
||||
/// If true, Lighthouse will prefer builder proposals, if available.
|
||||
@@ -130,7 +128,6 @@ impl Default for Config {
|
||||
enable_latency_measurement_service: true,
|
||||
validator_registration_batch_size: 500,
|
||||
enable_web3signer_slashing_protection: true,
|
||||
produce_block_v3: false,
|
||||
builder_boost_factor: None,
|
||||
prefer_builder_proposals: false,
|
||||
distributed: false,
|
||||
@@ -380,14 +377,18 @@ impl Config {
|
||||
config.builder_proposals = true;
|
||||
}
|
||||
|
||||
if cli_args.get_flag("produce-block-v3") {
|
||||
config.produce_block_v3 = true;
|
||||
}
|
||||
|
||||
if cli_args.get_flag("prefer-builder-proposals") {
|
||||
config.prefer_builder_proposals = true;
|
||||
}
|
||||
|
||||
if cli_args.get_flag("produce-block-v3") {
|
||||
warn!(
|
||||
log,
|
||||
"produce-block-v3 flag";
|
||||
"note" => "deprecated flag has no effect and should be removed"
|
||||
);
|
||||
}
|
||||
|
||||
config.gas_limit = cli_args
|
||||
.get_one::<String>("gas-limit")
|
||||
.map(|gas_limit| {
|
||||
|
||||
Reference in New Issue
Block a user