From 78645b7b210a966406557e380629ef93b1e90640 Mon Sep 17 00:00:00 2001 From: steviez Date: Mon, 11 Mar 2024 17:47:57 -0500 Subject: [PATCH] Add manual check for num threads requiring full RPC API --- validator/src/main.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/validator/src/main.rs b/validator/src/main.rs index c70fe938c75a71..28431f7fdaacd3 100644 --- a/validator/src/main.rs +++ b/validator/src/main.rs @@ -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 }, },