Skip to content

Commit a96abcf

Browse files
authored
Fix prover config path (#18)
1 parent ada173a commit a96abcf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/node.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,12 @@ impl<C: Config> Node<C> {
8383
config_to_file(node_config, &config_path)
8484
.with_context(|| format!("Error writing {kind} config to file"))?;
8585

86+
let node_kind_str = match &kind {
87+
NodeKind::BatchProver | NodeKind::LightClientProver => "prover".to_string(),
88+
kind => kind.to_string(),
89+
};
8690
Ok(vec![
87-
format!("--{kind}-config-path"),
91+
format!("--{node_kind_str}-config-path"),
8892
config_path.display().to_string(),
8993
])
9094
})

0 commit comments

Comments
 (0)