diff --git a/examples/rendezvous/src/main.rs b/examples/rendezvous/src/main.rs index e40507c3fc3..a1b811f4f11 100644 --- a/examples/rendezvous/src/main.rs +++ b/examples/rendezvous/src/main.rs @@ -33,7 +33,11 @@ use std::time::Duration; async fn main() -> Result<(), Box> { env_logger::init(); - let mut swarm = libp2p::SwarmBuilder::with_new_identity() + // Results in PeerID 12D3KooWDpJ7As7BWAwRMfu1VU2WCqNjvq387JEYKDBj4kx6nXTN which is + // used as the rendezvous point by the other peer examples. + let keypair = libp2p::identity::Keypair::ed25519_from_bytes([0; 32]).unwrap(); + + let mut swarm = libp2p::SwarmBuilder::with_existing_identity(keypair) .with_tokio() .with_tcp( tcp::Config::default(),