Skip to content

Commit

Permalink
v2.0: remove disable_block_production_forwarding cli flag (backport of
Browse files Browse the repository at this point in the history
…#2687) (#2909)

remove disable_block_production_forwarding cli flag (#2687)

(cherry picked from commit df892c4)

Co-authored-by: Andrew Fitzgerald <[email protected]>
  • Loading branch information
mergify[bot] and apfitzge authored Sep 12, 2024
1 parent c01560e commit 1b5c614
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 @@ -1533,16 +1533,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 @@ -1769,10 +1769,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 1b5c614

Please sign in to comment.