Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 49eb374

Browse files
committed
Remove strictly-unnecessary flags
1 parent 5446a61 commit 49eb374

File tree

2 files changed

+4
-23
lines changed

2 files changed

+4
-23
lines changed

core/src/validator.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ const WAIT_FOR_SUPERMAJORITY_THRESHOLD_PERCENT: u64 = 80;
128128
pub enum BlockVerificationMethod {
129129
#[default]
130130
BlockstoreProcessor,
131-
UnifiedScheduler,
132131
}
133132

134133
impl BlockVerificationMethod {

ledger-tool/src/main.rs

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use {
2727
solana_cli_output::{CliAccount, CliAccountNewConfig, OutputFormat},
2828
solana_core::{
2929
system_monitor_service::{SystemMonitorService, SystemMonitorStatsReportConfig},
30-
validator::{BlockProductionMethod, BlockVerificationMethod},
30+
validator::BlockVerificationMethod,
3131
},
3232
solana_entry::entry::Entry,
3333
solana_geyser_plugin_manager::geyser_plugin_service::GeyserPluginService,
@@ -1252,14 +1252,9 @@ fn load_bank_forks(
12521252
"block_verification_method",
12531253
BlockVerificationMethod
12541254
);
1255-
let block_production_method = value_t_or_exit!(
1256-
arg_matches,
1257-
"block_production_method",
1258-
BlockProductionMethod
1259-
);
12601255
info!(
1261-
"Using: block-verification-method: {}, block-production-method: {}",
1262-
block_verification_method, block_production_method
1256+
"Using: block-verification-method: {}",
1257+
block_verification_method,
12631258
);
12641259

12651260
let (snapshot_request_sender, snapshot_request_receiver) = crossbeam_channel::unbounded();
@@ -1655,10 +1650,7 @@ fn main() {
16551650
.to_string();
16561651
let default_graph_vote_account_mode = GraphVoteAccountMode::default();
16571652

1658-
let (block_verification_method_help, block_production_method_help) = (
1659-
&BlockVerificationMethod::cli_message(),
1660-
&BlockProductionMethod::cli_message(),
1661-
);
1653+
let block_verification_method_help = &BlockVerificationMethod::cli_message();
16621654

16631655
let mut measure_total_execution_time = Measure::start("ledger tool");
16641656

@@ -1727,16 +1719,6 @@ fn main() {
17271719
.hidden(hidden_unless_forced())
17281720
.help(block_verification_method_help),
17291721
)
1730-
.arg(
1731-
Arg::with_name("block_production_method")
1732-
.long("block-production-method")
1733-
.value_name("METHOD")
1734-
.takes_value(true)
1735-
.possible_values(BlockProductionMethod::cli_names())
1736-
.global(true)
1737-
.hidden(hidden_unless_forced())
1738-
.help(block_production_method_help),
1739-
)
17401722
.arg(
17411723
Arg::with_name("output_format")
17421724
.long("output")

0 commit comments

Comments
 (0)