Skip to content

Commit

Permalink
Fix prover config path (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfldde authored Oct 9, 2024
1 parent ada173a commit a96abcf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,12 @@ impl<C: Config> Node<C> {
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(),
])
})
Expand Down

0 comments on commit a96abcf

Please sign in to comment.