Skip to content

Commit

Permalink
Use differentiated config file names for provers
Browse files Browse the repository at this point in the history
  • Loading branch information
yaziciahmet committed Oct 9, 2024
1 parent de4a10e commit 74ec5f7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,8 @@ 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!("--{node_kind_str}-config-path"),
format!("--{kind}-config-path"),
config_path.display().to_string(),
])
})
Expand Down

0 comments on commit 74ec5f7

Please sign in to comment.