Skip to content

Commit

Permalink
Add manual check for num threads requiring full RPC API
Browse files Browse the repository at this point in the history
  • Loading branch information
steviez committed Mar 11, 2024
1 parent ff16f54 commit dbf8de8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions validator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1389,6 +1389,13 @@ pub fn main() {
usize
))
} else {
// Due to a CLAP bug, we can't use .requires("full_rpc_api") directly on
// the rpc_pubsub_notification_threads argument. Do the check manually here,
// and remove this when we get past 2.xy of CLAP
if matches.occurrences_of("rpc_pubsub_notification_threads") > 0 {
eprintln!("Use of --rpc_pubsub_notification_threads requires --full-rpc-api");
exit(1);
}
None
},
},
Expand Down

0 comments on commit dbf8de8

Please sign in to comment.