Skip to content

Commit

Permalink
reverse the order when restarting
Browse files Browse the repository at this point in the history
  • Loading branch information
haxjump committed Jan 7, 2025
1 parent 248422a commit e9cc873
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "chaindev"
version = "0.52.9-alpha.0"
version = "0.52.9-alpha.1"
edition = "2021"
authors = ["[email protected]"]
description = "Powerful development and testing utils for blockchain developers."
Expand Down
4 changes: 3 additions & 1 deletion src/beacon_based/ddev/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,9 @@ where
}
};

for n in nodes.iter().copied() {
nodes.sort_unstable();

for n in nodes.iter().rev().copied() {
self.stop(Some(&set! {B n}), false).c(d!())?;
sleep_ms!(1000 * wait_itv_secs as u64);
self.start(Some(&set! {B n}), ignore_failed, realloc_ports)
Expand Down
2 changes: 1 addition & 1 deletion src/beacon_based/ddev/remote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ where
(
local_file,
format!(
"[{},N{},{}] {}",
"[{}, N{}, {}] {}",
host.addr.connection_addr(),
n.id,
n.kind,
Expand Down

0 comments on commit e9cc873

Please sign in to comment.