Print Alice peer id when starting swap as Alice

In the current setup Bob dials Alice, and thus requires her peer id.
This commit is contained in:
Daniel Karzel 2020-12-02 22:07:27 +11:00
parent 3e60a514c4
commit 708988b5c2

View File

@ -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 {