Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions leo/cli/commands/devnet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ impl LeoDevnet {
idx: usize,
log_file: &Path,
metrics_port: Option<u16>,
storage: &Path,
) -> Vec<String> {
let mut base = vec![
"start".to_string(),
Expand All @@ -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" => {
Expand Down Expand Up @@ -390,6 +393,7 @@ impl LeoDevnet {
idx,
log_file.as_path(),
Some(metrics_port),
&storage,
))
.collect::<Vec<_>>()
.join(" ");
Expand All @@ -416,6 +420,7 @@ impl LeoDevnet {
dev_idx,
log_file.as_path(),
None,
&storage,
))
.collect::<Vec<_>>()
.join(" ");
Expand Down Expand Up @@ -475,6 +480,7 @@ impl LeoDevnet {
idx,
&log_file,
Some(9000 + idx as u16),
&storage,
));
c
},
Expand All @@ -499,6 +505,7 @@ impl LeoDevnet {
dev_idx,
&log_file,
None,
&storage,
));
c
},
Expand Down
4 changes: 3 additions & 1 deletion leo/cli/commands/devnet/utilities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,16 @@ pub fn clean_snarkos<S: AsRef<OsStr>>(
network: usize,
_role: &str,
idx: usize,
_storage: &Path,
storage: &Path,
) -> std::io::Result<Child> {
StdCommand::new(snarkos)
.arg("clean")
.arg("--network")
.arg(network.to_string())
.arg("--dev")
.arg(idx.to_string())
.arg("--path")
.arg(storage)
.stdout(Stdio::null())
.stderr(Stdio::null())
.spawn()
Expand Down