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

Commit a55af13

Browse files
committed
Warn if the flag was ignored
1 parent b7ea2e0 commit a55af13

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

core/src/validator.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,12 @@ impl Validator {
815815
match &config.block_verification_method {
816816
BlockVerificationMethod::BlockstoreProcessor => {
817817
info!("no scheduler pool is installed for block verification...");
818+
if let Some(count) = config.unified_scheduler_handler_threads {
819+
warn!(
820+
"--unified-scheduler-handler-threads={count} is ignored because unified \
821+
scheduler is disabled"
822+
);
823+
}
818824
}
819825
BlockVerificationMethod::UnifiedScheduler => {
820826
let scheduler_pool = DefaultSchedulerPool::new_dyn(

ledger-tool/src/ledger_utils.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,19 @@ pub fn load_and_process_ledger(
291291
"Using: block-verification-method: {}",
292292
block_verification_method,
293293
);
294+
let unified_scheduler_handler_threads =
295+
value_t!(arg_matches, "unified_scheduler_handler_threads", usize).ok();
294296
match block_verification_method {
295297
BlockVerificationMethod::BlockstoreProcessor => {
296298
info!("no scheduler pool is installed for block verification...");
299+
if let Some(count) = unified_scheduler_handler_threads {
300+
warn!(
301+
"--unified-scheduler-handler-threads={count} is ignored because unified \
302+
scheduler is disabled"
303+
);
304+
}
297305
}
298306
BlockVerificationMethod::UnifiedScheduler => {
299-
let unified_scheduler_handler_threads =
300-
value_t!(arg_matches, "unified_scheduler_handler_threads", usize).ok();
301307
let no_transaction_status_sender = None;
302308
let no_replay_vote_sender = None;
303309
let ignored_prioritization_fee_cache = Arc::new(PrioritizationFeeCache::new(0u64));

0 commit comments

Comments
 (0)