mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-09-26 19:30:57 -04:00
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:
parent
3e60a514c4
commit
708988b5c2
1 changed files with 5 additions and 0 deletions
|
@ -64,6 +64,11 @@ async fn main() -> Result<()> {
|
||||||
info!("running swap node as Alice ...");
|
info!("running swap node as Alice ...");
|
||||||
|
|
||||||
let behaviour = alice::Behaviour::default();
|
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 local_key_pair = behaviour.identity();
|
||||||
|
|
||||||
let (listen_addr, _ac, transport) = match tor_port {
|
let (listen_addr, _ac, transport) = match tor_port {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue