Skip to content

Commit 26131c8

Browse files
committed
temporarily keep existing behaviour
1 parent 37f3d7e commit 26131c8

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

validator/src/commands/block_engine/mod.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ pub fn command(_default_args: &DefaultArgs) -> App<'_, '_> {
1515
.required(true)
1616
)
1717
.arg(
18-
Arg::with_name("disable_block_engine_autoconfig")
19-
.long("disable-block-engine-autoconfig")
18+
Arg::with_name("enable_block_engine_autoconfig")
19+
.long("enable-block-engine-autoconfig")
2020
.takes_value(false)
21-
.help("Disables Block Engine auto-configuration. This stops the validator client from using the most performant Block Engine region. Values provided to `--block-engine-url` will be used as-is."),
21+
.help("Enables Block Engine auto-configuration. This stops the validator client from using the most performant Block Engine region. Values provided to `--block-engine-url` will be used as-is."),
2222
)
2323
.arg(
2424
Arg::with_name("trust_block_engine_packets")
@@ -30,8 +30,10 @@ pub fn command(_default_args: &DefaultArgs) -> App<'_, '_> {
3030

3131
pub fn execute(subcommand_matches: &ArgMatches, ledger_path: &Path) -> Result<()> {
3232
let block_engine_url = value_t_or_exit!(subcommand_matches, "block_engine_url", String);
33+
// Temporary default change: disable autoconfig by default until users are comfortable
34+
// with it; explicit flag remains supported
3335
let disable_block_engine_autoconfig =
34-
subcommand_matches.is_present("disable_block_engine_autoconfig");
36+
!subcommand_matches.is_present("enable_block_engine_autoconfig");
3537
let trust_packets = subcommand_matches.is_present("trust_block_engine_packets");
3638
let admin_client = admin_rpc_service::connect(ledger_path);
3739

validator/src/commands/run/args.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1694,11 +1694,11 @@ pub fn add_args<'a>(app: App<'a, 'a>, default_args: &'a DefaultArgs) -> App<'a,
16941694
.help("Number of CUs to allocate for bundles at beginning of slot.")
16951695
)
16961696
.arg(
1697-
Arg::with_name("disable_block_engine_autoconfig")
1698-
.long("disable-block-engine-autoconfig")
1699-
.value_name("DISABLE_BLOCK_ENGINE_AUTOCONFIG")
1697+
Arg::with_name("enable_block_engine_autoconfig")
1698+
.long("enable-block-engine-autoconfig")
1699+
.value_name("ENABLE_BLOCK_ENGINE_AUTOCONFIG")
17001700
.takes_value(false)
1701-
.help("Disables Block Engine auto-configuration. This stops the validator client from using the most performant Block Engine region. Values provided to `--block-engine-url` will be used as-is."),
1701+
.help("Enables Block Engine auto-configuration. This stops the validator client from using the most performant Block Engine region. Values provided to `--block-engine-url` will be used as-is."),
17021702
)
17031703
.arg(
17041704
Arg::with_name("shred_receiver_address")

validator/src/commands/run/execute.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,9 @@ pub fn execute(
640640
} else {
641641
String::default()
642642
},
643-
disable_block_engine_autoconfig: matches.is_present("disable_block_engine_autoconfig"),
643+
// Temporary default change: disable autoconfig by default until users are comfortable
644+
// with it; explicit flag remains supported
645+
disable_block_engine_autoconfig: !matches.is_present("disable_block_engine_autoconfig"),
644646
trust_packets: matches.is_present("trust_block_engine_packets"),
645647
}));
646648

0 commit comments

Comments
 (0)