Skip to content

Commit

Permalink
fix EtE CLI parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ghubertpalo committed Sep 30, 2022
1 parent 20db020 commit 7ecad1d
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions mithril-test-lab/mithril-end-to-end/src/mithril/aggregator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ impl Aggregator {
work_dir: &Path,
bin_dir: &Path,
) -> Result<Self, String> {
let port = server_port.to_string();
let magic_id = DEVNET_MAGIC_ID.to_string();
let env = HashMap::from([
("NETWORK", "devnet"),
("PROTOCOL_PARAMETERS__K", "5"),
("PROTOCOL_PARAMETERS__M", "100"),
("PROTOCOL_PARAMETERS__PHI_F", "0.65"),
("SERVER_IP", "0.0.0.0"),
("RUN_INTERVAL", "600"),
("URL_SNAPSHOT_MANIFEST", ""),
("SNAPSHOT_STORE_TYPE", "local"),
Expand All @@ -42,13 +42,7 @@ impl Aggregator {
("GENESIS_VERIFICATION_KEY", "5b33322c3235332c3138362c3230312c3137372c31312c3131372c3133352c3138372c3136372c3138312c3138382c32322c35392c3230362c3130352c3233312c3135302c3231352c33302c37382c3231322c37362c31362c3235322c3138302c37322c3133342c3133372c3234372c3136312c36385d"),
("GENESIS_SECRET_KEY", "5b3131382c3138342c3232342c3137332c3136302c3234312c36312c3134342c36342c39332c3130362c3232392c38332c3133342c3138392c34302c3138392c3231302c32352c3138342c3136302c3134312c3233372c32362c3136382c35342c3233392c3230342c3133392c3131392c31332c3139395d"),
]);
let args = vec![
"--db-directory",
bft_node.db_path.to_str().unwrap(),
"--server-port",
&port,
"-vvv",
];
let args = vec!["--db-directory", bft_node.db_path.to_str().unwrap(), "-vvv"];

let command = MithrilCommand::new("mithril-aggregator", work_dir, bin_dir, env, &args)?;

Expand All @@ -69,7 +63,11 @@ impl Aggregator {
}

pub fn serve(&mut self) -> Result<(), String> {
self.process = Some(self.command.start(&["serve".to_string()])?);
self.process = Some(self.command.start(&[
"serve".to_string(),
"--server-port".to_string(),
self.server_port.to_string(),
])?);
Ok(())
}

Expand Down

0 comments on commit 7ecad1d

Please sign in to comment.