mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 10:22:38 +00:00
Merge branch 'unstable' into eip4844
This commit is contained in:
@@ -861,6 +861,15 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
|
||||
for ensuring the EL is given ample notice. Default: 1/3 of a slot.")
|
||||
.takes_value(true)
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("always-prepare-payload")
|
||||
.long("always-prepare-payload")
|
||||
.help("Send payload attributes with every fork choice update. This is intended for \
|
||||
use by block builders, relays and developers. You should set a fee \
|
||||
recipient on this BN and also consider adjusting the \
|
||||
--prepare-payload-lookahead flag.")
|
||||
.takes_value(false)
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("fork-choice-before-proposal-timeout")
|
||||
.long("fork-choice-before-proposal-timeout")
|
||||
@@ -990,4 +999,13 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
|
||||
This is equivalent to --http and --validator-monitor-auto.")
|
||||
.takes_value(false)
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("always-prefer-builder-payload")
|
||||
.long("always-prefer-builder-payload")
|
||||
.help("If set, the beacon node always uses the payload from the builder instead of the local payload.")
|
||||
// The builder profit threshold flag is used to provide preference
|
||||
// to local payloads, therefore it fundamentally conflicts with
|
||||
// always using the builder.
|
||||
.conflicts_with("builder-profit-threshold")
|
||||
)
|
||||
}
|
||||
|
||||
@@ -748,6 +748,8 @@ pub fn get_config<E: EthSpec>(
|
||||
/ DEFAULT_PREPARE_PAYLOAD_LOOKAHEAD_FACTOR
|
||||
});
|
||||
|
||||
client_config.chain.always_prepare_payload = cli_args.is_present("always-prepare-payload");
|
||||
|
||||
if let Some(timeout) =
|
||||
clap_utils::parse_optional(cli_args, "fork-choice-before-proposal-timeout")?
|
||||
{
|
||||
@@ -788,6 +790,11 @@ pub fn get_config<E: EthSpec>(
|
||||
client_config.chain.optimistic_finalized_sync =
|
||||
!cli_args.is_present("disable-optimistic-finalized-sync");
|
||||
|
||||
// Payload selection configs
|
||||
if cli_args.is_present("always-prefer-builder-payload") {
|
||||
client_config.always_prefer_builder_payload = true;
|
||||
}
|
||||
|
||||
Ok(client_config)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user