From 48b2cd970f677ff83adfc23a79f800fd4c1124b4 Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Tue, 17 Feb 2026 06:35:32 -0800 Subject: [PATCH] docs: fix default jwt.hex path in cli args (#22269) Co-authored-by: Amp --- crates/node/core/src/args/benchmark_args.rs | 3 ++- crates/node/core/src/args/rpc_server.rs | 3 ++- docs/vocs/docs/pages/cli/reth/node.mdx | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/node/core/src/args/benchmark_args.rs b/crates/node/core/src/args/benchmark_args.rs index e6955a8f9f..3a520a71a4 100644 --- a/crates/node/core/src/args/benchmark_args.rs +++ b/crates/node/core/src/args/benchmark_args.rs @@ -26,7 +26,8 @@ pub struct BenchmarkArgs { /// This will perform JWT authentication for all requests to the given engine RPC url. /// /// If no path is provided, a secret will be generated and stored in the datadir under - /// `//jwt.hex`. For mainnet this would be `~/.reth/mainnet/jwt.hex` by default. + /// `//jwt.hex`. For mainnet this would be `~/.local/share/reth/mainnet/jwt.hex` + /// by default. #[arg( long = "jwt-secret", alias = "jwtsecret", diff --git a/crates/node/core/src/args/rpc_server.rs b/crates/node/core/src/args/rpc_server.rs index 70d99deadc..90285a627f 100644 --- a/crates/node/core/src/args/rpc_server.rs +++ b/crates/node/core/src/args/rpc_server.rs @@ -483,7 +483,8 @@ pub struct RpcServerArgs { /// This will enforce JWT authentication for all requests coming from the consensus layer. /// /// If no path is provided, a secret will be generated and stored in the datadir under - /// `//jwt.hex`. For mainnet this would be `~/.reth/mainnet/jwt.hex` by default. + /// `//jwt.hex`. For mainnet this would be `~/.local/share/reth/mainnet/jwt.hex` + /// by default. #[arg(long = "authrpc.jwtsecret", value_name = "PATH", global = true, required = false, default_value = Resettable::from(DefaultRpcServerArgs::get_global().auth_jwtsecret.as_ref().map(|v| v.to_string_lossy().into())))] pub auth_jwtsecret: Option, diff --git a/docs/vocs/docs/pages/cli/reth/node.mdx b/docs/vocs/docs/pages/cli/reth/node.mdx index 67fa40bca6..114bfa36bc 100644 --- a/docs/vocs/docs/pages/cli/reth/node.mdx +++ b/docs/vocs/docs/pages/cli/reth/node.mdx @@ -372,7 +372,7 @@ RPC: This will enforce JWT authentication for all requests coming from the consensus layer. - If no path is provided, a secret will be generated and stored in the datadir under `//jwt.hex`. For mainnet this would be `~/.reth/mainnet/jwt.hex` by default. + If no path is provided, a secret will be generated and stored in the datadir under `//jwt.hex`. For mainnet this would be `~/.local/share/reth/mainnet/jwt.hex` by default. --auth-ipc Enable auth engine API over IPC