From 708988b5c24f9fd52b242dc843225ebceadbb11c Mon Sep 17 00:00:00 2001 From: Daniel Karzel Date: Wed, 2 Dec 2020 22:07:27 +1100 Subject: [PATCH] Print Alice peer id when starting swap as Alice In the current setup Bob dials Alice, and thus requires her peer id. --- swap/src/bin/swap.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/swap/src/bin/swap.rs b/swap/src/bin/swap.rs index 43f79d3b..567b6ff2 100644 --- a/swap/src/bin/swap.rs +++ b/swap/src/bin/swap.rs @@ -64,6 +64,11 @@ async fn main() -> Result<()> { info!("running swap node as Alice ..."); let behaviour = alice::Behaviour::default(); + let alice_peer_id = behaviour.peer_id().clone(); + info!( + "Alice Peer ID (to be used by Bob to dial her): {}", + alice_peer_id + ); let local_key_pair = behaviour.identity(); let (listen_addr, _ac, transport) = match tor_port {