diff options
| author | tv <tv@krebsco.de> | 2026-10-27 02:57:15 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-27 02:57:15 +0100 |
| commit | 0f9c74fbde6da95d7ec25d8de4741c45415c2dcc (patch) | |
| tree | a118aa623ae99fa03d046a55d29a00e34c0ca8a8 /src/simtest | |
| parent | 5ae2f49509be196aec3d6de1ef558b046562c4ac (diff) | |
admit scheme in seeds
Diffstat (limited to 'src/simtest')
| -rw-r--r-- | src/simtest/identity.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/simtest/identity.rs b/src/simtest/identity.rs index 6f468a3..68d81c4 100644 --- a/src/simtest/identity.rs +++ b/src/simtest/identity.rs @@ -202,13 +202,19 @@ async fn nodes_over_libp2p() { } }; let a_peer = key("a").public().to_peer_id(); - let seed = format!("libp2p:{}", address("a").with_p2p(a_peer).unwrap()); + // With the peer ID, with the scheme but without the peer ID, and bare. + let seeds = [ + format!("libp2p:{}", address("a").with_p2p(a_peer).unwrap()), + format!("libp2p:{}", address("a")), + address("a").to_string(), + ]; let sim = Sim::with_identity(56); let a = sim.start_with("a", &[], Start::Genesis, on_libp2p("a")); let others: Vec<AppState> = ["b", "c", "d"] .into_iter() - .map(|id| sim.start_with(id, &[seed.as_str()], Start::Join, on_libp2p(id))) + .zip(&seeds) + .map(|(id, seed)| sim.start_with(id, &[seed.as_str()], Start::Join, on_libp2p(id))) .collect(); let mut all: Vec<&AppState> = vec![&a]; all.extend(others.iter()); |
