diff --git a/leo/cli/commands/devnet/mod.rs b/leo/cli/commands/devnet/mod.rs index 7dcf7fc060..8e18568fd7 100644 --- a/leo/cli/commands/devnet/mod.rs +++ b/leo/cli/commands/devnet/mod.rs @@ -298,6 +298,7 @@ impl LeoDevnet { idx: usize, log_file: &Path, metrics_port: Option, + storage: &Path, ) -> Vec { let mut base = vec![ "start".to_string(), @@ -314,6 +315,8 @@ impl LeoDevnet { log_file.to_str().unwrap().to_string(), "--verbosity".to_string(), verbosity.to_string(), + "--ledger-storage".to_string(), + storage.to_str().unwrap().to_string(), ]; match role { "validator" => { @@ -390,6 +393,7 @@ impl LeoDevnet { idx, log_file.as_path(), Some(metrics_port), + &storage, )) .collect::>() .join(" "); @@ -416,6 +420,7 @@ impl LeoDevnet { dev_idx, log_file.as_path(), None, + &storage, )) .collect::>() .join(" "); @@ -475,6 +480,7 @@ impl LeoDevnet { idx, &log_file, Some(9000 + idx as u16), + &storage, )); c }, @@ -499,6 +505,7 @@ impl LeoDevnet { dev_idx, &log_file, None, + &storage, )); c }, diff --git a/leo/cli/commands/devnet/utilities.rs b/leo/cli/commands/devnet/utilities.rs index 203450df77..96857ba204 100644 --- a/leo/cli/commands/devnet/utilities.rs +++ b/leo/cli/commands/devnet/utilities.rs @@ -81,7 +81,7 @@ pub fn clean_snarkos>( network: usize, _role: &str, idx: usize, - _storage: &Path, + storage: &Path, ) -> std::io::Result { StdCommand::new(snarkos) .arg("clean") @@ -89,6 +89,8 @@ pub fn clean_snarkos>( .arg(network.to_string()) .arg("--dev") .arg(idx.to_string()) + .arg("--path") + .arg(storage) .stdout(Stdio::null()) .stderr(Stdio::null()) .spawn()