Skip to content

Commit

Permalink
more tries
Browse files Browse the repository at this point in the history
Co-authored-by: ii-cruz <[email protected]>
  • Loading branch information
paberr and ii-cruz committed Aug 1, 2023
1 parent 92c4d92 commit 0354da1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test-utils/src/test_network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ impl TestNetwork for MockNetwork {
for (id, network) in networks.iter().enumerate() {
for other_id in (id + 1)..networks.len() {
let other_network = networks.get(other_id).unwrap();
log::error!(
"Peer {} ({}) dialing peer {} ({})",
id,
network.address(),
other_id,
other_network.address()
);
network.dial_mock(other_network);
}
}
Expand Down
8 changes: 8 additions & 0 deletions test-utils/src/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,14 @@ where

future::join_all(events.iter_mut().map(|e| e.next())).await;

for network in networks {
log::error!(
local_id = ?network.get_local_peer_id(),
num_peers = network.get_peers().len(),
"Consensus established"
);
}

validators
}

Expand Down

0 comments on commit 0354da1

Please sign in to comment.