From 663a29c06b6c43020bb4e13172bb4d6c0023ae87 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 27 Aug 2025 14:31:06 -0300 Subject: [PATCH] fix rpc panic due to wrong flag name --- node/src/command.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/src/command.rs b/node/src/command.rs index eb261bedfa..847d6faba2 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -318,14 +318,14 @@ fn customise_config(arg_matches: &ArgMatches, config: Configuration) -> Configur // If the operator did **not** supply `--rpc-max-subscriptions-per-connection` set to high value. config.rpc.max_subs_per_conn = match arg_matches - .value_source("rpc-max-subscriptions-per-connection") + .value_source("rpc_max_subscriptions_per_connection") { Some(ValueSource::CommandLine) => cli.run.rpc_params.rpc_max_subscriptions_per_connection, _ => 10000, }; // If the operator did **not** supply `--rpc-max-connections` set to high value. - config.rpc.max_connections = match arg_matches.value_source("rpc-max-connections") { + config.rpc.max_connections = match arg_matches.value_source("rpc_max_connections") { Some(ValueSource::CommandLine) => cli.run.rpc_params.rpc_max_connections, _ => 10000, };