From a96abcfe145b9d2467e2f6a5b996cf458bb2d079 Mon Sep 17 00:00:00 2001 From: jfldde <168934971+jfldde@users.noreply.github.com> Date: Wed, 9 Oct 2024 11:38:04 +0100 Subject: [PATCH] Fix prover config path (#18) --- src/node.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/node.rs b/src/node.rs index b0f41de..8a35840 100644 --- a/src/node.rs +++ b/src/node.rs @@ -83,8 +83,12 @@ impl Node { config_to_file(node_config, &config_path) .with_context(|| format!("Error writing {kind} config to file"))?; + let node_kind_str = match &kind { + NodeKind::BatchProver | NodeKind::LightClientProver => "prover".to_string(), + kind => kind.to_string(), + }; Ok(vec![ - format!("--{kind}-config-path"), + format!("--{node_kind_str}-config-path"), config_path.display().to_string(), ]) })