Skip to content

Commit

Permalink
remove disable_block_production_forwarding cli flag (solana-labs#2687)
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge authored and jeffwashington committed Aug 27, 2024
1 parent 0f3aa95 commit e184489
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
10 changes: 0 additions & 10 deletions validator/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1553,16 +1553,6 @@ pub fn app<'a>(version: &'a str, default_args: &'a DefaultArgs) -> App<'a, 'a> {
.possible_values(BlockProductionMethod::cli_names())
.help(BlockProductionMethod::cli_message()),
)
.arg(
Arg::with_name("disable_block_production_forwarding")
.long("disable-block-production-forwarding")
.requires("staked_nodes_overrides")
.takes_value(false)
.help("Disable forwarding of non-vote transactions in block production. \
By default, forwarding is already disabled, it is enabled by setting \
\"staked-nodes-overrides\". This flag can be used to disable forwarding \
even when \"staked-nodes-overrides\" is set."),
)
.arg(
Arg::with_name("unified_scheduler_handler_threads")
.long("unified-scheduler-handler-threads")
Expand Down
5 changes: 1 addition & 4 deletions validator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1784,10 +1784,7 @@ pub fn main() {
BlockProductionMethod
)
.unwrap_or_default();
validator_config.enable_block_production_forwarding = staked_nodes_overrides_path
.as_ref()
.map(|_| !matches.is_present("disable_block_production_forwarding"))
.unwrap_or_default();
validator_config.enable_block_production_forwarding = staked_nodes_overrides_path.is_some();
validator_config.unified_scheduler_handler_threads =
value_t!(matches, "unified_scheduler_handler_threads", usize).ok();

Expand Down

0 comments on commit e184489

Please sign in to comment.