diff --git a/swap/src/bin/swap.rs b/swap/src/bin/swap.rs index 806fd158..b0bcba81 100644 --- a/swap/src/bin/swap.rs +++ b/swap/src/bin/swap.rs @@ -52,7 +52,7 @@ async fn main() -> Result<()> { let rng = &mut OsRng; match opt { - Options::Alice { + Options::SellXmr { bitcoind_url, bitcoin_wallet_name, monero_wallet_rpc_url, @@ -61,7 +61,7 @@ async fn main() -> Result<()> { send_monero, receive_bitcoin, } => { - info!("running swap node as Alice ..."); + info!("running swap node as Alice for selling XMR ..."); let behaviour = alice::Behaviour::default(); let alice_peer_id = behaviour.peer_id().clone(); @@ -142,7 +142,7 @@ async fn main() -> Result<()> { ) .await?; } - Options::Bob { + Options::BuyXmr { alice_addr, alice_peer_id, bitcoind_url, @@ -152,7 +152,7 @@ async fn main() -> Result<()> { send_bitcoin, receive_monero, } => { - info!("running swap node as Bob ..."); + info!("running swap node as Bob for buying XMR ..."); let behaviour = bob::Behaviour::default(); let local_key_pair = behaviour.identity(); diff --git a/swap/src/cli.rs b/swap/src/cli.rs index dbee766c..53c5eb3b 100644 --- a/swap/src/cli.rs +++ b/swap/src/cli.rs @@ -6,7 +6,7 @@ use uuid::Uuid; #[derive(structopt::StructOpt, Debug)] #[structopt(name = "xmr-btc-swap", about = "Trustless XMR BTC swaps")] pub enum Options { - Alice { + SellXmr { #[structopt( short = "b", long = "bitcoind", @@ -40,7 +40,7 @@ pub enum Options { #[structopt(short = "r", long = "receive-sats", parse(try_from_str = parse_sats))] receive_bitcoin: bitcoin::Amount, }, - Bob { + BuyXmr { #[structopt(short = "a", long = "alice-addr")] alice_addr: Multiaddr,